I call "exec('/opt/scripts/maintenance.sh restart -y')" from a script but it seems that the command does not run to its end. Log shows:
l","noInstances":17,"compactMode":false,"noCompactInstances":0,"model":"ARMv7 Processor rev 10 (v7l)","cpus":4,"mem":2109505536,"ostype":"Linux","city":""}
================================== > LOG REDIRECT system.adapter.admin.0 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.jarvis.0 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.javascript.1 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.admin.0 => false [system.adapter.admin.0.logging]
================================== > LOG REDIRECT system.adapter.jarvis.0 => false [system.adapter.jarvis.0.logging]
================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging]
================================== > LOG REDIRECT system.adapter.javascript.1 => false [system.adapter.javascript.1.logging]
When I exec to the container and execute the same command it does not work either. It works if I set the container to maintenance mode first.
root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker# iob maintenance restart -y
You are now going to call a restart of your container.
Restarting will work depending on the configured restart policy.
Stopping ioBroker...root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker# iob maintenance on -y
You are now going to stop ioBroker and activate maintenance mode for this container.
Activating maintenance mode...
Stopping ioBroker...root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker# iob maintenance restart -y
You are now going to call a restart of your container.
Restarting will work depending on the configured restart policy.
Container will be stopped or restarted in 5 seconds...
Looks like stop_iob exits somewhere and does not return.
--------------------------------------------------------------------------------
------------------------- 2024-01-03 10:00:48 -------------------------
--------------------------------------------------------------------------------
----- -----
----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ -----
----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ -----
----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ -----
----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ -----
----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ -----
----- -----
----- Welcome to your ioBroker Docker container! -----
----- Startupscript is now running! -----
----- Please be patient! -----
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----- System Information -----
----- arch: armv7l -----
----- hostname: iobroker -----
----- -----
----- Version Information -----
----- image: v9.0.1 -----
----- build: 2023-12-01T18:43:20+00:00 -----
----- node: v18.19.0 -----
----- npm: 10.2.3 -----
----- -----
----- Environment Variables -----
----- SETGID: 1001 -----
----- SETUID: 1001 -----
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----- Step 1 of 5: Preparing container -----
--------------------------------------------------------------------------------
This is not the first run of this container. Skipping first run preparation.
--------------------------------------------------------------------------------
----- Step 2 of 5: Detecting ioBroker installation -----
--------------------------------------------------------------------------------
Existing installation of ioBroker detected in "/opt/iobroker".
--------------------------------------------------------------------------------
----- Step 3 of 5: Checking ioBroker installation -----
--------------------------------------------------------------------------------
(Re)setting permissions (This might take a while! Please be patient!)... Done.
Checking Database connection... Done.
Hostname in ioBroker matches the hostname of this container.
No action required.
--------------------------------------------------------------------------------
----- Step 4 of 5: Applying special settings -----
--------------------------------------------------------------------------------
Some adapters have special requirements/ settings which can be activated by the use of environment variables.
For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/).
--------------------------------------------------------------------------------
----- Step 5 of 5: ioBroker startup -----
--------------------------------------------------------------------------------
Starting ioBroker...
##### #### ### ## # iobroker.js-controller log output # ## ### #### #####
host.iobroker check instance "system.adapter.admin.0" for host "iobroker"
host.iobroker check instance "system.adapter.javascript.0" for host "iobroker"
host.iobroker check instance "system.adapter.javascript.1" for host "iobroker"
host.iobroker check instance "system.adapter.history.0" for host "iobroker"
host.iobroker check instance "system.adapter.hm-rega.0" for host "iobroker"
host.iobroker check instance "system.adapter.hm-rpc.0" for host "iobroker"
host.iobroker check instance "system.adapter.hm-rpc.1" for host "iobroker"
host.iobroker check instance "system.adapter.tr-064.0" for host "iobroker"
host.iobroker check instance "system.adapter.zigbee2mqtt.0" for host "iobroker"
host.iobroker check instance "system.adapter.nut.0" for host "iobroker"
host.iobroker check instance "system.adapter.discovery.0" for host "iobroker"
host.iobroker check instance "system.adapter.backitup.0" for host "iobroker"
host.iobroker check instance "system.adapter.ems-esp.0" for host "iobroker"
host.iobroker check instance "system.adapter.jarvis.0" for host "iobroker"
host.iobroker check instance "system.adapter.kecontact.0" for host "iobroker"
host.iobroker check instance "system.adapter.signal-cmb.0" for host "iobroker"
host.iobroker check instance "system.adapter.web.0" for host "iobroker"
Send diag info: {"uuid":"244ca933-3ff0-4a47-8f3a-597aff132a36","language":"en","country":"Germany","hosts":[{"version":"5.0.17","platform":"Javascript/Node.js","type":"linux"}],"node":"v18.19.0","arch":"arm","docker":true,"adapters":{"admin":{"version":"6.12.0","platform":"Javascript/Node.js"},"discovery":{"version":"4.2.0","platform":"Javascript/Node.js"},"backitup":{"version":"2.9.8","platform":"Javascript/Node.js"},"ems-esp":{"version":"2.6.2","platform":"Javascript/Node.js"},"hm-rega":{"version":"4.0.0","platform":"Javascript/Node.js"},"hm-rpc":{"version":"1.15.19","platform":"Javascript/Node.js"},"jarvis":{"version":"3.1.8","platform":"Javascript/Node.js"},"javascript":{"version":"7.1.6","platform":"Javascript/Node.js"},"kecontact":{"version":"2.0.2","platform":"Javascript/Node.js"},"signal-cmb":{"version":"0.3.0","platform":"Javascript/Node.js"},"socketio":{"version":"6.5.5","platform":"Javascript/Node.js"},"tr-064":{"version":"4.2.18","platform":"Javascript/Node.js"},"vis-materialdesign":{"version":"0.5.79","platform":"Javascript/Node.js"},"web":{"version":"6.1.10","platform":"Javascript/Node.js"},"ws":{"version":"2.5.8","platform":"Javascript/Node.js"},"zigbee2mqtt":{"version":"2.13.4","platform":"Javascript/Node.js"},"nut":{"version":"1.6.0","platform":"Javascript/Node.js"},"history":{"version":"3.0.1","platform":"Javascript/Node.js"}},"statesType":"jsonl","objectsType":"jsonl","noInstances":17,"compactMode":false,"noCompactInstances":0,"model":"ARMv7 Processor rev 10 (v7l)","cpus":4,"mem":2109505536,"ostype":"Linux","city":""}
================================== > LOG REDIRECT system.adapter.jarvis.0 => true [system.adapter.jarvis.0.logging]
================================== > LOG REDIRECT system.adapter.admin.0 => true [system.adapter.admin.0.logging]
Send diag info: {"uuid":"244ca933-3ff0-4a47-8f3a-597aff132a36","language":"en","country":"Germany","hosts":[{"version":"5.0.17","platform":"Javascript/Node.js","type":"linux"}],"node":"v18.19.0","arch":"arm","docker":true,"adapters":{"admin":{"version":"6.12.0","platform":"Javascript/Node.js"},"discovery":{"version":"4.2.0","platform":"Javascript/Node.js"},"backitup":{"version":"2.9.8","platform":"Javascript/Node.js"},"ems-esp":{"version":"2.6.2","platform":"Javascript/Node.js"},"hm-rega":{"version":"4.0.0","platform":"Javascript/Node.js"},"hm-rpc":{"version":"1.15.19","platform":"Javascript/Node.js"},"jarvis":{"version":"3.1.8","platform":"Javascript/Node.js"},"javascript":{"version":"7.1.6","platform":"Javascript/Node.js"},"kecontact":{"version":"2.0.2","platform":"Javascript/Node.js"},"signal-cmb":{"version":"0.3.0","platform":"Javascript/Node.js"},"socketio":{"version":"6.5.5","platform":"Javascript/Node.js"},"tr-064":{"version":"4.2.18","platform":"Javascript/Node.js"},"vis-materialdesign":{"version":"0.5.79","platform":"Javascript/Node.js"},"web":{"version":"6.1.10","platform":"Javascript/Node.js"},"ws":{"version":"2.5.8","platform":"Javascript/Node.js"},"zigbee2mqtt":{"version":"2.13.4","platform":"Javascript/Node.js"},"nut":{"version":"1.6.0","platform":"Javascript/Node.js"},"history":{"version":"3.0.1","platform":"Javascript/Node.js"}},"statesType":"jsonl","objectsType":"jsonl","noInstances":17,"compactMode":false,"noCompactInstances":0,"model":"ARMv7 Processor rev 10 (v7l)","cpus":4,"mem":2109505536,"ostype":"Linux","city":""}
================================== > LOG REDIRECT system.adapter.admin.0 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.jarvis.0 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.javascript.0 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.javascript.1 => false [Process stopped]
================================== > LOG REDIRECT system.adapter.admin.0 => false [system.adapter.admin.0.logging]
================================== > LOG REDIRECT system.adapter.jarvis.0 => false [system.adapter.jarvis.0.logging]
================================== > LOG REDIRECT system.adapter.javascript.0 => false [system.adapter.javascript.0.logging]
================================== > LOG REDIRECT system.adapter.javascript.1 => false [system.adapter.javascript.1.logging]
^C
rainer@cubox:~/progs/iobroker$ docker exec -it iobroker /bin/bash
root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker# iob maintenance restart -y
You are now going to call a restart of your container.
Restarting will work depending on the configured restart policy.
Stopping ioBroker...root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker# iob maintenance on -y
You are now going to stop ioBroker and activate maintenance mode for this container.
Activating maintenance mode...
Stopping ioBroker...root@iobroker:/opt/iobroker#
root@iobroker:/opt/iobroker# iob maintenance restart -y
You are now going to call a restart of your container.
Restarting will work depending on the configured restart policy.
Container will be stopped or restarted in 5 seconds...
Description / Beschreibung
I call "exec('/opt/scripts/maintenance.sh restart -y')" from a script but it seems that the command does not run to its end. Log shows:
When I exec to the container and execute the same command it does not work either. It works if I set the container to maintenance mode first.
Looks like stop_iob exits somewhere and does not return.
Image version
v9.0.1
Docker logs / Docker Protokoll