NEWS
(gelöst) Hilfe! iobroker Upgrade schlägt fehl!
-
Hallo,
Ich hab versucht mein System mit
sudo ./iobroker stop
sudo ./iobroker update
sudo ./iobroker upgrade selfauf den neuesten Stand zu bringen. Leider gabs dann den folgenden Output:
marcus@iobroker:/opt/iobroker$ sudo ./iobroker upgrade self Update js-controller from @1.4.2 to @3.1.6 NPM version: 6.13.4 npm install iobroker.js-controller@3.1.6 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call) npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported /opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliPlugin.js:253 } catch { ^ SyntaxError: Unexpected token { at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28) 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 Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/index.js:19:17) npm WARN notsup Unsupported engine for iobroker.js-controller@3.1.6: wanted: {"node":">=10.0.0"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: iobroker.js-controller@3.1.6 npm WARN notsup Unsupported engine for mkdirp@1.0.4: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: mkdirp@1.0.4 npm WARN notsup Unsupported engine for semver@7.3.2: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: semver@7.3.2 npm WARN notsup Unsupported engine for tar@6.0.5: wanted: {"node":">= 10"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: tar@6.0.5 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN notsup Unsupported engine for rsa-compat@2.0.8: wanted: {"node":">=10.12"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: rsa-compat@2.0.8 npm WARN notsup Unsupported engine for rsa-compat@1.9.4: wanted: {"node":">=10.12"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: rsa-compat@1.9.4 npm WARN notsup Unsupported engine for chownr@2.0.0: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: chownr@2.0.0 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.4 (node_modules/iobroker.info/node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@3.1.6 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@3.1.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! /home/marcus/.npm/_logs/2020-09-26T09_17_50_457Z-debug.log Host "iobroker" (linux) updated Execute: chmod -R 777 /opt/iobroker Chmod finished. Restart controller Starting node restart.js marcus@iobroker:/opt/iobroker$
Jetzt gibt jeder ./iobroker Befehl nur mehr die folgende Fehlermeldung aus:
marcus@iobroker:/opt/iobroker$ ./iobroker start module.js:550 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Function.Module.runMain (module.js:694:10) at startup (bootstrap_node.js:204:16) at bootstrap_node.js:625:3 marcus@iobroker:/opt/iobroker$
Mein System:
Ubuntu 18.04 LTS
KVM VMmarcus@iobroker:/opt/iobroker$ node -v v8.17.0 marcus@iobroker:/opt/iobroker$ nodejs -v v8.17.0 marcus@iobroker:/opt/iobroker$ npm -v 6.13.4
Wie kann ich das Upgrade fixen?
Danke,
Marcus. -
@eMarcus Ohne sudo vorweg. Und du musst node auf node12 aktualisieren.
js-controller from @1.4.2 to @3.1.6
da hast du aber lange geschlafen.
-
@eMarcus erstmal Node upgraden, mit V8 ist schon lange nix mehr..
-
@Thomas-Braun Ja eh, aber "never change a running system" - und wie man sieht hat mein Upgrade Versuch jetzt gleich mal in einer Downtime geendet
-
@ilovegym Hmm, dann sollte man die offizielle ioBroker Docu ev. auch anpassen, hab gestern erst nachgelesen bevor ich mit dem Update begonnen habe, und da wird noch davon gesprochen, dass 8 voll ok ist und 10 empfohlen und von 12 abgeraten!
https://www.iobroker.net/#de/documentation/install/updatenode.md
Aber Danke, dann werd ich das mal jetzt angehen!
bye
Marcus. -
@eMarcus sagte in Hilfe! iobroker Upgrade schlägt fehl!:
wie man sieht hat mein Upgrade Versuch jetzt gleich mal in einer Downtime geendet
klar, weil das Grundsystem zu alt für die neuen Versionen ist.
@eMarcus sagte in Hilfe! iobroker Upgrade schlägt fehl!:
"never change a running system"
ist genau der Grund dafür.
@eMarcus sagte in Hilfe! iobroker Upgrade schlägt fehl!:
dann sollte man die offizielle ioBroker Docu ev. auch anpassen, hab gestern erst nachgelesen bevor ich mit dem Update begonnen habe, und da wird noch davon gesprochen, dass 8 voll ok ist und 10 empfohlen und von 12 abgeraten!
https://www.iobroker.net/#de/documentation/install/updatenode.mddas muss schon sehr alt sein - sehe ich direkt nach, denn v8 ist EOL
EDIT:
Zuletzt geändert: 30.05.2019
steht drunter
und 16 Monate sind schon Generationen bei EDV-Projekten -
@eMarcus Falscher Ansatz. Jedenfalls über solch einen langen Zeitraum. Jetzt haste gleich 'ne Großbaustelle. Besser regelmäßig das System aktuell halten.
-
@eMarcus aber dafür gibt es hier rechts so nen Kasten, er blinkt zwar nicht und gibt auch keinen laut von sich, aber er leuchtet in einem erfreulich strahlendem ROT
aber richtig, die Doku ist leider etwas hinterher(man kann sich zeitlich halt nun mal nicht um alles kümmern und wegen jeder Änderung sofort anpassen) -
@eMarcus Ist das Betriebssystem auch so aktuell wie der ioBroker?
Dann würde ich damit anfangen, dann node auf den 12er-Zweig und erst dann den ioBroker. -
@Thomas-Braun Nein, das OS ist aktuell (also 18.04 LTS halt, aber regelmäßig mit apt dist-upgrade am Laufenden gehalten).
-
@Thomas-Braun, Also eigentlich lief das Update jetzt ziemlich problemlos. Wie von Dir geraten zuerst nodejs hochgezogen, danach ioBroker und die Adapter. Lief alles ohne Probleme durch!
Danke!
Marcus.
-
which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
-
@Thomas-Braun said in Hilfe! iobroker Upgrade schlägt fehl!:
which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
marcus@iobroker:~$ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs /usr/bin/nodejs v12.18.4 /usr/bin/node v12.18.4 /usr/bin/npm 6.14.6 nodejs: Installiert: 12.18.4-1nodesource1 Installationskandidat: 12.18.4-1nodesource1 Versionstabelle: *** 12.18.4-1nodesource1 500 500 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages 100 /var/lib/dpkg/status 8.17.0-1nodesource1 500 500 https://deb.nodesource.com/node_8.x bionic/main amd64 Packages 8.10.0~dfsg-2ubuntu0.4 500 500 http://at.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages 8.10.0~dfsg-2ubuntu0.2 500 500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages 8.10.0~dfsg-2 500 500 http://at.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages marcus@iobroker:~$