NEWS
Hilfe IOBroker Install und Z-Wave
-
Er installiert den Adapter gar nicht erst!
Überschrift: Fertig mit Fehler: host.raspberrypi Cannot install zwave
fehler sind jede Menge im Adapter Protokoll:
$ ./iobroker add zwave
NPM version: 6.4.1
npm install iobroker.zwave –unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
find: ‘/tmp/systemd-private-23c8f62f7a61447fafe779aca13830bd-systemd-timesyncd.service-aeJZ1g’: Keine Berechtigung
find: ‘/etc/polkit-1/localauthority’: Keine Berechtigungfind: ‘/etc/ssl/private’: Keine Berechtigung
find: ‘/tmp/systemd-private-23c8f62f7a61447fafe779aca13830bd-systemd-timesyncd.service-aeJZ1g’: Keine Berechtigung
Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat. Normalerweise läuft es auf drei Regeln hinaus:
#1) Respektieren Sie die Privatsphäre anderer.
#2) Denken Sie nach, bevor Sie tippen.
#3) Mit großer Macht kommt große Verantwortung.
sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:16 if (!suppressException) throw e;
^
Error: Command failed: sudo apt-get install libudev-dev -y
Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat. Normalerweise läuft es auf drei Regeln hinaus:
#1) Respektieren Sie die Privatsphäre anderer.
#2) Denken Sie nach, bevor Sie tippen.
#3) Mit großer Macht kommt große Verantwortung.
sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
at checkExecSyncError (child_process.js:602:13)
at Object.execSync (child_process.js:642:13)
at doScript (/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:13:15)
at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:26:7)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
npm
ERR! code ELIFECYCLE
npm ERR! errno 1
npm
ERR! iobroker.zwave@1.3.1 preinstall:
node lib/preinstall.jsnpm ERR! Exit status 1npm ERR!
npm ERR!
Failed at the iobroker.zwave@1.3.1 preinstall 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! /home/iobroker/.npm/_logs/2018-12-09T09_09_48_635Z-debug.log
host.raspberrypi install adapter zwave
NPM version: 6.4.1
npm install iobroker.zwave --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
find: ‘/tmp/systemd-private-23c8f62f7a61447fafe779aca13830bd-systemd-timesyncd.service-aeJZ1g’: Keine Berechtigung
find: ‘/etc/polkit-1/localauthority’: Keine Berechtigungfind: ‘/etc/ssl/private’: Keine Berechtigung
find: ‘/tmp/systemd-private-23c8f62f7a61447fafe779aca13830bd-systemd-timesyncd.service-aeJZ1g’: Keine Berechtigung
Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat. Normalerweise läuft es auf drei Regeln hinaus:
#1) Respektieren Sie die Privatsphäre anderer.
#2) Denken Sie nach, bevor Sie tippen.
#3) Mit großer Macht kommt große Verantwortung.
sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:16 if (!suppressException) throw e;
^
Error: Command failed: sudo apt-get install libudev-dev -y
Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat. Normalerweise läuft es auf drei Regeln hinaus:
#1) Respektieren Sie die Privatsphäre anderer.
#2) Denken Sie nach, bevor Sie tippen.
#3) Mit großer Macht kommt große Verantwortung.
sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
at checkExecSyncError (child_process.js:602:13)
at Object.execSync (child_process.js:642:13)
at doScript (/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:13:15)
at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:26:7)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
npm
ERR!
code ELIFECYCLEnpm ERR! errno
1
npm
ERR!
iobroker.zwave@1.3.1 preinstall:
node lib/preinstall.jsnpmERR!
Exit status 1npm
ERR!
npm
ERR! Failed at the iobroker.zwave@1.3.1 preinstall 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! /home/iobroker/.npm/_logs/2018-12-09T09_10_21_493Z-debug.log
host.raspberrypi install adapter zwave
NPM version: 6.4.1npm install iobroker.zwave --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
find: ‘/tmp/systemd-private-23c8f62f7a61447fafe779aca13830bd-systemd-timesyncd.service-aeJZ1g’: Keine Berechtigung
find: ‘/etc/polkit-1/localauthority’: Keine Berechtigungfind: ‘/etc/ssl/private’: Keine Berechtigung
find: ‘/tmp/systemd-private-23c8f62f7a61447fafe779aca13830bd-systemd-timesyncd.service-aeJZ1g’: Keine Berechtigung
Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat. Normalerweise läuft es auf drei Regeln hinaus:
#1) Respektieren Sie die Privatsphäre anderer.
#2) Denken Sie nach, bevor Sie tippen.
#3) Mit großer Macht kommt große Verantwortung.
sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:16 if (!suppressException) throw e;
^
Error: Command failed: sudo apt-get install libudev-dev -y
Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat. Normalerweise läuft es auf drei Regeln hinaus:
#1) Respektieren Sie die Privatsphäre anderer.
#2) Denken Sie nach, bevor Sie tippen.
#3) Mit großer Macht kommt große Verantwortung.
sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
at checkExecSyncError (child_process.js:602:13)
at Object.execSync (child_process.js:642:13)
at doScript (/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:13:15)
at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.zwave/lib/preinstall.js:26:7)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
npm
ERR! code ELIFECYCLE
npm
ERR!
errno 1
npm
ERR!
iobroker.zwave@1.3.1 preinstall:
node lib/preinstall.jsnpmERR!
Exit status 1npm ERR!
npm ERR! Failed at the iobroker.zwave@1.3.1 preinstall 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!
/home/iobroker/.npm/_logs/2018-12-09T09_10_54_478Z-debug.log
host.raspberrypi install adapter zwave
ERROR: host.raspberrypi Cannot install zwave
ERROR: process exited with code 13
Könnt ihr was damit anfangen?
NPM ist >6 ....</anonymous></anonymous></anonymous>
-
Du könntest mal probieren, den Adapter von Hand über die Konsole zu installieren.
cd /opt/iobroker sudo -H npm i iobroker.zwave --unsafe-permUm dir dabei die Zugriffsrechte nicht zu versauen, sollten die danach wieder korrigiert werden. Falls du nach der neuesten Anleitung installiert hast (curl … | bash -), dann geht das einfach so:
sudo chown iobroker -R /opt/iobroker -
Das hat schon mal etwas gebracht… Danke
jetzt kann ich den adapter installieren aber funktionieren tut er nicht bzw. er startet nicht, Konsole hat
nach dem Befehl folgendes ausgeworfen:
Makefile:224: Documentation not being built
- iobroker.zwave@1.3.1
updated 1 package and audited 2277 packages in 451.706s
found 39 vulnerabilities (28 low, 11 high)
run
npm audit fixto fix them, ornpm auditfor detailsroot@raspberrypi:/opt/iobroker# npm audit fix
npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run npm install to fix them.
npm ERR! Invalid: lock file's iobroker.admin@3.4.7 does not satisfy iobroker.admin@^3.5.10
npm ERR! Missing: iobroker.ping@^1.3.2
npm ERR! Missing: iobroker.web@^2.4.1
npm ERR! Missing: iobroker.zwave@^1.3.1
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-12-09T15_16_30_859Z-debug.log
root@raspberrypi:/opt/iobroker#
was soll das npm audit fix bringen?
-
host.raspberrypi 2018-12-09 16:24:46.631 info Restart adapter system.adapter.zwave.0 because enabled
host.raspberrypi 2018-12-09 16:24:46.631 error instance system.adapter.zwave.0 terminated with code 0 (OK)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Module.load (module.js:566:32)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Object.Module._extensions..js (module.js:664:10)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Module._compile (module.js:653:30)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/openzwave-shared/lib/openzwave-shared.js:24:22)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at require (internal/module.js:11:18)
host.raspberrypi 2018-12-09 16:24:46.630 error Caught by controller[0]: at Module.require (module.js:597:17)
Im Log beim Io Broker steht immer wieder dass er den adapter neustarten will aber er bekommt in nicht zum
laufen… fehlt noch irgend ein treiber etc? :(</anonymous>
-
host.raspberrypi 2018-12-09 16:24:46.631 info Restart adapter system.adapter.zwave.0 because enabled
host.raspberrypi 2018-12-09 16:24:46.631 error instance system.adapter.zwave.0 terminated with code 0 (OK)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Module.load (module.js:566:32)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Object.Module._extensions..js (module.js:664:10)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Module._compile (module.js:653:30)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at Object. <anonymous>(/opt/iobroker/node_modules/openzwave-shared/lib/openzwave-shared.js:24:22)
host.raspberrypi 2018-12-09 16:24:46.631 error Caught by controller[0]: at require (internal/module.js:11:18)
host.raspberrypi 2018-12-09 16:24:46.630 error Caught by controller[0]: at Module.require (module.js:597:17)
Im Log beim Io Broker steht immer wieder dass er den adapter neustarten will aber er bekommt in nicht zum
laufen… fehlt noch irgend ein treiber etc? :(</anonymous> `
npm audit kannst du getrost ignorieren. In deiner Fehlermeldung fehlt leider die eigentliche Meldung. Schau bitte nochmal, dass du alles kopierst. Und auch, ob der Fehler nicht in den known issues steht: https://github.com/iobroker/iobroker.zwave#known-issues -
Ich hab jetzt doch alles am laufen… :lol:
Ganz genau kann ich nicht mal sagen wieso es auf einmal dann lief.
Habe natürlich jetzt sofort ein Backup Imager der SD Karte gemacht bevor der Raspi die Irgendwann
frisst und das Drama neu beginnt. Danke dir auf jeden Fall für die Hilfe...
Muss ich noch irgend etwas wichtiges beachten wenn der Raspi nun als ZWave Controller
dauerhaft fungieren soll?
Könnte ich eigentlich parallel auch noch einen Zigbee Stick einbinden und beide Systeme gleichzeitig
agieren lassen? Das würde in Sachen Auswahl der Komponenten sehr viel Freiraum bringen...
Noch mal Danke danke danke... auch an alle Jungs vom IOBroker Team...
-
Muss ich noch irgend etwas wichtiges beachten wenn der Raspi nun als ZWave Controller
dauerhaft fungieren soll? `
nein ;)
Könnte ich eigentlich parallel auch noch einen Zigbee Stick einbinden und beide Systeme gleichzeitig
agieren lassen? Das würde in Sachen Auswahl der Komponenten sehr viel Freiraum bringen… `
ja ;)
-
Hallo zusammen,
ich habe Zwave auch manuell installiert, so wie oben angegeben und danach ein CHOWN und ein CHGRP auf iobroker gemacht.
In der Webgui von iobroker zeigt er mir an, dass der ZWAVE Adapter installiert ist, allerdings finde ich keinerlei Instanz?!
Hat jemand eine Idee, was ich da machen kann?
Danke und Gruß
Danyo
-
Hallo,
danke für den Hinweis. Allerdings bekomme ich mit
iobroker add zwave
ein Rechteproblem.
:/opt/iobroker $ iobroker add zwave
host.iobroker install adapter zwave
npm install –production (System call) in "/opt/iobroker/node_modules/iobroker.zwave"
find: ‘/tmp/systemd-private-dfce52e7bf0543fd9b7e45a061dc5f27-systemd-timesyncd.service-lmxC0S’: Permission denied
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 0 125 0 0 212 0 --:--:-- --:--:-- --:--:-- 212
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to creat
Über das Admin gehts gar nicht. Scheint an dem iobroker user zu liegen.
Kann das iobroker add zwave einfach mit sudo ausgeführt werden, oder wird davon abgeraten?
-
Hi,
auch eine Installation per Sudo schlägt hier leider fehl
sudo iobroker add zwave
host.iobroker install adapter zwave npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.zwave" npm WARN lifecycle iobroker.zwave@1.3.1~preinstall: cannot run in wd iobroker.zwave@1.3.1 node lib/preinstall.js (wd=/opt/iobroker/node_modules/iobroker.zwave) npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/.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/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared/.node-gyp' gyp ERR! System Linux 4.14.79-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/iobroker/node_modules/iobroker.zwave/node_modules/openzwave-shared gyp ERR! node -v v8.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN iobroker.zwave@1.3.1 license should be a valid SPDX license expression npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! openzwave-shared@1.4.6 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the openzwave-shared@1.4.6 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-01-04T09_17_29_455Z-debug.log Cannot install iobroker.zwave: 1Noch jemand eine Idee?
Danke und Gruß
-
Hi,
hat nun geklappt –> Antwort siehe hier: viewtopic.php?f=20&t=9685&p=213556#p213556 :-)
Danke und Gruß
Danyo