SKB-CGN/ioBroker.mywallbox

Do not restart adapter system.adapter.wallbox.0 because restart loop detected

Closed this issue · 2 comments

Describe the bug
My iobroker does nearly every day prevent the adapter from restart with the message:

Do not restart adapter system.adapter.wallbox.0 because restart loop detected

To Reproduce
the Adapter works, is connected to the api and updated the states.

Expected behavior
Should handle the following error accordingly and continue working without a restart

Screenshots & Logfiles
2022-10-12 16:14:50.734 - |error|: wallbox.0 (19821) uncaught exception: Unexpected token < in JSON at position 0
2022-10-12 16:14:50.736 - |error|: wallbox.0 (19821) SyntaxError: Unexpected token < in JSON at position 0
at Request._callback (/opt/iobroker/node_modules/iobroker.wallbox/main.js:274:19)
2022-10-12 16:14:50.736 - |error|: wallbox.0 (19821) Unexpected token < in JSON at position 0
2022-10-12 16:14:50.742 - ESC[32minfo|: wallbox.0 (19821) Adapter Wallbox cleaned up everything...
2022-10-12 16:14:50.742 - ESC[32minfo|: wallbox.0 (19821) terminating
2022-10-12 16:14:50.744 - ESC[33mwarn|: wallbox.0 (19821) Terminated (UNCAUGHT_EXCEPTION): Without reason
2022-10-12 16:14:51.006 - ESC[32minfo|: wallbox.0 (19821) Successfully polled extended Data with the Interval of 60 seconds!
2022-10-12 16:14:51.165 - ESC[32minfo|: wallbox.0 (19821) Successfully polled Data with the Interval of 60 seconds!
2022-10-12 16:14:51.256 - |error|: wallbox.0 (19821) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise
which was not handled with .catch().
2022-10-12 16:14:51.257 - |error|: wallbox.0 (19821) unhandled promise rejection: DB closed
2022-10-12 16:14:51.258 - |error|: wallbox.0 (19821) Error: DB closed
2022-10-12 16:14:51.258 - |error|: wallbox.0 (19821) DB closed
2022-10-12 16:14:51.443 - |error|: host.raspberrypi instance system.adapter.wallbox.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
2022-10-12 16:14:51.444 - |info|: host.raspberrypi Restart adapter system.adapter.wallbox.0 because enabled

2022-10-12 16:15:03.411 - |warn|: host.raspberrypi Do not restart adapter system.adapter.wallbox.0 because restart loop detected

Versions:

  • Adapter version: 0.0.13
  • JS-Controller version: 4.0.23
  • Node version: 14.17.0
  • Operating system: pi

Additional context
The above logs repeat multiple times with same content before the final line is written an the restart ist prohibited.

Error has been resolved with current Version.

I can confirm that in the current Version (mywallbox, not wallbox!) the error is fixed. I've checked in my installation and also in the code, by review!