Zigbee2mqtt installation bricht ab

Hy,

habe mal probiert das zigbee2mqtt zu installieren und scheitere grandios damit.

@serialport/bindings@2.0.8 install /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access ‘/root/.npm’
gyp WARN EACCES user “root” does not have permission to access the dev dir “/root/.node-gyp/10.16.3”
gyp WARN EACCES attempting to reinstall using temporary dev dir “/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp”
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp’
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN @typescript-eslint/eslint-plugin@1.12.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @typescript-eslint/parser@1.12.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN bl@0.7.0 requires a peer of stream-browserify@* but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/zigbee-shepherd-converters/node_modules/zigbee-herdsman/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/zigbee-herdsman/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serialport/bindings@2.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serialport/bindings@2.0.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-09-22T18_06_10_208Z-debug.log

Das ist der errorlog denn ich bekomme.Aber schlau werde ich da nicht draus.
Hat jemand ne idee was falsch läuft?

Danke euch. Hoffe jemand kann helfen.

Der Doc

Du haste deine Rechte von nodeJS verdengelt, weil du teilweise Dinge als root (sudo) installiert hast.
Du must also “ab jetzt” alles mit sudo installieren.

Ok, scheint wohl so, auch wenn ich nciht genau weiß wann das passiert ist .

Nun ja die installation lief jetzt einigermassen durch. allerdings starten läßt sich das ganze immernoch nicht:

Ausgabe bei der installation war:

*> @serialport/bindings@2.0.8 install /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings*
*> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild*
*prebuild-install WARN install No prebuilt binaries found (target=10.16.3 runtime=node arch=arm libc= platform=linux)*
*make: Entering directory '/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build'*
*CXX(target) Release/obj.target/bindings/src/serialport.o*
*CXX(target) Release/obj.target/bindings/src/serialport_unix.o*
*CXX(target) Release/obj.target/bindings/src/poller.o*
*CXX(target) Release/obj.target/bindings/src/serialport_linux.o*
*SOLINK_MODULE(target) Release/obj.target/bindings.node*
*COPY Release/bindings.node*
*make: Leaving directory '/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build'*
*> core-js-pure@3.1.4 postinstall /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/core-js-pure*
*> node scripts/postinstall || echo "ignore"*
*Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!*
*The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:*
*> https://opencollective.com/core-js*
*> https://www.patreon.com/zloirock*
*Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)*
*npm WARN @typescript-eslint/eslint-plugin@1.12.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.*
*npm WARN @typescript-eslint/parser@1.12.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.*
*npm WARN bl@0.7.0 requires a peer of stream-browserify@* but none is installed. You must install peer dependencies yourself.*
*npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/zigbee-shepherd-converters/node_modules/zigbee-herdsman/node_modules/fsevents):*
*npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})*
*npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/zigbee-herdsman/node_modules/fsevents):*
*npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})*
*npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):*
*npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})*
*added 741 packages from 512 contributors and audited 877679 packages in 229.296s*

*found 2 moderate severity vulnerabilities*
*run `npm audit fix` to fix them, or `npm audit` for details*

Wenn ich dann aber das ganze starten will kommt folgendes:

*> zigbee2mqtt@1.6.0 start /opt/zigbee2mqtt*
*> node index.js*

*internal/modules/cjs/loader.js:638*
*    throw err;*
*    ^*

*Error: Cannot find module 'zigbee-herdsman/dist/deprecated/ziee'*
*    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)*
*    at Function.Module._load (internal/modules/cjs/loader.js:562:25)*
*    at Module.require (internal/modules/cjs/loader.js:692:17)*
*    at require (internal/modules/cjs/helpers.js:25:18)*
*    at Object.<anonymous> (/opt/zigbee2mqtt/lib/zapp/cie.js:6:14)*
*    at Module._compile (internal/modules/cjs/loader.js:778:30)*
*    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)*
*    at Module.load (internal/modules/cjs/loader.js:653:32)*
*    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)*
*    at Function.Module._load (internal/modules/cjs/loader.js:585:3)*
*npm ERR! code ELIFECYCLE*
*npm ERR! errno 1*
*npm ERR! zigbee2mqtt@1.6.0 start: `node index.js`*
*npm ERR! Exit status 1*

*npm ERR!*
*npm ERR! Failed at the zigbee2mqtt@1.6.0 start script.*
*npm ERR! This is probably not a problem with npm. There is likely additional logging output above.*

*npm ERR! A complete log of this run can be found in:*
*npm ERR!     /root/.npm/_logs/2019-09-23T05_07_39_571Z-debug.log*

Irgendiene Idee was das sein kann, bzw. was man noch machen kann.

Error: Cannot find module 'zigbee-herdsman/dist/deprecated/ziee'*

Was sagt denn die zigbee2mqtt Doku dazu?

Die Doku sagt nicht viel

Im github Forum steht das der Fehler aktuell gehäuft in der neusten Version Auftritt. Allerdings ist der Lösungsvorschlag von dort bei mir ohne Erfolg

Please try after the install (“rm -r node_modules & npm install”): “npm install zigbee-herdsman@0.1.17”.

1 Like

So aus dem GitHub Forum nun die Lösung für das Problem bekommen

If git status shows the following:

modified: npm-shrinkwrap.json
modified: package.json
the problem can be fixed by running the following commands:

git checkout npm-shrinkwrap.json
git checkout package.json
rm -rf node_modules && npm install
npm start

2 Likes

Jetzt das nächste Problem

Der MQTT Server konnte nicht verbunden werden.
Die Frage ist nun muss man den mosquito bzw irgendeinen MQTT-Server noch installieren oder bringt homegear einen MQTT Server mit?

zigbee2mqtt:info 9/23/2019, 4:15:00 PM Logging to directory: ‘/opt/zigbee2mqtt/data/log/2019-09-23.16-14-58’
zigbee2mqtt:info 9/23/2019, 4:15:00 PM Starting zigbee2mqtt version 1.6.0 (commit #e26ad2a)
zigbee2mqtt:info 9/23/2019, 4:15:00 PM Starting zigbee-shepherd
zigbee2mqtt:info 9/23/2019, 4:15:01 PM zigbee-shepherd started
zigbee2mqtt:info 9/23/2019, 4:15:01 PM Coordinator firmware version: ‘20190608’
zigbee2mqtt:info 9/23/2019, 4:15:01 PM Currently 0 devices are joined:
zigbee2mqtt:warn 9/23/2019, 4:15:01 PM permit_join set to true in configuration.yaml.
zigbee2mqtt:warn 9/23/2019, 4:15:01 PM Allowing new devices to join.
zigbee2mqtt:warn 9/23/2019, 4:15:01 PM Set permit_join to false once you joined all devices.
zigbee2mqtt:info 9/23/2019, 4:15:01 PM Zigbee: allowing new devices to join.
zigbee2mqtt:info 9/23/2019, 4:15:02 PM Connecting to MQTT server at mqtt://localhost
zigbee2mqtt:info 9/23/2019, 4:15:02 PM zigbee-shepherd ready
zigbee2mqtt:error 9/23/2019, 4:15:12 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:15:22 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:15:32 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:15:42 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:15:52 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:16:02 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:16:12 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:16:22 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:16:32 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:16:42 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:16:52 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:17:02 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:17:12 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:17:22 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:17:32 PM Not connected to MQTT server!
zigbee2mqtt:info 9/23/2019, 4:17:42 PM Successfully reenabled joining
zigbee2mqtt:error 9/23/2019, 4:17:42 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:17:52 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:18:02 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:18:12 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:18:22 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:18:32 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:18:42 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:18:52 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:19:02 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:19:12 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:19:22 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:19:32 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:19:42 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:19:52 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:20:02 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:20:12 PM Not connected to MQTT server!
zigbee2mqtt:info 9/23/2019, 4:20:22 PM Successfully reenabled joining
zigbee2mqtt:error 9/23/2019, 4:20:22 PM Not connected to MQTT server!
^C zigbee2mqtt:error 9/23/2019, 4:20:23 PM Not connected to MQTT server!
zigbee2mqtt:error 9/23/2019, 4:20:23 PM Cannot send message: topic: ‘zigbee2mqtt/bridge/state’, payload: 'offline
zigbee2mqtt:info 9/23/2019, 4:20:23 PM zigbee-shepherd stopped

Gruß
Felix

Du musst definitiv noch einen mqtt-Server installieren. Ich denke die meisten benutzen mosquitto.

So dann mal danke an euch das erste zigbee gerät funkt

Nun muss ich das ganze noch einbinden das wird dann die nächsten Tage angegangen

Hat jemand noch ein Tutorial wie ich die zigbee Komponenten ins Blue Node bekommen

Danke euch

Ähh. Hast du mal ins node-blue Forum geschaut?

1 Like

Mhm um ehrlich zu sein war ich so happy das es endlich funzt das ich da gar nicht dran gedacht habe :see_no_evil:

Dann schau ich morgen mal dort