NEWS
ERROR ENOENT bei Installation
-
Hallo Bluefox,
ich habe es jetzt endlich geschafft auch mal diesen Fehler zu "reproduzieren"
npm ERR! not a package /opt/iobroker/iobroker npm ERR! addLocal Could not install /opt/iobroker/iobroker npm ERR! Linux 4.8.4-sunxi npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker" "--production" npm ERR! node v4.7.2 npm ERR! npm v2.15.11 npm ERR! /tmp/npm-10450-40ee0f47/unpack-2fa1cea26739/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-10450-40ee0f47/unpack-2fa1cea26739/package.json'
Und es ist tatsächlich so, unter ****/tmp/****befindet sich zwar der Ordner npm-10450-40ee0f47 mit dem Unterordner unpack-2fa1cea26739, doch darin befindet sich jedoch nicht die Datei package.json, sonder eine Datei index.js mit dem Inhalt:
node node_modules/iobroker.js-controller/iobroker.js $1 $2 $3 $4 $5
Löschen des Ordners /npm-10450-40ee0f47/ führte beim nächsten Versuch dazu einen neuen Ordner mit anderer Bezeichnung anzulegen mit einem neuen Unterordner mit anderer Bezeichnung, der wieder nur index.js enthält.
Was kann man in so einem Fall noch machen ausser komplett neu zu installieren?
Auf der Suche nach der Ursache meines eigentlichen Problemes, das zu dem Zustand geführt hat, dass ich ioBroker drüberinstallieren wollte, es lief .vis aber an den admin kam ich nicht, bin ich über deine Problemanalyse der Website gegangen, allerdings waren die Ports 9000 und 9001 nicht der IP 0.0.0.0, sondern der IPv6 ::: zugeordnet
!
root@ioBroker_Cubie:/opt/iobroker# sudo netstat -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 559/redis-server 12 tcp 0 0 192.168.138.53:2001 0.0.0.0:* LISTEN 2706/io.hm-rpc.0 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 553/sshd tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 2954/node-red tcp 0 0 192.168.138.53:8701 0.0.0.0:* LISTEN 2726/io.hm-rpc.1 tcp6 0 0 :::9001 :::* LISTEN 5528/iobroker.js-co tcp6 0 0 :::8082 :::* LISTEN 2680/io.web.0 tcp6 0 0 :::8084 :::* LISTEN 2906/io.socketio.0 tcp6 0 0 :::22 :::* LISTEN 553/sshd tcp6 0 0 :::8087 :::* LISTEN 3029/io.simple-api. udp 0 0 0.0.0.0:68 0.0.0.0:* 818/dhclient udp 0 0 192.168.138.53:123 0.0.0.0:* 817/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 817/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 817/ntpd udp 0 0 0.0.0.0:10393 0.0.0.0:* 818/dhclient udp6 0 0 fe80::f:6ff:fe01:21:123 :::* 817/ntpd udp6 0 0 ::1:123 :::* 817/ntpd udp6 0 0 :::123 :::* 817/ntpd udp6 0 0 :::49801 :::* 818/dhclient Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 1024 1/init /run/systemd/private unix 2 [ ACC ] STREAM LISTENING 19471 1129/systemd /run/user/0/systemd/private unix 2 [ ACC ] SEQPACKET LISTENING 12310 1/init /run/udev/control unix 2 [ ACC ] STREAM LISTENING 12313 1/init /run/systemd/journal/stdout unix 2 [ ACC ] STREAM LISTENING 16674 642/lircd /var/run/lirc/lircd unix 2 [ ACC ] STREAM LISTENING 16089 1/init /var/run/dbus/system_bus_socket !
Kann ioBroker mit IPv6 umgehen?
Gruß
Rainer
-
Ich hatte den Fehler auch schon gesehen und …. keine Lösung gefunden.
Man kann noch wirklich mit "su" probieren das ioBroker zu installieren. Ein mal hat es geholfen (und danach hatte ich den Fehler nicht mehr
)
IPv6 sollte kein Problem sein.
Gruß,
Bluefox
-
Man kann noch wirklich mit "su" probieren das ioBroker zu installieren. `
Ich hatte es als user cubie mit sudo und als root versucht.Meinst du cubie mit sudo su oder sogar beim root noch ein su?
Ich werde das testen und berichten
Gruß
Rainer
-
Das ist npm Fehler. Theoretisch sollte es auch mit npm 3 und 4 gehen.
npm i npm -g
-
Probiere ich auch heute abend,
Fehler war erst mit npm 3 und nodejs 6.9.4 habe bereits downgrade auf npm 2 und nodejs 4.7.x gemacht, fehler blieb.
Gruß
Rainer
-
Hilft leider alles nicht.
npm i npm -g
hat npm auf Version 4.0.5 angehoben.
danach gleicher Fehler mit gleichem Inhalt in den Ordnern unter tmp
npm-debug log zeigt
!
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/nodejs', 1 verbose cli '/usr/bin/npm', 1 verbose cli 'install', 1 verbose cli 'iobroker', 1 verbose cli '--production' ] 2 info using npm@4.0.5 3 info using node@v4.7.2 4 silly loadCurrentTree Starting 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly fetchPackageMetaData iobroker 8 silly fetchOtherPackageData iobroker 9 silly cache add args [ 'iobroker', null ] 10 verbose cache add spec iobroker 11 silly cache add parsed spec Result { 11 silly cache add raw: 'iobroker', 11 silly cache add scope: null, 11 silly cache add escapedName: 'iobroker', 11 silly cache add name: null, 11 silly cache add rawSpec: 'iobroker', 11 silly cache add spec: '/opt/iobroker/iobroker', 11 silly cache add type: 'local' } 12 silly addLocalTarball shasum (computed) 172d89ea6df6ab508c7b69dc0540b583db07e40c 13 verbose addTmpTarball /opt/iobroker/iobroker not in flight; adding 14 verbose correctMkdir /root/.npm correctMkdir not in flight; initializing 15 verbose addTmpTarball validating metadata from /opt/iobroker/iobroker 16 verbose tar unpack /opt/iobroker/iobroker 17 verbose tar unpacking to /tmp/npm-18230-77e97216/unpack-f6276164 18 silly gentlyRm /tmp/npm-18230-77e97216/unpack-f6276164 is being purged 19 verbose gentlyRm don't care about contents; nuking /tmp/npm-18230-77e97216/unpack-f6276164 20 silly gunzTarPerm modes [ '755', '644' ] 21 error not a package /opt/iobroker/iobroker 22 error addLocal Could not install /opt/iobroker/iobroker 23 silly fetchPackageMetaData Error: ENOENT: no such file or directory, open '/tmp/npm-18230-77e97216/unpack-f6276164/package.json' 23 silly fetchPackageMetaData at Error (native) 23 silly fetchPackageMetaData error for iobroker { [Error: ENOENT: no such file or directory, open '/tmp/npm-18230-77e97216/unpack-f6276164/package.json'] 23 silly fetchPackageMetaData errno: -2, 23 silly fetchPackageMetaData code: 'ENOENT', 23 silly fetchPackageMetaData syscall: 'open', 23 silly fetchPackageMetaData path: '/tmp/npm-18230-77e97216/unpack-f6276164/package.json' } 24 silly rollbackFailedOptional Starting 25 silly rollbackFailedOptional Finishing 26 silly runTopLevelLifecycles Finishing 27 silly install printInstalled 28 verbose stack Error: ENOENT: no such file or directory, open '/tmp/npm-18230-77e97216/unpack-f6276164/package.json' 28 verbose stack at Error (native) 29 verbose cwd /opt/iobroker 30 error Linux 4.8.4-sunxi 31 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker" "--production" 32 error node v4.7.2 33 error npm v4.0.5 34 error path /tmp/npm-18230-77e97216/unpack-f6276164/package.json 35 error code ENOENT 36 error errno -2 37 error syscall open 38 error enoent ENOENT: no such file or directory, open '/tmp/npm-18230-77e97216/unpack-f6276164/package.json' 39 error enoent ENOENT: no such file or directory, open '/tmp/npm-18230-77e97216/unpack-f6276164/package.json' 39 error enoent This is most likely not a problem with npm itself 39 error enoent and is related to npm not being able to find a file. 40 verbose exit [ -2, true ] !
noch eine Idee?
Wäre doch schön, wenn wir die Ursache finden 8-)
Gruß
Rainer
-
Ich scheine den gleichen Fehler zu haben…
http://forum.iobroker.net/viewtopic.php?f=17&t=4936
...und ich kriege iobroker überhaupt nicht installiert. Gibt es eine alternative Methode?