NEWS
Gelöst: Nach Restore: No connection to databases possible
-
@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
-
iobroker setup first
-
jaa, ... jetzt meldet sich der admin wieder mit der Welcome-Seite und dem Setup Assistenten. Kann ich den irgendwie überspringen? Setup ist ja bereits erfolgt.
Ich würde das ganze auch nochmals mit bullseye durchführen. Was gibt es dabei zu beachten?
-
@dragricola sagte in Nach Restore: No connection to databases possible, restart:
Kann ich den irgendwie überspringen?
Weiß ich nicht, ich setze meine Kisten nicht sooooo oft neu auf.
Skip dich einfach durch, so viel ist da ja nicht einzustellen.Was gibt es dabei zu beachten?
Das gleiche wie hier.
-
@thomas-braun
Hallo Thomas Braun,
dank Deiner Anleitung lief das System einigermaßen wieder auf buster, sodass ich hoffen konnte, dass ich es auch unter bullseye zum Laufen bringen kann. Es gab aber noch Probleme mit dem VIS-Adapter und nachdem ich im Forum zu diesem Problem nachgelesen habe, und dort empfohlen wurde vor dem Restart vis 1.4.0, web u.a. Adapter zu installieren, habe ich nun ioBroker auf Bullseye 64Bit neu aufgesetzt und vor dem Einspielen des Backups auch noch mariadb und pihole installiert. sudo apt update liefert nun:pi@raspberrypi4-iob:~ $ sudo apt update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Get:3 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease Fetched 48.4 kB in 1s (37.0 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
Das Restore lief problemlois durch:
[EXIT] 0 **** Restore completed successfully!! ****
Allerdings war danach der Admin nicht mehr erreichbar. Ich habe daraufhin wieder die von Dir vorgeschlagenen Schritte durchgeführt:
iobroker setup first
Danach lief der Admin zwar wieder, allerdings gab es nur die Instanzen admin und backitup und offensichtlich kann iobroker die im restore eingespielten Adapter nicht nachladen:
admin.0 2022-11-13 11:09:40.266 warn Cannot update rating: connect ECONNREFUSED 79.143.182.215:443 admin.0 2022-11-13 11:08:24.100 warn Cannot update rating: connect ECONNREFUSED 79.143.182.215:443 host.raspberrypi4-iob 2022-11-13 11:07:53.372 info Updating repository "live-stable" under "http://iobroker.live/repo/sources-dist.json" admin.0 2022-11-13 11:07:53.329 info ==> Connected system.user.admin from ::ffff:192.168.178.182 admin.0 2022-11-13 11:07:52.926 info <== Disconnect system.user.admin from ::ffff:192.168.178.182 admin admin.0 2022-11-13 11:06:55.164 warn Active repository "stable" cannot be read admin.0 2022-11-13 11:06:55.163 warn Repository cannot be read: Active repo - stable host.raspberrypi4-iob 2022-11-13 11:06:53.019 error Error by updating repository "stable" under "http://download.iobroker.net/sources-dist.json": Cannot download repository file from "http://download.iobroker.net/sources-dist.json": connect ECONNREFUSED 79.143.182.215:80
Nachdem ich das repository "live-stable" aktiviert hatte (Zeile6) ging wenigstens die Errormeldung (Zeile 16) weg. Aber
die Warnungen (Zeilen 2 und 4) kommen regelmäßig wieder. Ping auf download.iobroker.net und iobroker.live funktioniert problemlos:pi@raspberrypi4-iob:~ $ ping download.iobroker.net PING download.iobroker.net (79.143.182.215) 56(84) bytes of data. 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=1 ttl=57 time=14.9 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=2 ttl=57 time=13.8 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=3 ttl=57 time=14.2 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=4 ttl=57 time=14.1 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=5 ttl=57 time=14.2 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=6 ttl=57 time=14.0 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=7 ttl=57 time=13.8 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=8 ttl=57 time=14.1 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=9 ttl=57 time=14.1 ms 64 bytes from m0855.contabo.host (79.143.182.215): icmp_seq=10 ttl=57 time=14.3 ms ^C --- download.iobroker.net ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9004ms rtt min/avg/max/mdev = 13.801/14.141/14.853/0.281 ms pi@raspberrypi4-iob:~ $ ping iobroker.live PING iobroker.live (217.160.0.211) 56(84) bytes of data. 64 bytes from 217-160-0-211.elastic-ssl.ui-r.com (217.160.0.211): icmp_seq=1 ttl=58 time=9.40 ms 64 bytes from 217-160-0-211.elastic-ssl.ui-r.com (217.160.0.211): icmp_seq=2 ttl=58 time=8.51 ms 64 bytes from 217-160-0-211.elastic-ssl.ui-r.com (217.160.0.211): icmp_seq=3 ttl=58 time=8.54 ms 64 bytes from 217-160-0-211.elastic-ssl.ui-r.com (217.160.0.211): icmp_seq=4 ttl=58 time=8.55 ms ^C --- iobroker.live ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 8.506/8.747/9.398/0.375 ms
Auch das Deaktivieren von pihole löste das Problem nicht. Was ist zu tun, damit die Adapter verfügbar werden?
-
Im Moment klemmt es auf dem iobroker-Server.
Versuch es später wieder. -
@thomas-braun
ja, da hatte ich wohl Pech beim Timing! Jetzt klappt der Zugriff auf download.iobroker.net wieder! Nach einem erneuten Zurückspielen des Backups konnte der Restore-Vorgang erfolgreich abgeschlossen werden. Nochmals ganz herzlichen Dank für Deine prompte bereitwillige Hilfe! Ohne diese hätte ich das nicht hinbekommen.Es würde mich allerdings noch interessieren, was der ursprüngliche Fehler war. Liege ich richtig, dass mein Problem hauptsächlich dadurch verursacht wurde, dass ich bei der Backup-Konfiguration das Häkchen bei Redis nicht gesetzt hatte und somit Redis nicht im Backup eingeschlossen war? Wenn ja, hätte ich das kompensieren können, wenn ich vor dem Restore Redis installiert hätte?
-
Das Paket 'redis' wird nicht gesichert, das ist Teil des Betriebssystems.
Es werden nur die Daten selber gesichert, der redis-server muss dann natürlich zuvor wieder bereit gestellt werden.