NEWS
javascript Adapter bleibt immer rot nach Zigbee Stick update
-
Hallo,
leider bleibt mein Adapter javascript immer rot. Die einzige Änderung die ich aktuell gemacht habe war ein Update auf einen neuen Zigbee USB Stick. Vielleicht ist das aber auch nur Zufall. In jedem Fall bleibt der Adapter immer rot (hat vorher ohne Probleme funktioniert). Das Ganze läuft unter Docker auf einer Synology
Verwende:
NPM: 8.15.0
NodeJS: v16.17.0
Javascript: v6.1.4Hat vielleicht jemand eine Tipp zur Fehlerfindung
Unter Protokolle steht noch folgendes:
host.NAS 2023-01-14 12:30:26.653 error instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at node:internal/main/run_main_module:17:47 host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:839:12) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:66:19) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19) host.NAS 2023-01-14 12:30:26.652 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:839:12) host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14) host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:9:41) host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: TypeError: Cannot read properties of undefined (reading 'pattern2RegEx') host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: ^ host.NAS 2023-01-14 12:30:26.651 error Caught by controller[0]: const pattern2RegEx = utils.commonTools.pattern2RegEx; host.NAS 2023-01-14 12:30:26.650 error Caught by controller[0]: /opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:9 host.NAS 2023-01-14 12:29:54.971 error instance system.adapter.javascript.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.NAS 2023-01-14 12:29:54.971 error Caught by controller[0]: at node:internal/main/run_main_module:17:47 host.NAS 2023-01-14 12:29:54.971 error Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) host.NAS 2023-01-14 12:29:54.971 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:839:12) host.NAS 2023-01-14 12:29:54.971 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/main.js:66:19) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:839:12) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14) host.NAS 2023-01-14 12:29:54.970 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:9:41) host.NAS 2023-01-14 12:29:54.969 error Caught by controller[0]: TypeError: Cannot read properties of undefined (reading 'pattern2RegEx') host.NAS 2023-01-14 12:29:54.969 error Caught by controller[0]: ^
-
@luder
Gibt es Scripte in "global" ??? -
@codierknecht Ja gab es. Habe ich jetzt einmal alle gelöscht. Fehler besteht aber leider immer noch.
-
@luder sagte in javascript Adapter bleibt immer rot nach Zigbee Stick update:
@codierknecht Ja gab es. Habe ich jetzt einmal alle gelöscht. Fehler besteht aber leider immer noch.
Stoppen hätte auch reichen sollen.
Starte mal den ioBroker neu. Vielleicht ist da noch was hängengeblieben. -
@codierknecht Fehler bleibt leider auch nach Neustart
-
@luder sagte: reading 'pattern2RegEx'
Suche in den Skripten nach "pattern2RegEx".
-
pkill -u iobroker iobroker fix cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller
Container neu starten
-
@glasfaser sagte in javascript Adapter bleibt immer rot nach Zigbee Stick update:
pkill -u iobroker
Vielen Dank, dass hat funktioniert. Aber was habe ich denn damit bewirkt? Die Version vom Adapter ist ja unverändert .
-
@paul53 sagte in javascript Adapter bleibt immer rot nach Zigbee Stick update:
pattern2RegEx
Die pattern2RegEx habe ich nicht gefunden. Aber jetzt läuft es wieder, siehe unten
-
Keine Ahnung was du gemacht hast , denn ein :
ein Update auf einen neuen Zigbee USB Stick.
löst so einen Fehler im Adapter JS nicht aus !
Da hast du was zerschossen im JS .. und keine Ahnung wie ...
-
@glasfaser Es scheint immer nach einem Neustart meiner NAS aufzutreten. Konnte ich jetzt nachvollziehen, warum auch immer.