NEWS
nach NodeJS update 16.x startet zigbee nicht mehr
-
Systemdata Bitte Ausfüllen Hardwaresystem: Pi4. Arbeitsspeicher: 4GB Festplattenart: SD-Karte& Betriebssystem: Ubuntu/Windows/Mac Node-Version: Nodejs-Version: v16.14.2 NPM-Version: 8.5.0 Installationsart: Manuell Image genutzt: JNein huhu ich wollte JS auf 4.0 updaten scheitere aber schon bei NodeJS 16... den fix für den Klf habe ich noch hinbekommen aber der zigbee adatper starte trotz
iobroker rebuild zigbee.0
nicht mehr
hier noch der log nach einem neustart des adapters
host.PI4 2022-03-31 11:18:06.907 info Rebuild for adapter system.adapter.zigbee.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually. host.PI4 2022-03-31 11:18:06.907 error instance system.adapter.zigbee.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.PI4 2022-03-31 11:18:06.907 error Caught by controller[0]: } host.PI4 2022-03-31 11:18:06.906 error Caught by controller[0]: code: 'ERR_DLOPEN_FAILED' host.PI4 2022-03-31 11:18:06.906 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) { host.PI4 2022-03-31 11:18:06.906 error Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10) host.PI4 2022-03-31 11:18:06.906 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1103:14) host.PI4 2022-03-31 11:18:06.906 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/lib/linux.js:2:36) host.PI4 2022-03-31 11:18:06.906 error Caught by controller[0]: at bindings (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:112:48) host.PI4 2022-03-31 11:18:06.905 error Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18) host.PI4 2022-03-31 11:18:06.905 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1005:19) host.PI4 2022-03-31 11:18:06.905 error Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:822:12) host.PI4 2022-03-31 11:18:06.905 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:981:32) host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1187:18) host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: NODE_MODULE_VERSION 72. This version of Node.js requires host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: was compiled against a different Node.js version using host.PI4 2022-03-31 11:18:06.903 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build/Release/bindings.node' host.PI4 2022-03-31 11:18:06.903 error Caught by controller[0]: ^ host.PI4 2022-03-31 11:18:06.903 error Caught by controller[0]: throw e; host.PI4 2022-03-31 11:18:06.902 error Caught by controller[0]: /opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:121 host.PI4 2022-03-31 11:18:05.003 info instance system.adapter.zigbee.0 started with pid 10673 host.PI4 2022-03-31 11:18:04.798 info "system.adapter.zigbee.0" enabled host.PI4 2022-03-31 11:18:02.262 info "system.adapter.zigbee.0" disabled
an was könnte es liegen?
-
@christian-sandkaulen
Log lesen. Da steht
- woran es liegt
- was zu tun ist
Wichtig: Log einträge müssen in der richtigen Reihenfolge gelesen werden, in diesem Fall "von unten" :
host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: NODE_MODULE_VERSION 72. This version of Node.js requires host.PI4 2022-03-31 11:18:06.904 error Caught by controller[0]: was compiled against a different Node.js version using host.PI4 2022-03-31 11:18:06.903 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build/Release/bindings.node'
Klartext: Das hardwarenahe Modul
/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build/Release/bindings.node
(übersetzt für NODE_MODULE_VERSION 72) passt nicht zur aktuell installierten Node.JS version (NODE_MODULE_VERSION 93).
Um das Problem zu beheben:Auf die Konsole gehen, in das Verzeichnis /opt/iobroker,
npm rebuild
ausführen.A.
-
danke dann kann ich jetzt den JS Cont updaten
zigbee.0 2022-03-31 11:41:20.634 info (18523) Zigbee started
-
Ist evtl etwas verwirrend. ganz oben steht was anderes
Please execute "npm install --production" in adapter directory manually.
Und geht wahrscheinlich schneller, weil nicht alles neu compiliert wird.
-
@oliverio sagte in nach NodeJS update 16.x startet zigbee nicht mehr:
Ist evtl etwas verwirrend. ganz oben steht was anderes
Please execute "npm install --production" in adapter directory manually.
Und geht wahrscheinlich schneller, weil nicht alles neu compiliert wird.
Geht ggf. schneller weil nicht alles neu kompiliert wird - geht aber auch in die Hose, weil nicht alles neu kompiliert wird.
Das "Wurde nicht neu kompiliert" ist genau die Ursache des Fehlers.
A.
-
hat aber echt auch lange gedauert, ist aber ja nicht weiter schlimm.
-
@christian-sandkaulen @Asgothian
Danke für den Post. Ich habe genau den gleichen Fehler nach node.js Update von 12 auf 14.Habe nun npm rebuild ausgeführt. Kann man da den Status verfolgen? Nach 30 Minuten ist die Putty Verbindung unterbrochen worden. Nun weiß ich nicht ob sich noch etwas tut oder es schief gegangen ist.
-
Wieder anmelden. Und nochmal schauen. Wenn das rebuild unterbrochen wurde sieht man das im Log.
-
@thomas-braun
Anmelden über Putty funktioniert nicht mehrÜber die Proxmoxkonsole Konsole komme ich soweit
-
Mach einen eigenen Thread auf. Da ist vielleicht im Proxmurks was kaputt. Hab ich aber nix mit am Hut.