NEWS
[gelöst] iobroker startet nicht mehr nach update/upgrade
-
Hallo,
ich bin neu hier und verzweifele gerade.
Ich habe iobroker hier auf einen Rapsi 2 mit Rasbian Jessie laufen und bis vorhin hat alles super geklappt.
Dann habe ich ein "apt-get update" und "… upgrade" laufen lassen und seitden startet iobroker nicht mehr.
Beim booten kommt die Meldung:
"[FAILED] Failed to start LSB: starts iobroker"
"systemctl status iobroker.service" ergibt folgendes:
● iobroker.service - LSB: starts ioBroker Loaded: loaded (/etc/init.d/iobroker.sh) Active: failed (Result: exit-code) since Di 2016-04-05 21:34:29 CEST; 6min ago Process: 721 ExecStart=/etc/init.d/iobroker.sh start (code=exited, status=1/FAILURE) Apr 05 21:34:29 Raspi2 systemd[1]: Starting LSB: starts ioBroker... Apr 05 21:34:29 Raspi2 iobroker.sh[721]: Starting ioBrokersudo: /usr/local/bin/node: Kommando nicht gefunden Apr 05 21:34:29 Raspi2 systemd[1]: iobroker.service: control process exited, code=exited status=1 Apr 05 21:34:30 Raspi2 systemd[1]: Failed to start LSB: starts ioBroker. Apr 05 21:34:30 Raspi2 systemd[1]: Unit iobroker.service entered failed state.
ich habe schonmal vesucht node neu zu installieren, aber
"dpkg -i nodejs0_12_6_armhf.deb"
bricht ab mit:
dpkg: Betreffend nodejs0_12_6_armhf.deb, welches node enthält: nodejs-legacy kollidiert mit node node (Version 0.12.6-1) soll installiert werden. node liefert node und wird installiert. dpkg: Fehler beim Bearbeiten des Archivs nodejs0_12_6_armhf.deb (--install): Kollidierende Pakete - node wird nicht installiert Fehler traten auf beim Bearbeiten von: nodejs0_12_6_armhf.deb
bei "npm" kommt nur noch:
-bash: npm: Kommando nicht gefunden.
und auf "iobroker" reagiert er nun gar nicht mehr …
Kann mir irgendjemand helfen?
Danke im voraus und Gruß,
Olli
-
Ich habe node jetzt deinstalliert und neu installier.
npm funzt jetzt wieder aber jetzt das:
root@Raspi2:/opt/iobroker# npm install iobroker npm ERR! not a package /opt/iobroker/iobroker npm ERR! addLocal Could not install /opt/iobroker/iobroker npm ERR! Linux 4.1.20-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker" npm ERR! node v0.12.6 npm ERR! npm v2.11.2 npm ERR! path /tmp/npm-872-f8fc0bfd/unpack-e6faaaf0036e/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! enoent ENOENT, open '/tmp/npm-872-f8fc0bfd/unpack-e6faaaf0036e/package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/npm-debug.log
Kann jemand helfen?
-
Hallo Olli,
Die manuelle Neuinstallation von node.js hätte es nicht gebraucht. So wie es aussieht, war vorher das node.js aus dem raspbian Repository installiert.
Wahrscheinlich hat sich nun npm "verklemmt".
Lösche mal den npm cache mit
npm cache clean
Und versuche die Installation nochmal.
Gesendet von meinem GT-N8000 mit Tapatalk
-
Danke für den Tip, bringt aber keine Veränderung:
root@Raspi2:/opt/iobroker# npm cache clean root@Raspi2:/opt/iobroker# npm install iobroker npm ERR! not a package /opt/iobroker/iobroker npm ERR! addLocal Could not install /opt/iobroker/iobroker npm ERR! Linux 4.1.20-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker" npm ERR! node v0.12.6 npm ERR! npm v2.11.2 npm ERR! path /tmp/npm-888-c68e24a2/unpack-c98808225072/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! enoent ENOENT, open '/tmp/npm-888-c68e24a2/unpack-c98808225072/package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /opt/iobroker/npm-debug.log
Hier noch die angesprochene npm-debug.log:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli 'iobroker' ] 2 info using npm@2.11.2 3 info using node@v0.12.6 4 verbose install initial load of /opt/iobroker/package.json 5 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker/$ 6 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker.$ 7 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker.$ 8 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker.$ 9 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker.$ 10 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 11 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 12 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 13 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 14 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 15 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 16 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 17 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 18 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 19 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 20 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 21 verbose installManyTop reading scoped package data from /opt/iobroker/node_modules/iobroker$ 22 verbose readDependencies loading dependencies from /opt/iobroker/package.json 23 verbose install iobroker is installed as 0.7.1 24 silly cache add args [ 'iobroker', null ] 25 verbose cache add spec iobroker 26 silly cache add parsed spec { raw: 'iobroker', 26 silly cache add scope: null, 26 silly cache add name: null, 26 silly cache add rawSpec: 'iobroker', 26 silly cache add spec: '/opt/iobroker/iobroker', 26 silly cache add type: 'local' } 27 silly addLocalTarball shasum (computed) 172d89ea6df6ab508c7b69dc0540b583db07e40c 28 verbose addTmpTarball /opt/iobroker/iobroker not in flight; adding 29 verbose addTmpTarball validating metadata from /opt/iobroker/iobroker 30 verbose tar unpack /opt/iobroker/iobroker 31 verbose tar unpacking to /tmp/npm-888-c68e24a2/unpack-c98808225072 32 silly gentlyRm /tmp/npm-888-c68e24a2/unpack-c98808225072 is being purged 33 verbose gentlyRm don't care about contents; nuking /tmp/npm-888-c68e24a2/unpack-c98808225072 34 silly gunzTarPerm modes [ '755', '644' ] 35 error not a package /opt/iobroker/iobroker 36 error addLocal Could not install /opt/iobroker/iobroker 37 verbose stack Error: ENOENT, open '/tmp/npm-888-c68e24a2/unpack-c98808225072/package.json' 37 verbose stack at Error (native) 38 verbose cwd /opt/iobroker 39 error Linux 4.1.20-v7+ 40 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker" 41 error node v0.12.6 42 error npm v2.11.2 43 error path /tmp/npm-888-c68e24a2/unpack-c98808225072/package.json 44 error code ENOENT 45 error errno -2 46 error enoent ENOENT, open '/tmp/npm-888-c68e24a2/unpack-c98808225072/package.json' 46 error enoent This is most likely not a problem with npm itself 46 error enoent and is related to npm not being able to find a file. 47 verbose exit [ -2, true ]
Sagt dir das was?
-
Hmmmm,
hab jetzt den js-controller neu installiert:
npm install iobroker.js-controller
Der Fehler bei "npm install iobroker" bleibt, aber jetzt läuft iobroker wieder …
Mal sehen, wie lange.
-
Hmm.
Wenn der js-controller wieder normal läuft und auch nach dem Neustart wieder gestartet wird, würde ich das so lassen.
Es gibt ein paar andere Fälle hier im Forum, wo die wiederholte Installation des iobroker Package zum gleichen Fehler geführt hat (findet die Suchfunktion). Wahrscheinlich ist in der package.json oder einem Skript noch ein Bug, der nur in bestimmten Konstellationen auftritt.
Wenn das init.d Skript noch funktioniert, braucht man das aber nicht neu installieren.
Gesendet von meinem GT-N8000 mit Tapatalk
-
Hmm.
Wenn der js-controller wieder normal läuft und auch nach dem Neustart wieder gestartet wird, würde ich das so lassen. `
Ja, werde ich wohl so machen.
Bis jetzt läuft alles…
Gesendet von meinem E39 mit Tapatalk