Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. fehler beim aktivieren von redis

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    UNSOLVED fehler beim aktivieren von redis

    This topic has been deleted. Only users with topic management privileges can see it.
    • OliverIO
      OliverIO last edited by OliverIO

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Pi3
      Arbeitsspeicher: 1GB
      Festplattenart: SD-Karte
      Betriebssystem: Raspian
      Node-Version: 10.19.0
      Nodejs-Version: 10.19.0
      NPM-Version: 6.13.4
      Installationsart:
      Image genutzt: Nein
      Ort/Name der Imagedatei: Link

      iobroker 3.1.6
      admin 4.1.1

      Für ein relativ jungfräuliches system mit iobroker wollte ich nach redis wechseln.
      die konfiguration endete mit der folgenden Fehlermeldung, hab ich da was falsch gemacht?

      Do you want to migrate objects and states from "file/file" to "redis/redis" [y/N]: y
      
      Migrating the objects database will overwrite all objects! Are you sure that this is not a slave host and you want to migrate the data? [y/N]: y
      
      Connecting to previous DB "file"...
      
      Cannot migrate DB while js-controller is still running!
      Please stop ioBroker and try again. No settings have been changed.
      Creating backup ...
      This can take some time ... please be patient!
      host.raspberrypi Cannot get objects: DB closed
      /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:273
                          for (let i = 0; i < keys.length; i++) {
                                                   ^
      
      TypeError: Cannot read property 'length' of undefined
          at Immediate.states.getStates (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:273:46)
          at runCallback (timers.js:706:11)
          at tryOnImmediate (timers.js:676:5)
          at processImmediate (timers.js:658:5)
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @OliverIO last edited by

        @OliverIO sagte in fehler beim aktivieren von redis:

        Please stop ioBroker and try again.

        Hast du das getan?

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

          @Thomas-Braun
          Ja mehrfach
          Wenn man auf file zurückstellt geht es wieder
          Redis server läuft ebenfalls

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

            @OliverIO
            Ist nodejs sauber installiert?

            which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
            
            OliverIO 1 Reply Last reply Reply Quote 0
            • OliverIO
              OliverIO @Thomas Braun last edited by

              @Thomas-Braun said in fehler beim aktivieren von redis:

              which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs

              /usr/bin/nodejs
              v10.19.0
              /usr/bin/node
              v10.19.0
              /usr/bin/npm
              6.13.4
              nodejs:
                Installed: 10.19.0-1nodesource1
                Candidate: 10.20.1-1nodesource1
                Version table:
                   10.20.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
               *** 10.19.0-1nodesource1 100
                      100 /var/lib/dpkg/status
                   10.15.2~dfsg-2+rpi1 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 @OliverIO last edited by

                @OliverIO
                Das passt soweit. Wobei du mal updaten könntest.

                1 Reply Last reply Reply Quote 0
                • OliverIO
                  OliverIO last edited by

                  ich habe nochmal nach einer anderen Beschreibung gesucht, wie man redis im iobroker aktivieren kann. In der ersten stand drin, das man das paket redis-server (apt-get install redis-server) installieren muss.
                  In einer weiteren stand drin, das man apt-get install redis installieren muss.

                  Nachdem ich nun "nur" redis installiert habe, funktioniert es nun.

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

                    @OliverIO
                    Ja, das ist klar...
                    redis hängt von redis-server ab:

                    apt-cache depends redis
                    redis
                      Hängt ab von: redis-server
                      Hängt ab von: redis-server
                    
                    1 Reply Last reply Reply Quote 0
                    • ostseereiter
                      ostseereiter last edited by

                      Was bringt das? warum redis?

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

                        @ostseereiter
                        Des Menschen Wille sei sein Himmelreich.

                        Wobei ich auch nicht beides auf redis umgestellt hätte sondern nur den state-Bereich.

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

                          @Thomas-Braun ok lass ich alles so wie es ist.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          905
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          redis
                          3
                          11
                          406
                          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