Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Auf redis umstellen

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.6k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.1k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    2.9k

Auf redis umstellen

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
100 Beiträge 11 Kommentatoren 15.2k Aufrufe 9 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Dr. BakteriusD Dr. Bakterius

    @fastfoot sagte in Auf redis umstellen:

    ich vermute dass der redis server nicht läuft

    Ein sudo systemctl restart redis-server hat auf jeden Fall nicht geholfen.

    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    schrieb am zuletzt editiert von Thomas Braun
    #63

    @dr-bakterius
    Der user iobroker muss in die Gruppe 'redis' gepackt werden:

    sudo usermod -aG redis iobroker
    

    Den user iobroker einmal abmelden, am besten vielleicht mal rebooten.
    Dann werden die Gruppen neueingelesen.

    Linux-Werkzeugkasten:
    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
    NodeJS Fixer Skript:
    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

    HomoranH 1 Antwort Letzte Antwort
    0
    • HomoranH Homoran

      @fastfoot sagte in Auf redis umstellen:

      redis installiert sich unabhängig von iobroker

      soweit klar, aber ich fragte mich, darf der user ioBroker auch darauf zugreifen?

      F Offline
      F Offline
      fastfoot
      schrieb am zuletzt editiert von
      #64

      @homoran sagte in Auf redis umstellen:

      @fastfoot sagte in Auf redis umstellen:

      redis installiert sich unabhängig von iobroker

      soweit klar, aber ich fragte mich, darf der user ioBroker auch darauf zugreifen?

      im gezeigten Aufruf der redis-cli ist der user ja nicht iobroker sondern der user auf dem host

      iobroker läuft unter Docker auf QNAP TS-451+
      SkriptRecovery: https://forum.iobroker.net/post/930558

      1 Antwort Letzte Antwort
      1
      • Thomas BraunT Thomas Braun

        @dr-bakterius
        Der user iobroker muss in die Gruppe 'redis' gepackt werden:

        sudo usermod -aG redis iobroker
        

        Den user iobroker einmal abmelden, am besten vielleicht mal rebooten.
        Dann werden die Gruppen neueingelesen.

        HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von Homoran
        #65

        @fastfoot sagte in Auf redis umstellen:

        im gezeigten Aufruf der redis-cli ist der user ja nicht iobroker sondern der user auf dem host

        :cold_sweat: Danke für den Tritt gegen da Schienbein!

        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        1 Antwort Letzte Antwort
        0
        • Dr. BakteriusD Dr. Bakterius

          @fastfoot sagte in Auf redis umstellen:

          ich vermute dass der redis server nicht läuft

          Ein sudo systemctl restart redis-server hat auf jeden Fall nicht geholfen.

          F Offline
          F Offline
          fastfoot
          schrieb am zuletzt editiert von
          #66

          @dr-bakterius sagte in Auf redis umstellen:

          @fastfoot sagte in Auf redis umstellen:

          ich vermute dass der redis server nicht läuft

          Ein sudo systemctl restart redis-server hat auf jeden Fall nicht geholfen.

          dann sollte ein Blick ins redis log helfen

          iobroker läuft unter Docker auf QNAP TS-451+
          SkriptRecovery: https://forum.iobroker.net/post/930558

          1 Antwort Letzte Antwort
          0
          • R Offline
            R Offline
            Renegade 0
            schrieb am zuletzt editiert von
            #67

            Also hab jetzt mal migrieren wollen:

            pi@TestPI:~ $ iobroker stop
            pi@TestPI:~ $ iobroker setup custom
            Current configuration:
            - Objects database:
              - Type: file
              - Host/Unix Socket: 127.0.0.1
              - Port: 9001
            - States database:
              - Type: file
              - Host/Unix Socket: 127.0.0.1
              - Port: 9000
            - Data Directory: ../../iobroker-data/
            
            Type of objects DB [(f)ile, (r)edis, ...], default [file]: r
            
            When Objects and Files are stored in a Redis database please consider the following:
            1. All data will be stored in RAM, make sure to have enough free RAM available!
            2. Make sure to check Redis persistence options to make sure a Redis problem will not cause data loss!
            3. The Redis persistence files can get big, make sure not to use an SD card to store them.
            
            Host / Unix Socket of objects DB(redis), default[127.0.0.1]: r
            Port of objects DB(redis), default[6379]: 
            Type of states DB [(f)file, (r)edis, ...], default [redis]: 
            Host / Unix Socket of states DB (redis), default[r]: 
            Port of states DB (redis), default[6379]: 
            Host name of this machine [TestPI]: 
            Please choose if this is a Master/single host (enter "m") or a Slave host (enter "S") you are about to edit. For Slave hosts the data migration will be skipped. [S/m]: m
            
            Important: Using redis for the Objects database is only supported
            with js-controller 2.0 or higher!
            When your system consists of multiple hosts please make sure to have
            js-controller 2.0 or higher installed on ALL hosts *before* continuing!
            
            
            Important #2: If you already did the migration on an other host
            please *do not* migrate again! This can destroy your system!
            
            
            Important #3: The process will migrate all files that were officially
            uploaded into the ioBroker system. If you have manually copied files into
            iobroker-data/files/... into own directories then these files will NOT be
            migrated! Make sure all files are in adapter directories inside the files
            directory!
            
            
            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"...
            Creating backup ...
            This can take some time ... please be patient!
            host.TestPI 609 states saved
            host.TestPI 747 objects saved
            Backup created: /opt/iobroker/backups/2021_01_21-18_36_16_backupiobroker-migration.tar.gz
            updating conf/iobroker.json
            
            Connecting to new DB "redis" (can take up to 20s) ...
            No connection to objects r:6379[redis]
            
            New Database could not be connected. Please check your settings. No settings have been changed.
            restoring conf/iobroker.json
            No connection to states r:6379[redis]
            pi@TestPI:~ $ redis-cli ping
            PONG
            pi@TestPI:~ $ 
            
            F HomoranH 2 Antworten Letzte Antwort
            0
            • R Renegade 0

              Also hab jetzt mal migrieren wollen:

              pi@TestPI:~ $ iobroker stop
              pi@TestPI:~ $ iobroker setup custom
              Current configuration:
              - Objects database:
                - Type: file
                - Host/Unix Socket: 127.0.0.1
                - Port: 9001
              - States database:
                - Type: file
                - Host/Unix Socket: 127.0.0.1
                - Port: 9000
              - Data Directory: ../../iobroker-data/
              
              Type of objects DB [(f)ile, (r)edis, ...], default [file]: r
              
              When Objects and Files are stored in a Redis database please consider the following:
              1. All data will be stored in RAM, make sure to have enough free RAM available!
              2. Make sure to check Redis persistence options to make sure a Redis problem will not cause data loss!
              3. The Redis persistence files can get big, make sure not to use an SD card to store them.
              
              Host / Unix Socket of objects DB(redis), default[127.0.0.1]: r
              Port of objects DB(redis), default[6379]: 
              Type of states DB [(f)file, (r)edis, ...], default [redis]: 
              Host / Unix Socket of states DB (redis), default[r]: 
              Port of states DB (redis), default[6379]: 
              Host name of this machine [TestPI]: 
              Please choose if this is a Master/single host (enter "m") or a Slave host (enter "S") you are about to edit. For Slave hosts the data migration will be skipped. [S/m]: m
              
              Important: Using redis for the Objects database is only supported
              with js-controller 2.0 or higher!
              When your system consists of multiple hosts please make sure to have
              js-controller 2.0 or higher installed on ALL hosts *before* continuing!
              
              
              Important #2: If you already did the migration on an other host
              please *do not* migrate again! This can destroy your system!
              
              
              Important #3: The process will migrate all files that were officially
              uploaded into the ioBroker system. If you have manually copied files into
              iobroker-data/files/... into own directories then these files will NOT be
              migrated! Make sure all files are in adapter directories inside the files
              directory!
              
              
              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"...
              Creating backup ...
              This can take some time ... please be patient!
              host.TestPI 609 states saved
              host.TestPI 747 objects saved
              Backup created: /opt/iobroker/backups/2021_01_21-18_36_16_backupiobroker-migration.tar.gz
              updating conf/iobroker.json
              
              Connecting to new DB "redis" (can take up to 20s) ...
              No connection to objects r:6379[redis]
              
              New Database could not be connected. Please check your settings. No settings have been changed.
              restoring conf/iobroker.json
              No connection to states r:6379[redis]
              pi@TestPI:~ $ redis-cli ping
              PONG
              pi@TestPI:~ $ 
              
              F Offline
              F Offline
              fastfoot
              schrieb am zuletzt editiert von
              #68

              @renegade-0 sagte in Auf redis umstellen:

              default[127.0.0.1]: r

              du hast die IP mit r überschrieben :-)

              iobroker läuft unter Docker auf QNAP TS-451+
              SkriptRecovery: https://forum.iobroker.net/post/930558

              R 1 Antwort Letzte Antwort
              0
              • F fastfoot

                @renegade-0 sagte in Auf redis umstellen:

                default[127.0.0.1]: r

                du hast die IP mit r überschrieben :-)

                R Offline
                R Offline
                Renegade 0
                schrieb am zuletzt editiert von
                #69

                @fastfoot uups.^^
                ok nochmal von vorn :)

                1 Antwort Letzte Antwort
                0
                • R Renegade 0

                  Also hab jetzt mal migrieren wollen:

                  pi@TestPI:~ $ iobroker stop
                  pi@TestPI:~ $ iobroker setup custom
                  Current configuration:
                  - Objects database:
                    - Type: file
                    - Host/Unix Socket: 127.0.0.1
                    - Port: 9001
                  - States database:
                    - Type: file
                    - Host/Unix Socket: 127.0.0.1
                    - Port: 9000
                  - Data Directory: ../../iobroker-data/
                  
                  Type of objects DB [(f)ile, (r)edis, ...], default [file]: r
                  
                  When Objects and Files are stored in a Redis database please consider the following:
                  1. All data will be stored in RAM, make sure to have enough free RAM available!
                  2. Make sure to check Redis persistence options to make sure a Redis problem will not cause data loss!
                  3. The Redis persistence files can get big, make sure not to use an SD card to store them.
                  
                  Host / Unix Socket of objects DB(redis), default[127.0.0.1]: r
                  Port of objects DB(redis), default[6379]: 
                  Type of states DB [(f)file, (r)edis, ...], default [redis]: 
                  Host / Unix Socket of states DB (redis), default[r]: 
                  Port of states DB (redis), default[6379]: 
                  Host name of this machine [TestPI]: 
                  Please choose if this is a Master/single host (enter "m") or a Slave host (enter "S") you are about to edit. For Slave hosts the data migration will be skipped. [S/m]: m
                  
                  Important: Using redis for the Objects database is only supported
                  with js-controller 2.0 or higher!
                  When your system consists of multiple hosts please make sure to have
                  js-controller 2.0 or higher installed on ALL hosts *before* continuing!
                  
                  
                  Important #2: If you already did the migration on an other host
                  please *do not* migrate again! This can destroy your system!
                  
                  
                  Important #3: The process will migrate all files that were officially
                  uploaded into the ioBroker system. If you have manually copied files into
                  iobroker-data/files/... into own directories then these files will NOT be
                  migrated! Make sure all files are in adapter directories inside the files
                  directory!
                  
                  
                  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"...
                  Creating backup ...
                  This can take some time ... please be patient!
                  host.TestPI 609 states saved
                  host.TestPI 747 objects saved
                  Backup created: /opt/iobroker/backups/2021_01_21-18_36_16_backupiobroker-migration.tar.gz
                  updating conf/iobroker.json
                  
                  Connecting to new DB "redis" (can take up to 20s) ...
                  No connection to objects r:6379[redis]
                  
                  New Database could not be connected. Please check your settings. No settings have been changed.
                  restoring conf/iobroker.json
                  No connection to states r:6379[redis]
                  pi@TestPI:~ $ redis-cli ping
                  PONG
                  pi@TestPI:~ $ 
                  
                  HomoranH Nicht stören
                  HomoranH Nicht stören
                  Homoran
                  Global Moderator Administrators
                  schrieb am zuletzt editiert von Homoran
                  #70

                  @renegade-0 sagte in Auf redis umstellen:

                  No connection to states r:6379[redis]

                  was macht das r da?

                  EDIT: @fastfoot war schneller

                  kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                  der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                  R 1 Antwort Letzte Antwort
                  0
                  • HomoranH Homoran

                    @renegade-0 sagte in Auf redis umstellen:

                    No connection to states r:6379[redis]

                    was macht das r da?

                    EDIT: @fastfoot war schneller

                    R Offline
                    R Offline
                    Renegade 0
                    schrieb am zuletzt editiert von
                    #71

                    @homoran

                    jaja schon gefixt. :)

                    @apollon77 So alles nochmal nach Vorschrift gemacht. Läuft wie eine 1.

                    nur mein DoorIO macht immer noch mucken, aber das geht in den passenden Thread.

                    Danke dir vielmals :)

                    HomoranH F 2 Antworten Letzte Antwort
                    0
                    • R Renegade 0

                      @homoran

                      jaja schon gefixt. :)

                      @apollon77 So alles nochmal nach Vorschrift gemacht. Läuft wie eine 1.

                      nur mein DoorIO macht immer noch mucken, aber das geht in den passenden Thread.

                      Danke dir vielmals :)

                      HomoranH Nicht stören
                      HomoranH Nicht stören
                      Homoran
                      Global Moderator Administrators
                      schrieb am zuletzt editiert von Homoran
                      #72

                      @renegade-0 sagte in Auf redis umstellen:

                      aber das geht in den passenden Thread.

                      Auch für die anderen Threads bitte nochmal Zusammenfassen:
                      Du hast jetzt controller 3.2.x und redis?

                      Und auch die Objekte in redis, wenn ich das richtig gesehen habe?

                      @renegade-0 sagte in Auf redis umstellen:

                      Do you want to migrate objects and states from "file/file" to "redis/redis" [y/N]: y

                      EDIT: im anderen Thread habe ich gerade gefunden:

                      So nun mein ganzes System auf die Latest gezogen, redis draufgepackt und migriert. Alle Adapter aktualisiert.

                      Hab das gar nicht mitbekommen, hast du jetzt wirklich ALLE Adapter auf latest?

                      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                      R 1 Antwort Letzte Antwort
                      0
                      • HomoranH Homoran

                        @renegade-0 sagte in Auf redis umstellen:

                        aber das geht in den passenden Thread.

                        Auch für die anderen Threads bitte nochmal Zusammenfassen:
                        Du hast jetzt controller 3.2.x und redis?

                        Und auch die Objekte in redis, wenn ich das richtig gesehen habe?

                        @renegade-0 sagte in Auf redis umstellen:

                        Do you want to migrate objects and states from "file/file" to "redis/redis" [y/N]: y

                        EDIT: im anderen Thread habe ich gerade gefunden:

                        So nun mein ganzes System auf die Latest gezogen, redis draufgepackt und migriert. Alle Adapter aktualisiert.

                        Hab das gar nicht mitbekommen, hast du jetzt wirklich ALLE Adapter auf latest?

                        R Offline
                        R Offline
                        Renegade 0
                        schrieb am zuletzt editiert von
                        #73

                        @homoran
                        OK wird gemacht

                        1 Antwort Letzte Antwort
                        0
                        • R Renegade 0

                          @homoran

                          jaja schon gefixt. :)

                          @apollon77 So alles nochmal nach Vorschrift gemacht. Läuft wie eine 1.

                          nur mein DoorIO macht immer noch mucken, aber das geht in den passenden Thread.

                          Danke dir vielmals :)

                          F Offline
                          F Offline
                          fastfoot
                          schrieb am zuletzt editiert von
                          #74

                          @renegade-0 sagte in Auf redis umstellen:

                          So alles nochmal nach Vorschrift gemacht. Läuft wie eine 1.

                          Sorgfalt zahlt sich aus :-)

                          iobroker läuft unter Docker auf QNAP TS-451+
                          SkriptRecovery: https://forum.iobroker.net/post/930558

                          1 Antwort Letzte Antwort
                          0
                          • Dr. BakteriusD Dr. Bakterius

                            @fastfoot sagte in Auf redis umstellen:

                            ich vermute dass der redis server nicht läuft

                            Ein sudo systemctl restart redis-server hat auf jeden Fall nicht geholfen.

                            Dr. BakteriusD Online
                            Dr. BakteriusD Online
                            Dr. Bakterius
                            Most Active
                            schrieb am zuletzt editiert von
                            #75

                            Noch ein Versuch - gleiches Ergebnis.
                            sudo systemctl restart redis-server
                            ergibt:

                            Job for redis-server.service failed because the control process exited with error code.
                            See "systemctl status redis-server.service" and "journalctl -xe" for details.
                            

                            systemctl status redis-server.service
                            ergibt:

                            * redis-server.service - Advanced key-value store
                               Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
                               Active: failed (Result: exit-code) since Thu 2021-01-21 19:08:33 CET; 13s ago
                                 Docs: http://redis.io/documentation,
                                       man:redis-server(1)
                              Process: 6559 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=226/NAMESPA
                            

                            Und sudo journalctl -xe
                            ergibt:

                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- The process /usr/bin/redis-server could not be executed and failed.
                            --
                            -- The error number returned by this process is ERRNO.
                            Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Control process exited, code=exited, status
                            -- Subject: Unit process exited
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- An ExecStart= process belonging to unit redis-server.service has exited.
                            --
                            -- The process' exit code is 'exited' and its exit status is 226.
                            Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Failed with result 'exit-code'.
                            -- Subject: Unit failed
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- The unit redis-server.service has entered the 'failed' state with result 'exit-code'.
                            Jan 21 19:08:33 iobroker systemd[1]: Failed to start Advanced key-value store.
                            -- Subject: A start job for unit redis-server.service has failed
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- A start job for unit redis-server.service has finished with a failure.
                            --
                            -- The job identifier is 674 and the job result is failed.
                            Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Service RestartSec=100ms expired, schedulin
                            Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Scheduled restart job, restart counter is a
                            -- Subject: Automatic restarting of a unit has been scheduled
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- Automatic restarting of the unit redis-server.service has been scheduled, as the result for
                            -- the configured Restart= setting for the unit.
                            Jan 21 19:08:33 iobroker systemd[1]: Stopped Advanced key-value store.
                            -- Subject: A stop job for unit redis-server.service has finished
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- A stop job for unit redis-server.service has finished.
                            --
                            -- The job identifier is 715 and the job result is done.
                            Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Start request repeated too quickly.
                            Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Failed with result 'exit-code'.
                            -- Subject: Unit failed
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- The unit redis-server.service has entered the 'failed' state with result 'exit-code'.
                            Jan 21 19:08:33 iobroker systemd[1]: Failed to start Advanced key-value store.
                            -- Subject: A start job for unit redis-server.service has failed
                            -- Defined-By: systemd
                            -- Support: https://www.debian.org/support
                            --
                            -- A start job for unit redis-server.service has finished with a failure.
                            --
                            -- The job identifier is 715 and the job result is failed.
                            

                            Der Ordner \var\log\redis ist leer.

                            Jemand noch eine Idee?

                            Dr. BakteriusD 1 Antwort Letzte Antwort
                            0
                            • Dr. BakteriusD Dr. Bakterius

                              Noch ein Versuch - gleiches Ergebnis.
                              sudo systemctl restart redis-server
                              ergibt:

                              Job for redis-server.service failed because the control process exited with error code.
                              See "systemctl status redis-server.service" and "journalctl -xe" for details.
                              

                              systemctl status redis-server.service
                              ergibt:

                              * redis-server.service - Advanced key-value store
                                 Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
                                 Active: failed (Result: exit-code) since Thu 2021-01-21 19:08:33 CET; 13s ago
                                   Docs: http://redis.io/documentation,
                                         man:redis-server(1)
                                Process: 6559 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=226/NAMESPA
                              

                              Und sudo journalctl -xe
                              ergibt:

                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- The process /usr/bin/redis-server could not be executed and failed.
                              --
                              -- The error number returned by this process is ERRNO.
                              Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Control process exited, code=exited, status
                              -- Subject: Unit process exited
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- An ExecStart= process belonging to unit redis-server.service has exited.
                              --
                              -- The process' exit code is 'exited' and its exit status is 226.
                              Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Failed with result 'exit-code'.
                              -- Subject: Unit failed
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- The unit redis-server.service has entered the 'failed' state with result 'exit-code'.
                              Jan 21 19:08:33 iobroker systemd[1]: Failed to start Advanced key-value store.
                              -- Subject: A start job for unit redis-server.service has failed
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- A start job for unit redis-server.service has finished with a failure.
                              --
                              -- The job identifier is 674 and the job result is failed.
                              Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Service RestartSec=100ms expired, schedulin
                              Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Scheduled restart job, restart counter is a
                              -- Subject: Automatic restarting of a unit has been scheduled
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- Automatic restarting of the unit redis-server.service has been scheduled, as the result for
                              -- the configured Restart= setting for the unit.
                              Jan 21 19:08:33 iobroker systemd[1]: Stopped Advanced key-value store.
                              -- Subject: A stop job for unit redis-server.service has finished
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- A stop job for unit redis-server.service has finished.
                              --
                              -- The job identifier is 715 and the job result is done.
                              Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Start request repeated too quickly.
                              Jan 21 19:08:33 iobroker systemd[1]: redis-server.service: Failed with result 'exit-code'.
                              -- Subject: Unit failed
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- The unit redis-server.service has entered the 'failed' state with result 'exit-code'.
                              Jan 21 19:08:33 iobroker systemd[1]: Failed to start Advanced key-value store.
                              -- Subject: A start job for unit redis-server.service has failed
                              -- Defined-By: systemd
                              -- Support: https://www.debian.org/support
                              --
                              -- A start job for unit redis-server.service has finished with a failure.
                              --
                              -- The job identifier is 715 and the job result is failed.
                              

                              Der Ordner \var\log\redis ist leer.

                              Jemand noch eine Idee?

                              Dr. BakteriusD Online
                              Dr. BakteriusD Online
                              Dr. Bakterius
                              Most Active
                              schrieb am zuletzt editiert von
                              #76

                              Mit /usr/bin/redis-server /etc/redis/redis.conf kann man ja die Config prüfen. Das ergibt:

                              *** FATAL CONFIG FILE ERROR ***
                              Reading the configuration file, at line 171
                              >>> 'logfile /var/log/redis/redis-server.log'
                              Can't open the log file: Permission denied
                              

                              Also folgendes gemacht:
                              Eine leere redis-server.log erstellt und dann
                              sudo chown -R redis:redis /var/log/redis
                              sudo chmod -R u+rwX,g+rwX,u+rx /var/log/redis
                              sudo chmod +r /etc/redis/redis.conf

                              Allerdings ohne Erfolg.

                              Thomas BraunT F 2 Antworten Letzte Antwort
                              0
                              • Dr. BakteriusD Dr. Bakterius

                                Mit /usr/bin/redis-server /etc/redis/redis.conf kann man ja die Config prüfen. Das ergibt:

                                *** FATAL CONFIG FILE ERROR ***
                                Reading the configuration file, at line 171
                                >>> 'logfile /var/log/redis/redis-server.log'
                                Can't open the log file: Permission denied
                                

                                Also folgendes gemacht:
                                Eine leere redis-server.log erstellt und dann
                                sudo chown -R redis:redis /var/log/redis
                                sudo chmod -R u+rwX,g+rwX,u+rx /var/log/redis
                                sudo chmod +r /etc/redis/redis.conf

                                Allerdings ohne Erfolg.

                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von
                                #77

                                @dr-bakterius Da würde ich ja auch zunächst Mal schauen wem das Log mit welchen Rechten gehört. Dann kannst du halt da was ändern. Ich vermute ja immer noch eine fehlende Gruppenzugehörigkeit.

                                Linux-Werkzeugkasten:
                                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                NodeJS Fixer Skript:
                                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                F Dr. BakteriusD 2 Antworten Letzte Antwort
                                0
                                • Dr. BakteriusD Dr. Bakterius

                                  Mit /usr/bin/redis-server /etc/redis/redis.conf kann man ja die Config prüfen. Das ergibt:

                                  *** FATAL CONFIG FILE ERROR ***
                                  Reading the configuration file, at line 171
                                  >>> 'logfile /var/log/redis/redis-server.log'
                                  Can't open the log file: Permission denied
                                  

                                  Also folgendes gemacht:
                                  Eine leere redis-server.log erstellt und dann
                                  sudo chown -R redis:redis /var/log/redis
                                  sudo chmod -R u+rwX,g+rwX,u+rx /var/log/redis
                                  sudo chmod +r /etc/redis/redis.conf

                                  Allerdings ohne Erfolg.

                                  F Offline
                                  F Offline
                                  fastfoot
                                  schrieb am zuletzt editiert von
                                  #78

                                  @dr-bakterius sagte in Auf redis umstellen:

                                  Allerdings ohne Erfolg.

                                  probiere mal (ohne Gewähr)

                                  sudo systemctl edit redis-server
                                  
                                  [Service]
                                  ProtectHome=no
                                  
                                  
                                  Save and exit the editor 
                                  

                                  iobroker läuft unter Docker auf QNAP TS-451+
                                  SkriptRecovery: https://forum.iobroker.net/post/930558

                                  1 Antwort Letzte Antwort
                                  0
                                  • Thomas BraunT Thomas Braun

                                    @dr-bakterius Da würde ich ja auch zunächst Mal schauen wem das Log mit welchen Rechten gehört. Dann kannst du halt da was ändern. Ich vermute ja immer noch eine fehlende Gruppenzugehörigkeit.

                                    F Offline
                                    F Offline
                                    fastfoot
                                    schrieb am zuletzt editiert von
                                    #79

                                    @thomas-braun sagte in Auf redis umstellen:

                                    @dr-bakterius Da würde ich ja auch zunächst Mal schauen wem das Log mit welchen Rechten gehört. Dann kannst du halt da was ändern. Ich vermute ja immer noch eine fehlende Gruppenzugehörigkeit.

                                    er ist nicht iobroker, das würde sich erst beim Zugriff bemerkbar machen und ist dann evtl nochmal Thema. für jetzt startet der server erst gar nicht

                                    iobroker läuft unter Docker auf QNAP TS-451+
                                    SkriptRecovery: https://forum.iobroker.net/post/930558

                                    1 Antwort Letzte Antwort
                                    0
                                    • Thomas BraunT Thomas Braun

                                      @dr-bakterius Da würde ich ja auch zunächst Mal schauen wem das Log mit welchen Rechten gehört. Dann kannst du halt da was ändern. Ich vermute ja immer noch eine fehlende Gruppenzugehörigkeit.

                                      Dr. BakteriusD Online
                                      Dr. BakteriusD Online
                                      Dr. Bakterius
                                      Most Active
                                      schrieb am zuletzt editiert von Dr. Bakterius
                                      #80

                                      @thomas-braun sagte in Auf redis umstellen:

                                      Da würde ich ja auch zunächst Mal schauen wem das Log mit welchen Rechten gehört.

                                      Es wird ja erst gar keine Log-Datei erstellt. Den Ordner habe ich mal als Test '777' zugewiesen - brachte aber auch nichts.

                                      @fastfoot sagte in Auf redis umstellen:

                                      probiere mal (ohne Gewähr)

                                      Danke, aber leider kein Erfolg.

                                      F 1 Antwort Letzte Antwort
                                      0
                                      • Dr. BakteriusD Dr. Bakterius

                                        @thomas-braun sagte in Auf redis umstellen:

                                        Da würde ich ja auch zunächst Mal schauen wem das Log mit welchen Rechten gehört.

                                        Es wird ja erst gar keine Log-Datei erstellt. Den Ordner habe ich mal als Test '777' zugewiesen - brachte aber auch nichts.

                                        @fastfoot sagte in Auf redis umstellen:

                                        probiere mal (ohne Gewähr)

                                        Danke, aber leider kein Erfolg.

                                        F Offline
                                        F Offline
                                        fastfoot
                                        schrieb am zuletzt editiert von
                                        #81

                                        @dr-bakterius sagte in Auf redis umstellen:

                                        Es wird ja erst gar keine Log-Datei erstellt.

                                        das Logfile wird in der redis.conf konfiguriert. Standardmässig ist das der Standard Output, also kein File. Wenn als daemon gestartet gehen die Ausgaben ohne eine Angabe nach /dev/null

                                        iobroker läuft unter Docker auf QNAP TS-451+
                                        SkriptRecovery: https://forum.iobroker.net/post/930558

                                        Dr. BakteriusD 1 Antwort Letzte Antwort
                                        0
                                        • F fastfoot

                                          @dr-bakterius sagte in Auf redis umstellen:

                                          Es wird ja erst gar keine Log-Datei erstellt.

                                          das Logfile wird in der redis.conf konfiguriert. Standardmässig ist das der Standard Output, also kein File. Wenn als daemon gestartet gehen die Ausgaben ohne eine Angabe nach /dev/null

                                          Dr. BakteriusD Online
                                          Dr. BakteriusD Online
                                          Dr. Bakterius
                                          Most Active
                                          schrieb am zuletzt editiert von
                                          #82

                                          @fastfoot sagte in Auf redis umstellen:

                                          tandardmässig ist das der Standard Output, also kein File.

                                          Also wird dieses File, auch wenn in der Config angegeben, nicht erstellt? Warum beschwert er sich dann, dass er darauf keinen Zugriff hat?

                                          Ich habe das File jetzt noch einmal erstellt und dem User 'redis' gegeben (wie auch der Ordner). Jetzt kommt keine Beschwerde wegen des Zugriffs. Aber funktionieren tut es trotzdem nicht.

                                          Was bedeutet: Failed to start Advanced key-value store. (wird mir jetzt beim Status ausgegeben)?

                                          F 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

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

                                          833

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe