NEWS
Adapter Installation bow Update schlägt fehl
-
Hallo,
habe aktuell das Problem, das Updates bzw. Neuinstallation von Adaptern mit der immer gleichen Fehlermeldung fehlschlagen. Hier mal am Beispiel des Updates von Simple-API:
$ iobroker upgrade simple-api@2.7.0 Update simple-api from @2.6.5 to @2.7.0 NPM version: 8.11.0 Installing iobroker.simple-api@2.7.0... (System call) host.iobroker Cannot install iobroker.simple-api@2.7.0: 217 ERROR: Process exited with code 25
Aus der Fehlermeldung werde ich nicht wirklich schlau. Probiert habe ich bereits folgendes (allerdings ohne Erfolg):
cd /opt/iobroker iobroker stop iobroker fix iobroker start
Außerdem:
npm cache clean --force
Weitere Informationen:
which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.15.1 v16.15.1 8.11.0 nodejs: Installed: 16.15.1-1nodesource1 Candidate: 16.15.1-1nodesource1 Version table: *** 16.15.1-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bionic/main amd64 Packages 100 /var/lib/dpkg/status 8.10.0~dfsg-2ubuntu0.4 500 500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages 8.10.0~dfsg-2ubuntu0.2 500 500 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages 8.10.0~dfsg-2 500 500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Vielleicht hat ja jemand eine Idee. Danke!
-
cd /opt/iobroker npm ls | grep ERR
-
@julian-0 welche Admin Version in der Admin 6 gibbet ein Bug deswegen..
-
iobroker@iobroker:/opt/iobroker$ npm ls | grep ERR npm ERR! code ELSPROBLEMS npm ERR! extraneous: @types/caseless@0.12.2 /opt/iobroker/node_modules/@types/caseless npm ERR! extraneous: @types/request@2.48.8 /opt/iobroker/node_modules/@types/request npm ERR! extraneous: @types/tough-cookie@4.0.2 /opt/iobroker/node_modules/@types/tough-cookie npm ERR! extraneous: coffee-compiler@0.3.2 /opt/iobroker/node_modules/coffee-compiler npm ERR! extraneous: coffee-script@1.12.7 /opt/iobroker/node_modules/coffee-script npm ERR! missing: iobroker.coronavirus-statistics@^0.8.7, required by iobroker.inst@2.0.3 npm ERR! invalid: iobroker.enigma2@1.2.9 /opt/iobroker/node_modules/iobroker.enigma2 npm ERR! invalid: iobroker.tr-064-community@npm:iobroker.tr-064@4.2.16 /opt/iobroker/node_modules/iobroker.tr-064-community npm ERR! invalid: iobroker.vuplus@0.1.1 /opt/iobroker/node_modules/iobroker.vuplus npm ERR! extraneous: node-inspect@2.0.0 /opt/iobroker/node_modules/node-inspect npm ERR! extraneous: suncalc2@1.8.1 /opt/iobroker/node_modules/suncalc2 npm ERR! extraneous: typescript@4.7.2 /opt/iobroker/node_modules/typescript npm ERR! extraneous: virtual-tsc@0.6.2 /opt/iobroker/node_modules/virtual-tsc npm ERR! extraneous: vm2@3.9.9 /opt/iobroker/node_modules/vm2 npm ERR! extraneous: wake_on_lan@1.0.0 /opt/iobroker/node_modules/wake_on_lan npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-06-07T08_42_10_522Z-debug-0.log
-
@arteck Admin Version ist 5.4.9
-
cd /opt/iobroker npm prune npm ls | grep ERR
-
@thomas-braun said in Adapter Installation bow Update schlägt fehl:
cd /opt/iobroker npm prune npm ls | grep ERR
iobroker@iobroker:/opt/iobroker$ npm prune npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/coffee-compiler npm ERR! dest /opt/iobroker/node_modules/.coffee-compiler-H6FiAEHY npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/coffee-compiler' -> '/opt/iobroker/node_modules/.coffee-compiler-H6FiAEHY' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-06-07T08_51_09_918Z-debug-0.log iobroker@iobroker:/opt/iobroker$ npm ls | grep ERR npm ERR! code ELSPROBLEMS npm ERR! extraneous: @types/caseless@0.12.2 /opt/iobroker/node_modules/@types/caseless npm ERR! extraneous: @types/request@2.48.8 /opt/iobroker/node_modules/@types/request npm ERR! extraneous: @types/tough-cookie@4.0.2 /opt/iobroker/node_modules/@types/tough-cookie npm ERR! extraneous: coffee-compiler@0.3.2 /opt/iobroker/node_modules/coffee-compiler npm ERR! extraneous: coffee-script@1.12.7 /opt/iobroker/node_modules/coffee-script npm ERR! missing: iobroker.coronavirus-statistics@^0.8.7, required by iobroker.inst@2.0.3 npm ERR! invalid: iobroker.enigma2@1.2.9 /opt/iobroker/node_modules/iobroker.enigma2 npm ERR! invalid: iobroker.tr-064-community@npm:iobroker.tr-064@4.2.16 /opt/iobroker/node_modules/iobroker.tr-064-community npm ERR! invalid: iobroker.vuplus@0.1.1 /opt/iobroker/node_modules/iobroker.vuplus npm ERR! extraneous: node-inspect@2.0.0 /opt/iobroker/node_modules/node-inspect npm ERR! extraneous: suncalc2@1.8.1 /opt/iobroker/node_modules/suncalc2 npm ERR! extraneous: typescript@4.7.2 /opt/iobroker/node_modules/typescript npm ERR! extraneous: virtual-tsc@0.6.2 /opt/iobroker/node_modules/virtual-tsc npm ERR! extraneous: vm2@3.9.9 /opt/iobroker/node_modules/vm2 npm ERR! extraneous: wake_on_lan@1.0.0 /opt/iobroker/node_modules/wake_on_lan npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-06-07T08_51_36_263Z-debug-0.log
-
Schau dir die Adapter zu den Fehlermeldungen aus Zeile 18-21 an.
Neuinstallieren, rauswerfen, irgendwas damit mal anfangen.Und halt:
rename '/opt/iobroker/node_modules/coffee-compiler' -> '/opt/iobroker/node_modules/.coffee-compiler-H6FiAEHY
-
Hab ich gemacht. Komisch ist nur, dass die Adapter gar nicht mehr installiert sind.
-
Die sind aber nicht sauber ausgetragen.
-
@thomas-braun
Gibt es eine Möglichkeit das zu bereinigen?