ioBroker.docker
ioBroker.docker copied to clipboard
[Feature Request]: Disable keep-alive feature for containers, when not in maintenance mode
Description / Beschreibung
When ioBroker crashes, the container keeps running. This is a side effect of maintenance mode, as one can see on this line. If the container keeps running, even though ioBroker crashed, the docker daemon will not automatically restart the container (if configured so). One should therefore either make sure, that ioBroker automatically restarts, when it crashes or make the container stop running in that case.
Backgroud: I have two ioBroker instances, my main instance running on my server (incl. redis for states and objects) and a satellite. When the satellite loses connection (restart of main server or loss of network), it times out and ioBroker simply stops running and leaves behind an "empty container".
Image version
v8.1.0
Docker logs / Docker Protokoll
2024-01-03 22:50:53.493 - [33mwarn[39m: maxcul.0 (153) get state error: DB closed
2024-01-03 22:50:53.493 - [33mwarn[39m: maxcul.0 (153) get state error: DB closed
2024-01-03 22:50:53.493 - [33mwarn[39m: maxcul.0 (153) get state error: DB closed
2024-01-03 22:50:53.494 - [33mwarn[39m: maxcul.0 (153) get state error: DB closed
2024-01-03 22:50:53.494 - [33mwarn[39m: maxcul.0 (153) get state error: DB closed
...
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.maxcul/main.js:1930:42)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
2024-01-03 22:53:15.237 - [31merror[39m: maxcul.0 (153) Cannot read properties of null (reading 'getCredits')
2024-01-03 22:53:20.236 - [31merror[39m: maxcul.0 (153) uncaught exception: Cannot read properties of null (reading 'getCredits')
2024-01-03 22:53:20.237 - [31merror[39m: maxcul.0 (153) TypeError: Cannot read properties of null (reading 'getCredits')
at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.maxcul/main.js:1930:42)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
2024-01-03 22:53:20.237 - [31merror[39m: maxcul.0 (153) Cannot read properties of null (reading 'getCredits')
...
2024-01-03 22:53:24.523 - [31merror[39m: socketio.1 (134) Objects database error: read ECONNRESET
2024-01-03 22:53:24.520 - [32minfo[39m: host.nuc terminated. Could not reset alive status for instances
2024-01-03 22:53:24.539 - [31merror[39m: maxcul.0 (153) Objects database error: read ECONNRESET
2024-01-03 22:53:24.668 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.668 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.668 - [31merror[39m: host.nuc Cannot find view "system" for search "instance" : Connection is closed.
2024-01-03 22:53:24.671 - [32minfo[39m: host.nuc instance system.adapter.wireless-mbus.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP)
2024-01-03 22:53:24.671 - [32minfo[39m: host.nuc All instances are stopped.
2024-01-03 22:53:24.679 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.681 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.681 - [31merror[39m: host.nuc Cannot find view "system" for search "instance" : Connection is closed.
2024-01-03 22:53:24.685 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.685 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.685 - [32minfo[39m: host.nuc instance system.adapter.samsung_tizen.0 terminated with code 0 (NO_ERROR)
2024-01-03 22:53:24.685 - [32minfo[39m: host.nuc All instances are stopped.
2024-01-03 22:53:24.685 - [31merror[39m: host.nuc Cannot find view "system" for search "instance" : Connection is closed.
2024-01-03 22:53:24.698 - [32minfo[39m: host.nuc instance system.adapter.socketio.1 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP)
2024-01-03 22:53:24.699 - [32minfo[39m: host.nuc All instances are stopped.
2024-01-03 22:53:24.711 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.712 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.712 - [31merror[39m: host.nuc Cannot find view "system" for search "instance" : Connection is closed.
2024-01-03 22:53:24.712 - [32minfo[39m: host.nuc instance system.adapter.maxcul.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP)
2024-01-03 22:53:24.714 - [32minfo[39m: host.nuc All instances are stopped.
2024-01-03 22:53:24.716 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.716 - [33mwarn[39m: host.nuc get state error: Connection is closed.
2024-01-03 22:53:24.716 - [31merror[39m: host.nuc Cannot find view "system" for search "instance" : Connection is closed.
2024-01-03 22:53:24.718 - [32minfo[39m: host.nuc instance system.adapter.javascript.1 terminated with code 0 (NO_ERROR)
2024-01-03 22:53:24.718 - [32minfo[39m: host.nuc All instances are stopped.
2024-01-03 22:53:24.718 - [33mwarn[39m: host.nuc get state error: Connection is closed.