NEWS
"iobroker upgrade self" not working [SOLVED]
-
Systemdata Bitte Ausfüllen Hardwaresystem: Pi3 Arbeitsspeicher: 4GB Festplattenart: SD-Karte Betriebssystem: Ubuntu Node-Version: 12.20.0 Nodejs-Version: 12.20.0 NPM-Version: 6.14,.8 Installationsart: Skript System is running without any issues but upgrading it not working. I'm on js-controller 3.2.16 and if I execute
iobroker upgrade selfI get the following output:pi@iobroker-pi4:~ $ iobroker upgrade self No connection to databases possible ... redis get system.host.iobroker-pi4.alive, error - Connection is closed. No repositories defined. Cannot get repository under "undefined" pi@iobroker-pi4:~ $ -
Systemdata Bitte Ausfüllen Hardwaresystem: Pi3 Arbeitsspeicher: 4GB Festplattenart: SD-Karte Betriebssystem: Ubuntu Node-Version: 12.20.0 Nodejs-Version: 12.20.0 NPM-Version: 6.14,.8 Installationsart: Skript System is running without any issues but upgrading it not working. I'm on js-controller 3.2.16 and if I execute
iobroker upgrade selfI get the following output:pi@iobroker-pi4:~ $ iobroker upgrade self No connection to databases possible ... redis get system.host.iobroker-pi4.alive, error - Connection is closed. No repositories defined. Cannot get repository under "undefined" pi@iobroker-pi4:~ $ -
Thanks @thomas-braun, sadly this didn't help.
pi@iobroker-pi4:~ $ iobroker repo list stable : http://download.iobroker.net/sources-dist.json beta : http://download.iobroker.net/sources-dist-latest.json Active repo: beta pi@iobroker-pi4:~ $ iobroker update ... pi@iobroker-pi4:~ $ iobroker upgrade ... pi@iobroker-pi4:~ $ iobroker stop pi@iobroker-pi4:~ $ iobroker upgrade self No connection to databases possible ... redis get system.host.iobroker-pi4.alive, error - Connection is closed. No repositories defined. Cannot get repository under "undefined" -
Thanks @thomas-braun, sadly this didn't help.
pi@iobroker-pi4:~ $ iobroker repo list stable : http://download.iobroker.net/sources-dist.json beta : http://download.iobroker.net/sources-dist-latest.json Active repo: beta pi@iobroker-pi4:~ $ iobroker update ... pi@iobroker-pi4:~ $ iobroker upgrade ... pi@iobroker-pi4:~ $ iobroker stop pi@iobroker-pi4:~ $ iobroker upgrade self No connection to databases possible ... redis get system.host.iobroker-pi4.alive, error - Connection is closed. No repositories defined. Cannot get repository under "undefined" -
No, nothing is running anymore. That command doesn't return anything.
Maybe also interesting:
While iobroker is not running, these commands also fail (but work if iobroker is running):pi@iobroker-pi4:~ $ iobroker repo list No connection to databases possible ... Cannot get list: Error: Connection is closed. pi@iobroker-pi4:~ $ iobroker upgrade No connection to databases possible ... No repositories defined. /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:982 for (const name of Object.keys(links)) { ^ TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:982:51 at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2615:37) at processImmediate (internal/timers.js:463:21) pi@iobroker-pi4:~ $ -
No, nothing is running anymore. That command doesn't return anything.
Maybe also interesting:
While iobroker is not running, these commands also fail (but work if iobroker is running):pi@iobroker-pi4:~ $ iobroker repo list No connection to databases possible ... Cannot get list: Error: Connection is closed. pi@iobroker-pi4:~ $ iobroker upgrade No connection to databases possible ... No repositories defined. /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:982 for (const name of Object.keys(links)) { ^ TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:982:51 at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2615:37) at processImmediate (internal/timers.js:463:21) pi@iobroker-pi4:~ $Not sure if this helps but try jumping to the version you want to have:
3.3.5 is beta-stage:Controller "js-controller" : 3.3.5 , installed 3.3.5Try
iobroker stop cd /opt/iobroker npm install iobroker.js-controller@3.3.5 iobroker start iobroker status -
Test this rep
Stable
http://iobroker.live/repo/sources-dist.json
Latest
http://iobroker.live/repo/sources-dist-latest.json -
Not sure if this helps but try jumping to the version you want to have:
3.3.5 is beta-stage:Controller "js-controller" : 3.3.5 , installed 3.3.5Try
iobroker stop cd /opt/iobroker npm install iobroker.js-controller@3.3.5 iobroker start iobroker statusI tested the manual installation @thomas-braun mentioned (npm install...) and this worked. I'm now on 3.3.5 and running
iobroker upgrade selfnow doesn't show any errors anymore (just that it's up-to-date).In case this happens again for the next update I will try the different repo @crunchip mentioned.
Thank you both for your support.
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