Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Update: no connection to database...

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Update: no connection to database...

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

      @puravida

      run-level 5
      Stell im

      sudo raspi-config
      

      auf RunLevel 3 um:

      1 System Options      
      S5 Boot / Auto Login 
      B1 Console           
      

      Und wenn du gerade da bist, stell die Zeitzone richtig ein:

      5 Localisation Options 
      L2 Timezone     
      

      Nach dem reboot:

      sudo ln -s /usr/bin/node /usr/bin/nodejs
      uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      

      Ein- und Ausgaben zeigen.

      P 1 Reply Last reply Reply Quote 0
      • P
        Puravida @Thomas Braun last edited by

        @thomas-braun Danke für Deine Hilfe. Hier die Infos

        pi@raspberrypi4:~ $ who -r
                 run-level 3  2022-10-13 19:30
        pi@raspberrypi4:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
        pi@raspberrypi4:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update
        &> /dev/null && sudo apt update && apt policy nodejs
        armv7l
        /usr/bin/nodejs
        /usr/bin/node
        /usr/bin/npm
        v14.20.1
        v14.20.1
        6.14.17
        4.0.21
        pi
        pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
        /home/pi
        Hit:1 https://deb.nodesource.com/node_14.x buster InRelease
        Hit:2 http://archive.raspberrypi.org/debian buster InRelease
        Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        118 packages can be upgraded. Run 'apt list --upgradable' to see them.
        nodejs:
          Installed: 14.20.1-deb-1nodesource1
          Candidate: 14.20.1-deb-1nodesource1
          Version table:
         *** 14.20.1-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                100 /var/lib/dpkg/status
             10.24.0~dfsg-1~deb10u2 500
                500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        pi@raspberrypi4:~ $ date && date -u
        Thu 13 Oct 19:34:34 CEST 2022
        Thu 13 Oct 17:34:34 UTC 2022
        

        Run Level und Zeit passen jetzt.

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

          @puravida sagte in Update: no connection to database...:

          118 packages can be upgraded.

          sudo apt update
          sudo apt full-upgrade
          sudo reboot
          

          Notieren und künftig REGELMÄßIG selber das System auf Stand halten.

          P 1 Reply Last reply Reply Quote 0
          • P
            Puravida @Thomas Braun last edited by

            @thomas-braun

            Danke. Habe ich durchgeführt. Wie geht es jetzt weiter?

            Das:

            iobroker stop
            iobroker update
            iobroker upgrade
            

            stimmt doch noch grundsätzlich, ist das auch falsch?

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

              @puravida

              iobroker stop
              iobroker fix
              iobroker update
              iobroker upgrade all
              iobroker upgrade self
              iobroker start
              
              P 1 Reply Last reply Reply Quote 0
              • P
                Puravida @Thomas Braun last edited by

                @thomas-braun

                An dem "no connection to database..." Fehler hat sich leider nichts geändert.

                pi@raspberrypi4:/opt/iobroker $ iobroker stop
                pi@raspberrypi4:/opt/iobroker $ iobroker fix
                library: loaded
                Library version=2022-06-15
                
                ==========================================================================
                
                    Welcome to the ioBroker installation fixer!
                    Script version: 2022-06-03
                
                    You might need to enter your password a couple of times.
                
                ==========================================================================
                
                
                ==========================================================================
                    Installing prerequisites (1/3)
                ==========================================================================
                
                Hit:1 https://deb.nodesource.com/node_14.x buster InRelease
                Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
                Reading package lists... Done
                Installed gcc-c++
                
                ==========================================================================
                    Checking ioBroker user and directory permissions (2/3)
                ==========================================================================
                
                Created /etc/sudoers.d/iobroker
                Fixing directory permissions...
                
                ==========================================================================
                    Checking autostart (3/3)
                ==========================================================================
                
                Enabling autostart...
                Autostart enabled!
                
                ==========================================================================
                
                    Your installation was fixed successfully
                    Run iobroker start to start ioBroker again!
                
                ==========================================================================
                
                pi@raspberrypi4:/opt/iobroker $ iobroker update
                No connection to databases possible ...
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Puravida last edited by

                  @puravida

                  iobroker status
                  
                  P 1 Reply Last reply Reply Quote 0
                  • P
                    Puravida @Thomas Braun last edited by

                    @thomas-braun

                    Ich weiß nicht ob der iobroker laufen muss damit "iobroker status" funktioniert. Nachdem iobroker noch gestoppt war, hat es nicht funktioniert, nach dem Start schon:

                    pi@raspberrypi4:/opt/iobroker $ iobroker status
                    No connection to databases possible ...
                    pi@raspberrypi4:/opt/iobroker $ iobroker start
                    pi@raspberrypi4:/opt/iobroker $ iobroker status
                    iobroker is running on this host.
                    
                    
                    Objects type: jsonl
                    States  type: redis
                    
                    Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Puravida last edited by

                      @puravida sagte in Update: no connection to database...:

                      States type: redis

                      hast du redis installiert?

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

                        @puravida sagte in Update: no connection to database...:

                        Ich weiß nicht ob der iobroker laufen muss damit "iobroker status" funktioniert.

                        Nein, muss er nicht.

                        apt policy redis
                        

                        sagt?

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          Puravida @Thomas Braun last edited by Puravida

                          @thomas-braun said in Update: no connection to database...:

                          apt policy redis

                          pi@raspberrypi4:/opt/iobroker $ apt policy redis
                          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
                          

                          @Homoran Betreiffend redis: Nicht das ich wüßte. Kann ich das irgendwie nachsehen? Ah, da steht es ja schon... ich bin schon zum copy und paste Affen verkommen. 🙂 Freue mich aber sehr über eure Hilfe!!

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

                            @puravida
                            Dann installier redis auch, wenn der iobroker schon so konfiguriert ist.

                            sudo apt install redis
                            iobroker restart
                            iobroker status
                            
                            P 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Puravida last edited by Homoran

                              @puravida sagte in Update: no connection to database...:

                              Ah, da steht es ja schon..

                              nein, da steht, dass iobroker states für redis konfiguriert sind, aber

                              @puravida sagte in Update: no connection to database...:

                              redis:
                              Installed: (none)

                              zeigt dass redis nicht installiert ist.
                              Da stellt sich die Frage warum die states dafür konfiguriert wurden.

                              1 Reply Last reply Reply Quote 0
                              • P
                                Puravida @Thomas Braun last edited by

                                @thomas-braun

                                pi@raspberrypi4:/opt/iobroker $ sudo apt install redis
                                Reading package lists... Done
                                Building dependency tree
                                Reading state information... Done
                                The following NEW packages will be installed:
                                  redis
                                0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                                Need to get 56.1 kB of archives.
                                After this operation, 67.6 kB of additional disk space will be used.
                                Get:1 http://debian.anexia.at/raspbian/raspbian buster/main armhf redis all 5:5.0.14-1+deb10u2 [56.1 kB]
                                Fetched 56.1 kB in 1s (94.1 kB/s)
                                Selecting previously unselected package redis.
                                (Reading database ... 57311 files and directories currently installed.)
                                Preparing to unpack .../redis_5%3a5.0.14-1+deb10u2_all.deb ...
                                Unpacking redis (5:5.0.14-1+deb10u2) ...
                                Setting up redis (5:5.0.14-1+deb10u2) ...
                                pi@raspberrypi4:/opt/iobroker $ iobroker restart
                                pi@raspberrypi4:/opt/iobroker $ iobroker status
                                iobroker is running on this host.
                                
                                
                                Objects type: jsonl
                                States  type: redis
                                pi@raspberrypi4:/opt/iobroker $ apt policy redis
                                redis:
                                  Installed: 5:5.0.14-1+deb10u2
                                  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
                                        100 /var/lib/dpkg/status
                                

                                @Homoran

                                Das ist eine gute Frage warum es so konfiguriert ist. Der iobroker läuft jetzt schon lange und ich habe bisher auch keine Probleme mit dem Update gehabt. Habe ich halt immer durch die Anleitungen gesucht. Auf dem Raspi läuft auch noch pi-hole. Wobei die beiden sich bisher immer gut vertragen haben.

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

                                  @puravida

                                  Nochmal:

                                  iobroker stop
                                  iobroker fix
                                  iobroker update
                                  iobroker upgrade all
                                  iobroker upgrade self
                                  iobroker start
                                  
                                  P 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @Puravida last edited by

                                    @puravida sagte in Update: no connection to database...:

                                    Das ist eine gute Frage warum es so konfiguriert ist.

                                    das passiert nich von alleine, das muss manuell geändert werden.

                                    und wenn die (redis) database nicht installiert ist kann sich iobroker auch nicht dahin verbinden!

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      Puravida @Thomas Braun last edited by

                                      @thomas-braun

                                      Leider noch immer mit dem Fehler

                                      pi@raspberrypi4:~ $ iobroker status
                                      iobroker is running on this host.
                                      
                                      
                                      Objects type: jsonl
                                      States  type: redis
                                      pi@raspberrypi4:~ $ iobroker stop
                                      pi@raspberrypi4:~ $ iobroker fix
                                      library: loaded
                                      Library version=2022-06-15
                                      
                                      ==========================================================================
                                      
                                          Welcome to the ioBroker installation fixer!
                                          Script version: 2022-06-03
                                      
                                          You might need to enter your password a couple of times.
                                      
                                      ==========================================================================
                                      
                                      
                                      ==========================================================================
                                          Installing prerequisites (1/3)
                                      ==========================================================================
                                      
                                      Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
                                      Hit:2 https://deb.nodesource.com/node_14.x buster InRelease
                                      Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                      Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [392 kB]
                                      Fetched 424 kB in 1s (388 kB/s)
                                      Reading package lists... Done
                                      Installed gcc-c++
                                      
                                      ==========================================================================
                                          Checking ioBroker user and directory permissions (2/3)
                                      ==========================================================================
                                      
                                      Created /etc/sudoers.d/iobroker
                                      Fixing directory permissions...
                                      
                                      ==========================================================================
                                          Checking autostart (3/3)
                                      ==========================================================================
                                      
                                      Enabling autostart...
                                      Autostart enabled!
                                      
                                      ==========================================================================
                                      
                                          Your installation was fixed successfully
                                          Run iobroker start to start ioBroker again!
                                      
                                      ==========================================================================
                                      
                                      pi@raspberrypi4:~ $ iobroker update
                                      No connection to databases possible ...
                                      

                                      @Homoran
                                      Ich kann mich nicht erinnern, dass geändert zu haben. Eventuell durch Zufall mal? Wieso läuft dann der iobroker ohne Probleme wenn es die Datenbank gar nicht gibt wo er sich hinverbinden will? Oder ist das eine ganz andere Datenbank die mit dem normalen Betrieb nichts zu tun hat?

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

                                        @puravida

                                        iobroker start
                                        iobroker update
                                        
                                        P 1 Reply Last reply Reply Quote 0
                                        • crunchip
                                          crunchip Forum Testing Most Active @Puravida last edited by

                                          @puravida sagte in Update: no connection to database...:

                                          aber die genannten Lösungsvorschläge wie Timeout verlängern brachten leider keine Lösung dafür.

                                          wo und wie hast du die eingetragen?

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            Puravida @Thomas Braun last edited by

                                            @thomas-braun

                                            pi@raspberrypi4:/ $ iobroker start
                                            pi@raspberrypi4:/ $ iobroker update
                                            Used repository: stable
                                            Adapter    "admin"        : 6.2.22   , installed 6.2.22
                                            Adapter    "backitup"     : 2.4.12   , installed 2.4.12
                                            Adapter    "broadlink2"   : 2.1.5    , installed 2.1.5
                                            Adapter    "cloud"        : 4.2.2    , installed 4.2.2
                                            Adapter    "discovery"    : 3.0.5    , installed 3.0.5
                                            Adapter    "email"        : 1.1.3    , installed 1.1.3
                                            Adapter    "flot"         : 1.11.0   , installed 1.11.0
                                            Adapter    "history"      : 2.2.0    , installed 2.2.0
                                            Adapter    "hm-rega"      : 3.0.40   , installed 3.0.40
                                            Adapter    "hm-rpc"       : 1.15.12  , installed 1.15.12
                                            Adapter    "hue"          : 3.7.1    , installed 3.7.1
                                            Adapter    "info"         : 1.9.19   , installed 1.9.19
                                            Adapter    "iot"          : 1.11.9   , installed 1.11.9
                                            Adapter    "javascript"   : 6.0.3    , installed 6.0.3
                                            Controller "js-controller": 4.0.23   , installed 4.0.21 [Updatable]
                                            Adapter    "mobile"       : 1.0.1    , installed 1.0.1
                                            Adapter    "pi-hole"      : 1.3.4    , installed 1.3.4
                                            Adapter    "ping"         : 1.5.3    , installed 1.5.3
                                            Adapter    "rpi2"         : 1.3.2    , installed 1.3.2
                                            Adapter    "scenes"       : 2.3.9    , installed 2.3.9
                                            Adapter    "shelly"       : 6.0.0    , installed 6.0.0
                                            Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
                                            Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                                            Adapter    "sonoff"       : 2.5.1    , installed 2.5.1
                                            Adapter    "sql"          : 2.1.8    , installed 2.1.8
                                            Adapter    "unifi"        : 0.5.10   , installed 0.5.10
                                            Adapter    "vis"          : 1.4.15   , installed 1.4.15
                                            Adapter    "web"          : 4.3.0    , installed 4.3.0
                                            Adapter    "ws"           : 1.3.0    , installed 1.3.0
                                            

                                            Wenn er stoppt verliert er wohl die Verbindung zu DB?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            910
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            38
                                            2187
                                            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