NEWS
Dash Button Adapter Installation auf Rock64 Stretch IOBroker
-
Hallo zusammen,
ich ziehe derzeit meine IOBroker Installation von einem Raspi2 auf einen Rock64 um (mit Stretch minimal).
Alles hat problemlos funktioniert, nur der Dashbutton-Adapter macht enorme Probleme.
Ich würde mich freuen, wenn mir diesbezüglich jemand weiterhelfen kann.
Nachfolgend die Infos:
node: v8.12.0
nodejs: v8.12.0
npm: 4.6.1
Git ist installiert und libcab-dev auch.
Ich habe auch versucht, den Adapter direkt von der Console aus zu installieren. Das Log sieht wie folgt aus:
$ ./iobroker add amazon-dash NPM version: 4.6.1 npm install iobroker.amazon-dash --production --save --prefix "/opt/iobroker" (System call) npm WARN lifecycle iobroker.amazon-dash@0.2.9~preinstall: cannot run in wd %s %s (wd=%s) iobroker.amazon-dash@0.2.9 apt-get install libpcap-dev -y || true /opt/iobroker/node_modules/.staging/iobroker.amazon-dash-eb5038e9 gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/epoll/.node-gyp" Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524gyp 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/epoll gyp ERR! node -v v8.12.0gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/mdns/.node-gyp" Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 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/mdnsgyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.6.0gyp ERR! not ok gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.12.0"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/socketwatcher/.node-gyp" Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13)gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524gyp 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/socketwatcher gyp ERR! node -v v8.12.0gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 (node_modules/epoll):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.4.0 (node_modules/mdns):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.4.0 install: `node-gyp rebuild`npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! socketwatcher@0.3.0 install: `node-gyp rebuild` npm ERR! Exit status 1npm ERR! npm ERR! Failed at the socketwatcher@0.3.0 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/2018-09-15T07_08_51_924Z-debug.log host.rock64 create instance amazon-dash ERROR: host.rock64 error: reading io-package.json Error: ENOENT: no such file or directory, open 'null/io-package.json' ERROR: process exited with code 20</module></module></module></module></module></module></module></module></module>IOBroker läuft unter dem User "Rock64" - der hat allerdings toot-Rechte - sollte er zumindest!?
Hat jemand eine Idee, was ich sonst noch versuchen könnte?
Danke vielmals
Grüße
Frank
-
Danke für Deine Antwort. Den Thread hatte ich bereits gesehen und auch versucht, über den Befehl:
npm install https://github.com/PArns/ioBroker.amazon-dash/tarball/master --production --prefix "/opt/iobroker" --unsafe-permzu installieren. Leider ebenfalls ohne Erfolg :(
JS-Controller latest update ich über iobroker update und upgrade self, oder? Welchen Flag muss ich für den latest dahinter setzen?
Dann würde ich es nochmals damit testen…
Vielen Dank!
-
Habe es jetzt nochmals mit dem neuesten JS-Controller 1.5.2 versucht.
Bekomme immer noch folgende Fehler und den Dash-Adapter nicht zum installieren:
$ ./iobroker add amazon-dash --host rock64 NPM version: 4.6.1 npm install iobroker.amazon-dash --unsafe-perm --production --save --prefix "/opt/iobroker" (System call) Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 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/diskusage gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 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/epoll gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 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/mdns gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok Traceback (most recent call last): File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 13, in <module> import gyp File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 8, in <module> import gyp.input File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 5, in <module> from compiler.ast import Const ImportError: No module named compiler.ast gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 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/socketwatcher gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: diskusage@0.2.4 (node_modules/diskusage):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: diskusage@0.2.4 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 (node_modules/epoll): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.4.0 (node_modules/mdns): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mdns@2.4.0 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! code ELIFECYCLEnpm ERR! errno 1 npm ERR! socketwatcher@0.3.0 install: `node-gyp rebuild`npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the socketwatcher@0.3.0 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/2018-09-15T11_23_07_524Z-debug.log host.rock64 create instance amazon-dash ERROR: host.rock64 error: reading io-package.json Error: ENOENT: no such file or directory, open 'null/io-package.json' ERROR: process exited with code 20</module></module></module></module></module></module></module></module></module></module></module></module>Hat jemand eine Idee, was ich noch tun kann?
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