-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: possibility to call a restart from inside ioBroker (e.g. javascript-adapter) #413
Comments
Hi, can you please confirm if the issue still exists with actual beta image? Regards, |
Hi André, I tried beta.3 and noticed no difference in regard to the mentioned behavoir. If I exec to the container and call "iob maint restart -y" from the cmd line, it works. But when I call this from within a javascript it fails. After the script has run from the javascript adapter there is no iobroker owned process left:
Now calling "iob maint restart -y" from the command line fails too. The script terminates with this line: https://github.com/buanet/ioBroker.docker/blob/beta/debian12/scripts/maintenance.sh#L158 Regards, |
Hallo Rainer, mir sind heute leider die englischen Worte ausgegangen, daher switche (ups, da war wohl doch noch eins) ich jetzt mal in meine Muttersprache. Ich denke das ist ok, oder? Wenn ich dich recht verstehe, dann scheitert mit der Beta jetzt nur noch der Aufruf aus einem ioBroker JavaScript heraus, richtig? Ich weiß, dass ich zu dem Thema "Aufruf des Maintenance Scripts aus ioBroker heraus" schon mal eine Diskussion geführt habe. Ich habe verzweifelt gesucht, es aber leider nicht wieder gefunden. :( Wenn meine Vermutung von oben bezüglich deines Problems zutrifft, würde ich den issue gerne von bug auf enhancement ändern und du bekommst von mir vorerst ein "works as designed". :) Ich nehme das Thema aber natürlich gerne als Feature Request mit auf meine To-Do-Liste! MfG, |
Hallo André,
Ja, das stimmt zum Teil. Es gab keinen Unterschied von der beta zur v9.0.1. Es scheitert bei beiden aus den JavaScript heraus und funktioniert von der Kommandozeile. Komisch ist allerdings, dass wenn es erst mal gescheitert ist, es von der Kommandozeile auch nicht mehr geht. Wie kann man sich das erklären?
Ja, klingt gut. Danke! Viele Grüße, |
Ich habe jetzt eine Lösung, die funktioniert:
|
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
The text was updated successfully, but these errors were encountered: