NEWS
Skript lässt js Adapter abstürzen —> warum?
-
Hallo,
Ich habe ein skript das automatisch einmal in der Woche backups von meinem VMs in ein alten NUC einspielt.
Das hat eine ganze Zeit lang perfekt funktioniert, seit ein paar Wochen bringt das Skript immer an der gleichen Stelle den js Adapter zum Absturz.
Die Stelle ist immer der shutdown Befehl der den alten NUC runterfährt.

Ich habe zwei Varianten ausprobiert einmal erfolgt der shutdown Befehl über den linux-controll Adapter und einmal per simple-ssh. Bei beiden Varianten tritt der Fehler auf.

Wenn ich die beide shutdown Befehle einzeln ausführe wird NUC runtergefahren ohne Absturzt des js Adapter.
Ich weiß deshalb nicht mehr wirklich an was es liegen könnte, habt ihr eine Idee?
Hier die Fehler im log dazu:
2021-11-21 06:32:26.714 - error: javascript.0 (23438) An error happened which is most likely from one of your scripts, but the originating script could not be detected. 2021-11-21 06:32:26.718 - error: javascript.0 (23438) Error: Not connected 2021-11-21 06:32:26.718 - error: javascript.0 (23438) Error: Not connected at Client.exec (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/client.js:714:11) at SSH._queueCommand (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:68:13) at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:110:22) at Channel.emit (events.js:326:22) at Channel.EventEmitter.emit (domain.js:483:12) at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/Channel.js:135:18) at Object.onceWrapper (events.js:420:28) at Channel.emit (events.js:326:22) at Channel.EventEmitter.emit (domain.js:483:12) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-11-21 06:32:26.725 - error: javascript.0 (23438) An error happened which is most likely from one of your scripts, but the originating script could not be detected. 2021-11-21 06:32:26.725 - error: javascript.0 (23438) Error: Not connected 2021-11-21 06:32:26.725 - error: javascript.0 (23438) Error: Not connected at Client.exec (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/client.js:714:11) at SSH._queueCommand (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:68:13) at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:110:22) at Channel.emit (events.js:326:22) at Channel.EventEmitter.emit (domain.js:483:12) at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/Channel.js:135:18) at Object.onceWrapper (events.js:420:28) at Channel.emit (events.js:326:22) at Channel.EventEmitter.emit (domain.js:483:12) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-11-21 06:32:26.850 - error: host.iobroker Caught by controller[0]: Error: Not connected 2021-11-21 06:32:26.852 - error: host.iobroker Caught by controller[0]: at Client.exec (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/client.js:714:11) 2021-11-21 06:32:26.852 - error: host.iobroker Caught by controller[0]: at SSH._queueCommand (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:68:13) 2021-11-21 06:32:26.852 - error: host.iobroker Caught by controller[0]: at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:110:22) 2021-11-21 06:32:26.852 - error: host.iobroker Caught by controller[0]: at Channel.emit (events.js:326:22) 2021-11-21 06:32:26.852 - error: host.iobroker Caught by controller[0]: at Channel.EventEmitter.emit (domain.js:483:12) 2021-11-21 06:32:26.852 - error: host.iobroker Caught by controller[0]: at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/Channel.js:135:18) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[0]: at Object.onceWrapper (events.js:420:28) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[0]: at Channel.emit (events.js:326:22) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[0]: at Channel.EventEmitter.emit (domain.js:483:12) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[0]: at endReadableNT (_stream_readable.js:1241:12) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[0]: at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: Error: Not connected 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at Client.exec (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/client.js:714:11) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at SSH._queueCommand (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:68:13) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/lib/ssh.js:110:22) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at Channel.emit (events.js:326:22) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at Channel.EventEmitter.emit (domain.js:483:12) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at Channel. (/opt/iobroker/node_modules/iobroker.javascript/node_modules/simple-ssh/node_modules/ssh2/lib/Channel.js:135:18) 2021-11-21 06:32:26.853 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (events.js:420:28) 2021-11-21 06:32:26.854 - error: host.iobroker Caught by controller[1]: at Channel.emit (events.js:326:22) 2021-11-21 06:32:26.854 - error: host.iobroker Caught by controller[1]: at Channel.EventEmitter.emit (domain.js:483:12) 2021-11-21 06:32:26.854 - error: host.iobroker Caught by controller[1]: at endReadableNT (_stream_readable.js:1241:12) 2021-11-21 06:32:26.854 - error: host.iobroker Caught by controller[1]: at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-11-21 06:32:26.854 - error: host.iobroker instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden