Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Gelöst: Nach Restore: No connection to databases possible

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Gelöst: Nach Restore: No connection to databases possible

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dragricola @Thomas Braun last edited by

      @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.

      Thomas Braun 3 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @dragricola last edited by

        @dragricola

        apt policy redis
        

        sagt?

        D 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @dragricola last edited by

          @dragricola

          Wolltest du das nicht auf Bullseye laufen haben?

          D 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @dragricola last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • D
              dragricola @Thomas Braun last edited by

              @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

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @dragricola last edited by

                @dragricola

                Dann installier redis mal.
                Das war ja offenbar zuvor auch die Datenbank für states oder objects (oder beides)

                1 Reply Last reply Reply Quote 0
                • D
                  dragricola @Thomas Braun last edited by

                  @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.

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @dragricola last edited by Thomas Braun

                    @dragricola

                    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.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dragricola @Thomas Braun last edited by

                      @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: redis

                      In den logs sind allerdings noch Fehlermeldungen:
                      Logs aus iobroker nach Restart.txt
                      und der Admin ist immer noch nicht aufrufbar

                      Eine ppa-Installation scheint nicht erfolgt zu sein. Die Meldung war:
                      sudo: add-apt-repository: command not found

                      Thomas Braun 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @dragricola last edited by

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @dragricola last edited by

                          @dragricola

                          Hat sich der host name der Kiste geändert?

                          1 Reply Last reply Reply Quote 0
                          • D
                            dragricola last edited by

                            @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?

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @dragricola last edited by

                              @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.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                dragricola @Thomas Braun last edited by

                                @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
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @dragricola last edited by

                                  @dragricola

                                  Versuch mal

                                  iob stop 
                                  iob host this
                                  iob start
                                  
                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    dragricola @Thomas Braun last edited by

                                    @thomas-braun

                                    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
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active last edited by

                                      @dragricola

                                      iobroker setup first
                                      
                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        dragricola @Thomas Braun last edited by

                                        @thomas-braun

                                        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?

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @dragricola last edited by

                                          @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.

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            dragricola @Thomas Braun last edited by

                                            @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?

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            connection to databases javascript update restart restore backup upgrade bullseye upgrade nodejs
                                            2
                                            32
                                            1640
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo