Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. System mit Master/Slave neu aufsetzen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    System mit Master/Slave neu aufsetzen

    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lollo_C @Homoran last edited by

      @homoran
      Bevor ich das mache: wären das die richtigen Parameter, oder muss ich bei Host auf states die des Master angeben?

      Type of objects DB [file, couch, redis], default [jsonl]: ENTER
      Host of objects DB(file), default[127.0.0.1]: <0.0.0.0>
      Port of objects DB(file), default[9001]: ENTER
      Type of states DB [file, redis], default [redis]: ENTER
      Host of states DB (file), default[0.0.0.0]: ENTER
      Port of states DB (file), default[6379]: ENTER
      Host name of this machine [RasPi3]: ENTER
      
      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Lollo_C last edited by Homoran

        @lollo_c Dein slave soll doch auf die Redis des Masters zugreifen
        (wieso überhaupt redis?)

        dann muss hier (beim Slave) auch die IP des Masters rein.

        bei den objects mit JSONL bin ich mir da nicht sicher

        L 1 Reply Last reply Reply Quote 0
        • L
          Lollo_C @Homoran last edited by

          @homoran
          Warum redis: weil irgendwann mal gesagt wurde, dann läuft der iobroker schneller. (Sorry, aber ich habe mein Wissen meist von YT). Egal: ich habe beim Slave kontrolliert:

          Current configuration:
          - Objects database:
            - Type: jsonl
            - Host/Unix Socket: 192.168.2.210
            - Port: 9001
          - States database:
            - Type: redis
            - Host/Unix Socket: 192.168.2.210
            - Port: 6379
          - Data Directory: ../../iobroker-data/
          
          Type of objects DB [(j)sonl, (f)ile, (r)edis, ...], default [jsonl]:
          Host / Unix Socket of objects DB(jsonl), default[192.168.2.210]:
          Port of objects DB(jsonl), default[9001]:
          Type of states DB [(j)sonl, (f)file, (r)edis, ...], default [jsonl]: r
          Host / Unix Socket of states DB (redis), default[192.168.2.210]:
          Port of states DB (redis), default[6379]:
          Host name of this machine [RasPi3]:
          updating conf/iobroker.json
          
          

          Sieht für mich erst einmal i.O. aus, oder?

          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Lollo_C last edited by Homoran

            @lollo_c sagte in System mit Master/Slave neu aufsetzen:

            weil irgendwann mal gesagt wurde,

            ja, bei Raspberry v1/2 und ähnlichen.

            und läuft's jetzt?

            L 1 Reply Last reply Reply Quote 0
            • L
              Lollo_C @Homoran last edited by Lollo_C

              @homoran sagte in System mit Master/Slave neu aufsetzen:

              und läuft's jetzt?

              nein, leider nicht.

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Lollo_C last edited by

                @lollo_c sagte in System mit Master/Slave neu aufsetzen:

                @homoran sagte in System mit Master/Slave neu aufsetzen:

                und läuft's jetzt?

                nein, leider nicht.

                dann bitte nochmal auf dem Master in der redis.conf explizit die 0.0.0.0 freigeben (über bind)
                wenn das auch nicht hilft, Master und slave neu starten (ggf. 2x im Wechsel)

                L 1 Reply Last reply Reply Quote 0
                • L
                  Lollo_C @Homoran last edited by

                  @homoran
                  Ich glaube, jetzt habe ich was falsch eingegeben. In der redis.config:

                  bind 127.0.0.1 0.0.0.0
                  

                  Beim "sudo service redis-server restart" kommt Fehlermeldung

                  Job for redis-server.service failed because the control process exited with error code.
                  See "systemctl status redis-server.service" and "journalctl -xeu redis-server.service" for details.
                  
                  
                  Marc Berg 1 Reply Last reply Reply Quote 0
                  • Marc Berg
                    Marc Berg Most Active @Lollo_C last edited by Marc Berg

                    @lollo_c sagte in System mit Master/Slave neu aufsetzen:

                    bind 127.0.0.1 0.0.0.0

                    Das geht so nicht. Wenn, dann musst du

                    bind  0.0.0.0
                    

                    eingeben. Aber wie oben bereits erwähnt, ist es das gleiche, als wenn du gar nichts konfigurierst. Und man hat ja schon gesehen, dass es funktionierte:

                    tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN      106        13311      699/redis-server *:
                    
                    1 Reply Last reply Reply Quote 0
                    • Marc Berg
                      Marc Berg Most Active last edited by

                      Hast du

                      protected-mode no
                      

                      in der redis.conf eingestellt?

                      L Homoran 3 Replies Last reply Reply Quote 1
                      • L
                        Lollo_C @Marc Berg last edited by

                        @marc-berg sagte in System mit Master/Slave neu aufsetzen:

                        Hast du

                        protected-mode no
                        

                        in der redis.conf eingestellt?

                        Nein, steht auf YES

                        1 Reply Last reply Reply Quote 0
                        • L
                          Lollo_C @Marc Berg last edited by

                          @marc-berg sagte in System mit Master/Slave neu aufsetzen:

                          Hast du

                          protected-mode no
                          

                          in der redis.conf eingestellt?

                          DAS WAR ES! Vielen Dank, jetzt ist der Slave da.

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            Lollo_C @Lollo_C last edited by

                            @lollo_c
                            Ich benötige doch noch einmal Hilfe. Master und Slave laufen nun. Im #tab-instances sind alle (bis auf die ws.0) Instanzen grün. Es werden auch Daten in die Objekte geschrieben. Wenn ich die Einstellungen der Instanzen auf dem Slave öffnen möchte, dann bleibt die Seite weiß und es erscheint eine Meldung

                            [JsonConfig] Cannot read file: Not exists
                            

                            Bei den Protokollen werden jede Menge Warnungen zu Instanzen vom Slave angezeigt.

                            1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Marc Berg last edited by

                              @marc-berg sagte in System mit Master/Slave neu aufsetzen:

                              Hast du

                              protected-mode no
                              

                              in der redis.conf eingestellt?

                              ist das neu(er)?
                              und deswegen jetzt 0.0.0.0 als default?

                              Marc Berg 1 Reply Last reply Reply Quote 0
                              • Neuschwansteini
                                Neuschwansteini @Lollo_C last edited by

                                @lollo_c

                                Mach mal ein
                                bind 0.0.0.0

                                Anstatt des localhosts…

                                1 Reply Last reply Reply Quote 0
                                • Marc Berg
                                  Marc Berg Most Active @Homoran last edited by

                                  @homoran sagte in System mit Master/Slave neu aufsetzen:

                                  ist das neu(er)?
                                  und deswegen jetzt 0.0.0.0 als default?

                                  Ob das neu ist, kann ich nicht sagen, ich kenne es nicht anders. Und es steht auch in der Dokumentation, wobei es in der Multihost Doku vielleicht nachgezogen werden sollte.

                                  https://www.iobroker.net/#en/documentation/config/redis.md

                                  9fc57f7d-75db-4a07-b369-d7035fbddbb6-grafik.png

                                  Homoran 1 Reply Last reply Reply Quote 1
                                  • Homoran
                                    Homoran Global Moderator Administrators @Marc Berg last edited by Homoran

                                    @marc-berg sagte in System mit Master/Slave neu aufsetzen:

                                    Und es steht auch in der Dokumentation,

                                    aber da steht doch, dass du bind 0.0.0.0 eintragen musst. (must be changed to 0.0.0.0)
                                    Wenn es grundsätzlich freigeschaltet wäre, wäre das nicht nötig.
                                    So kenne ich das auch.

                                    Deswegen habe ich es auch genau so in 2014 in die Doku übernommen.
                                    https://www.iobroker.net/#de/documentation/config/multihost.md?multihostmitredis

                                    Damals gab es meines Wissens die Option protected mode nicht.

                                    Marc Berg 1 Reply Last reply Reply Quote 0
                                    • Marc Berg
                                      Marc Berg Most Active @Homoran last edited by

                                      @homoran sagte in System mit Master/Slave neu aufsetzen:

                                      Wenn es grundsätzlich freigeschaltet wäre, wäre das nicht nötig.
                                      So kenne ich das auch.

                                      Es ist nicht grundsätzlich freigeschaltet, da standardmäßig

                                      bind 127.0.0.1
                                      

                                      in der config steht. Jetzt kann man das auf "0.0.0.0" ändern, oder die Zeile löschen. Es kommt auf das selbe raus.

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

                                      Support us

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

                                      626
                                      Online

                                      31.6k
                                      Users

                                      79.5k
                                      Topics

                                      1.3m
                                      Posts

                                      4
                                      31
                                      1409
                                      Loading More Posts
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                      The ioBroker Community 2014-2023
                                      logo