NEWS
Gelöst: Nach Restore: No connection to databases possible
-
Systemdata Bitte Ausfüllen Hardwaresystem: Raspi 4 . Arbeitsspeicher: 4GB Festplattenart: SSD M.2 über USB angeschlossen Betriebssystem: Raspberry Pi OS Bullseye 64 Bit, 32 Bit und auch Buster alle als lite Version Node-Version: 18.12.1 Nodejs-Version: 18.12.1 NPM-Version: 8.19.2 Installationsart: Skript Image genutzt: Nein Ort/Name der Imagedatei: Link Nachdem ich ein Upgrade auf Raspbian Bullseye und die letzte Node-Version durchgeführt hatte, startete iobroker nicht mehr.
Da ich zuvor ein Backup gemacht hatte, installierte ich Raspberry Pi OS Bullseye auf der SSD komplett neu und nach der Installation von iobroker und der Konfiguration des Backup-Adapters konnte das letzte Backup zwar mit einer Erfolgsmeldung zurückgespielt werden, danach war iobroker jedoch nicht mehr ansprechbar. iobroker status liefert:
No connection to objects 127.0.0.1:6379[redis]
ioBroker kann offensichtlich keine Verbindung zur database herstellen. iobroker logs liefert nach dem Restore-Vorgang den folgenden Text:
Logs aus iobroker nach Restore.txt
Ich habe den Versuch mit verschiedenen Betriebssystem Versionen Bullseye 64 Bit, 32 Bit und auch Buster wiederholt, alle mit gleichem Ergebnis.
Neu war nach der Neuinstallation von iobroker, dass ich die Installation nur abschließen konnte, wenn ich einen Benutzer admin mit Password festlege. Einen solchen Benutzer hatte ich in der vorherigen Konfiguration nicht. Kann es daran liegen?
Was ist zu tun, damit iobroker wieder startet?
Falls es nicht gelingen sollte, wäre meine umfangreiche Home-Automatisierung, die ich in den letzten zwei Jahren entwickelt habe, verloren. -
Verwende die empfohlene Version nodeJS@16.
Und von welchem Setup kommst du?
js-controller Version?
nodejs/npm Version?
Redis/File/jsonl - Datenbank? -
@thomas-braun
Vielen Dank für die schnelle Antwort:
Da iobroker nicht läuft, kann ich die gewünschten Infos nicht so leicht herausfinden.
ich habe ioBroker in Version 4.0.23
npm hat Version 8.19.2
Wo finde ich die gewünschte Info über Redis/File/jsonl - Datenbank?iobroker habe ich installiert mit
curl -sLf https://iobroker.net/install.sh | bash -Ich habe nun versucht mit
curl -sLf https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
auf nodejs auf Version 16 zu downgraden. Leider erfolglos, da Meldung:
nodejs is already the newest version (18.12.1-deb-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Wie gelingt der Downgrade?
-
nodeJS Downgrade steht hier beschrieben:
https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian
iobroker status
sagt?
Vielleicht magst du auch mal das 'iob_diag'-Skript verwenden:
-
@thomas-braun
Vielen Dank,
wie gesagt, iobroker status liefert:
No connection to objects 127.0.0.1:6379[redis]
Das iob-diag-cript liefert folgendes:
Output iob-diag-script.txt
Den Downgrade versuche ich gleich noch. -
-
Wolltest du das nicht auf Bullseye laufen haben?
-
@dragricola sagte in Nach Restore: No connection to databases possible, restart:
Den Downgrade versuche ich gleich noch.
iob stop sudo apt install nodejs=16.18.1-deb-1nodesource1 iob start
Fertig.
-
@thomas-braun
redis:
Installed: (none)
Candidate: 5:5.0.14-1+deb10u2
Version table:
5:5.0.14-1+deb10u2 500
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages -
Dann installier redis mal.
Das war ja offenbar zuvor auch die Datenbank für states oder objects (oder beides) -
@thomas-braun said in Nach Restore: No connection to databases possible, restart:
Wolltest
Ursprünglich ja, aber nachdem es mit Bullseye nicht geklappt hat, habe ich es zuletzt auch nochmal auf Buster probiert.
Wie installiere ich Redis unter Debian? Mit
sudo add-apt-repository ppa:chris-lea/redis-server
klappt es nicht (das ist wohl der Befehl für ubuntu)
Der Downgrade auf nodejs V16 hat geklappt, löst jedoch leider nicht das Problem. -
sudo apt install redis
Hast du dir jetzt das ppa reingeklatscht?
Das dürfte auch für ubuntu nicht die erste Wahl sein. Man nimmt möglichst die Versionen aus den offiziellen Quellen.sudo apt update
anschauen.
-
@thomas-braun said in Nach Restore: No connection to databases possible, restart:
sudo apt update
nochmals vielen Dank, jetzt nach der redis installation meldet iobroker wenigstens einen Status zurück:
iobroker status
Cannot read system.config: null (OK when migrating or restoring)
iobroker is running on this host.At least one iobroker host is running.
Objects type: redis
States type: redisIn den logs sind allerdings noch Fehlermeldungen:
Logs aus iobroker nach Restart.txt
und der Admin ist immer noch nicht aufrufbarEine ppa-Installation scheint nicht erfolgt zu sein. Die Meldung war:
sudo: add-apt-repository: command not found -
@dragricola sagte in Nach Restore: No connection to databases possible, restart:
Eine ppa-Installation scheint nicht erfolgt zu sein.
Nicht vermuten...
sudo apt update
anschauen.
-
Hat sich der host name der Kiste geändert?
-
@thomas-braun
sudo apt update liefert:
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 https://deb.nodesource.com/node_16.x buster InRelease
Hit:4 https://dl.yarnpkg.com/debian stable InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.Hilft das Log aus meinem letzten Beitrag weiter?
-
@dragricola sagte in Nach Restore: No connection to databases possible, restart:
Hilft das Log aus meinem letzten Beitrag weiter?
Jein.
Hostname geändert?Bitte Auszüge in Textform in CodeTags eingebettet heir rein.
-
@thomas-braun
Den Host-Namen habe ich meines Wissens wieder bei der Installation gleich vergeben. Allerdings ohne das präfix host. davor.2022-11-12 16:10:44.878 - info: host.raspberrypi4-iob iobroker _restart 2022-11-12 16:10:50.341 - info: host.raspberrypi4-iob iobroker.js-controller version 4.0.23 js-controller starting 2022-11-12 16:10:50.349 - info: host.raspberrypi4-iob Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker 2022-11-12 16:10:50.350 - info: host.raspberrypi4-iob hostname: raspberrypi4-iob, node: v16.18.1 2022-11-12 16:10:50.353 - info: host.raspberrypi4-iob ip addresses: 192.168.178.126 fe80::436b:c1e:289f:c0ed 2022-11-12 16:11:08.610 - error: host.raspberrypi4-iob Cannot read system.config: null (OK when migrating or restoring) 2022-11-12 16:11:08.625 - error: host.raspberrypi4-iob Cannot find view "system" for search "host" 2022-11-12 16:11:08.715 - info: host.raspberrypi4-iob connected to Objects and States 2022-11-12 16:11:08.745 - info: host.raspberrypi4-iob Node.js version has changed from unknown to 16.18.1 2022-11-12 16:11:08.793 - info: host.raspberrypi4-iob added notifications configuration of host 2022-11-12 16:11:08.800 - info: host.raspberrypi4-iob Successfully updated capabilities "cap_net_admin, cap_net_bind_service, cap_net_raw" for /usr/bin/node 2022-11-12 16:11:08.811 - error: host.raspberrypi4-iob Cannot find view "system" for search "instance" 2022-11-12 16:11:08.813 - error: host.raspberrypi4-iob Could not add notifications config of this host: Could not get notifications setup from instances: Cannot find view "system" 2022-11-12 16:11:08.826 - info: host.raspberrypi4-iob Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-11-12 16:11:08.836 - error: host.raspberrypi4-iob Cannot find view "system" for search "state" 2022-11-12 16:11:08.837 - error: host.raspberrypi4-iob Cannot find view "system" for search "instance" 2022-11-12 16:11:08.841 - error: host.raspberrypi4-iob Could not collect system.host.raspberrypi4-iob states to check for obsolete states: Error: Cannot find view "system" 2022-11-12 16:11:08.842 - error: host.raspberrypi4-iob _design/system missing - call node iobroker.js setup 2022-11-12 16:11:08.843 - info: host.raspberrypi4-iob no instances found 2022-11-12 16:11:08.843 - info: host.raspberrypi4-iob no instances found 2022-11-12 16:11:09.054 - info: host.raspberrypi4-iob Created UUID: 958fb34d-ae20-1453-74c4-b251ccab0b04 2022-11-12 16:25:19.450 - info: host.raspberrypi4-iob received SIGTERM 2022-11-12 16:25:19.469 - info: host.raspberrypi4-iob terminated 2022-11-12 16:25:21.831 - info: host.raspberrypi4-iob iobroker.js-controller version 4.0.23 js-controller starting 2022-11-12 16:25:21.838 - info: host.raspberrypi4-iob Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker 2022-11-12 16:25:21.840 - info: host.raspberrypi4-iob hostname: raspberrypi4-iob, node: v16.18.1 2022-11-12 16:25:21.842 - info: host.raspberrypi4-iob ip addresses: 192.168.178.126 fe80::436b:c1e:289f:c0ed 2022-11-12 16:25:21.936 - error: host.raspberrypi4-iob Cannot read system.config: null (OK when migrating or restoring) 2022-11-12 16:25:21.948 - error: host.raspberrypi4-iob Cannot find view "system" for search "host" 2022-11-12 16:25:22.013 - info: host.raspberrypi4-iob connected to Objects and States 2022-11-12 16:25:22.035 - info: host.raspberrypi4-iob added notifications configuration of host 2022-11-12 16:25:22.054 - error: host.raspberrypi4-iob Cannot find view "system" for search "instance" 2022-11-12 16:25:22.057 - error: host.raspberrypi4-iob Could not add notifications config of this host: Could not get notifications setup from instances: Cannot find view "system" 2022-11-12 16:25:22.085 - info: host.raspberrypi4-iob Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-11-12 16:25:22.097 - error: host.raspberrypi4-iob Cannot find view "system" for search "state" 2022-11-12 16:25:22.099 - error: host.raspberrypi4-iob Cannot find view "system" for search "instance" 2022-11-12 16:25:22.105 - error: host.raspberrypi4-iob Could not collect system.host.raspberrypi4-iob states to check for obsolete states: Error: Cannot find view "system" 2022-11-12 16:25:22.107 - error: host.raspberrypi4-iob _design/system missing - call node iobroker.js setup 2022-11-12 16:25:22.108 - info: host.raspberrypi4-iob no instances found 2022-11-12 16:25:22.108 - info: host.raspberrypi4-iob no instances found
-
-
pi@raspberrypi4-iob:~ $ iob stop pi@raspberrypi4-iob:~ $ iob host this Cannot read system.config: null (OK when migrating or restoring) Cannot find view "system" for search "host" An unknown error occurred: Cannot find view "system" pi@raspberrypi4-iob:~ $ iob start