Skip to content

Restart Loop when Weather Station disconnects #146

@mrfenyx

Description

@mrfenyx

Describe the bug
For some reason, during the night my Weather station (WS3500) disconnects. I presume the batteries are not ok and it runs out of solar power. At this point, the adapter shuts down with the following errors:

2023-01-17 04:20:33.478 - error: sainlogic.0 (2586388) uncaught exception: undefined
2023-01-17 04:20:33.508 - error: sainlogic.0 (2586388) undefined
2023-01-17 04:20:34.187 - error: host.smarthome instance system.adapter.sainlogic.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
2023-01-17 04:20:34.188 - info: host.smarthome Restart adapter system.adapter.sainlogic.0 because enabled
2023-01-17 04:21:04.339 - info: host.smarthome instance system.adapter.sainlogic.0 started with pid 3517595
2023-01-17 04:22:34.559 - error: sainlogic.0 (3517595) uncaught exception: undefined
2023-01-17 04:22:34.562 - error: sainlogic.0 (3517595) undefined
2023-01-17 04:22:35.519 - error: host.smarthome instance system.adapter.sainlogic.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
2023-01-17 04:22:35.521 - info: host.smarthome Restart adapter system.adapter.sainlogic.0 because enabled
2023-01-17 04:23:05.676 - info: host.smarthome instance system.adapter.sainlogic.0 started with pid 3518057
2023-01-17 04:23:34.225 - error: sainlogic.0 (3518057) uncaught exception: undefined
2023-01-17 04:23:34.227 - error: sainlogic.0 (3518057) undefined
2023-01-17 04:23:34.871 - error: host.smarthome instance system.adapter.sainlogic.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
2023-01-17 04:23:34.871 - info: host.smarthome Restart adapter system.adapter.sainlogic.0 because enabled
2023-01-17 04:23:34.871 - warn: host.smarthome Do not restart adapter system.adapter.sainlogic.0 because restart loop detected

Due to another issue (#145) I can't enable any log level above error as my log will be spammed with warnings but the time stamp of the above error coincides with the time when I stop receiving data from the station.

Versions:

  • Adapter version: 0.10.0
  • JS-Controller version: 4.0.24
  • Node version: 16.19.0
  • Operating system: Raspberry Pi OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions