Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Auf redis umstellen

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    12
    2
    280

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

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

Auf redis umstellen

Auf redis umstellen

Scheduled Pinned Locked Moved ioBroker Allgemein
100 Posts 11 Posters 15.0k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 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
    wrote on last edited by 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 Reply Last reply
    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
      wrote on last edited by
      #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 Reply Last reply
      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 Do not disturb
        HomoranH Do not disturb
        Homoran
        Global Moderator Administrators
        wrote on last edited by 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

        😰 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 Reply Last reply
        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
          wrote on last edited by
          #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 Reply Last reply
          0
          • R Offline
            R Offline
            Renegade 0
            wrote on last edited by
            #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 Replies Last reply
            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
              wrote on last edited by
              #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 Reply Last reply
              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
                wrote on last edited by
                #69

                @fastfoot uups.^^
                ok nochmal von vorn 🙂

                1 Reply Last reply
                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 Do not disturb
                  HomoranH Do not disturb
                  Homoran
                  Global Moderator Administrators
                  wrote on last edited by 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 Reply Last reply
                  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
                    wrote on last edited by
                    #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 Replies Last reply
                    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 Do not disturb
                      HomoranH Do not disturb
                      Homoran
                      Global Moderator Administrators
                      wrote on last edited by 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 Reply Last reply
                      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
                        wrote on last edited by
                        #73

                        @homoran
                        OK wird gemacht

                        1 Reply Last reply
                        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
                          wrote on last edited by
                          #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 Reply Last reply
                          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 Offline
                            Dr. BakteriusD Offline
                            Dr. Bakterius
                            Most Active
                            wrote on last edited by
                            #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 Reply Last reply
                            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 Offline
                              Dr. BakteriusD Offline
                              Dr. Bakterius
                              Most Active
                              wrote on last edited by
                              #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 Replies Last reply
                              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
                                wrote on last edited by
                                #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 Replies Last reply
                                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
                                  wrote on last edited by
                                  #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 Reply Last reply
                                  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
                                    wrote on last edited by
                                    #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 Reply Last reply
                                    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 Offline
                                      Dr. BakteriusD Offline
                                      Dr. Bakterius
                                      Most Active
                                      wrote on last edited by 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 Reply Last reply
                                      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
                                        wrote on last edited by
                                        #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 Reply Last reply
                                        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 Offline
                                          Dr. BakteriusD Offline
                                          Dr. Bakterius
                                          Most Active
                                          wrote on last edited by
                                          #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 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          221

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe