Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] Multihost mit Redis -Einstellungen

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    [gelöst] Multihost mit Redis -Einstellungen

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

      pi@ioBroker-RasPi:~ $ cd /opt/iobroker
      pi@ioBroker-RasPi:/opt/iobroker $ sudo iobroker status
      events.js:160
            throw er; // Unhandled 'error' event
            ^
      
      Error: listen EADDRNOTAVAIL 192.168.0.115:9001
          at Object.exports._errnoException (util.js:1020:11)
          at exports._exceptionWithHostPort (util.js:1043:20)
          at Server._listen2 (net.js:1249:19)
          at listen (net.js:1298:10)
          at net.js:1408:9
          at _combinedTickCallback (internal/process/next_tick.js:83:11)
          at process._tickCallback (internal/process/next_tick.js:104:9)
      
      

      der Master passt, der Slave meldet obiges…. :evil:

      bind 0.0.0.0

      in der redis.conf habe ich geändert...

      Update: jetzt habe ich beim Master im Setup bei der IP auch 0.0.0.0 eingegeben - konnte alle Verbindungen aufbauen

      aber im log finde ich keine Adapter der Slave Hosts

      feiertage.0	2018-01-02 20:24:57.918	info	States connected to redis: 0.0.0.0:6379
      tankerkoenig.0	2018-01-02 20:24:57.294	info	States connected to redis: 0.0.0.0:6379
      hue.0	2018-01-02 20:24:48.680	info	States connected to redis: 0.0.0.0:6379
      fritzbox.0	2018-01-02 20:24:44.873	info	States connected to redis: 0.0.0.0:6379
      scenes.0	2018-01-02 20:24:38.936	info	States connected to redis: 0.0.0.0:6379
      cloud.0	2018-01-02 20:24:38.900	info	States connected to redis: 0.0.0.0:6379
      sonos.0	2018-01-02 20:24:32.195	info	States connected to redis: 0.0.0.0:6379
      discovery.0	2018-01-02 20:24:27.027	info	States connected to redis: 0.0.0.0:6379
      admin.0	2018-01-02 20:24:01.592	info	States connected to redis: 0.0.0.0:6379
      host.orangepiplus	2018-01-02 20:23:54.498	info	States connected to redis: 0.0.0.0:6379
      fritzbox.0	2018-01-02 20:20:02.879	info	States connected to redis: 127.0.0.1:6379
      hm-rpc.5	2018-01-02 20:14:16.159	info	States connected to redis: 127.0.0.1:6379
      fritzdect.0	2018-01-02 20:14:10.587	info	States connected to redis: 127.0.0.1:6379
      hm-rpc.4	2018-01-02 20:14:10.514	info	States connected to redis: 127.0.0.1:6379
      yamaha.0	2018-01-02 20:14:09.151	info	States connected to redis: 127.0.0.1:6379
      hm-rpc.3	2018-01-02 20:14:09.039	info	States connected to redis: 127.0.0.1:6379
      harmony.0	2018-01-02 20:14:05.722	info	States connected to redis: 127.0.0.1:6379
      vis.0	2018-01-02 20:13:55.305	info	States connected to redis: 127.0.0.1:6379
      scenes.0	2018-01-02 20:13:47.868	info	States connected to redis: 127.0.0.1:6379
      web.0	2018-01-02 20:13:42.164	info	States connected to redis: 127.0.0.1:6379
      cloud.0	2018-01-02 20:13:41.570	info	States connected to redis: 127.0.0.1:6379
      sonos.0	2018-01-02 20:13:41.405	info	States connected to redis: 127.0.0.1:6379
      hm-rega.0	2018-01-02 20:13:36.983	info	States connected to redis: 127.0.0.1:6379
      javascript.0	2018-01-02 20:13:31.107	info	States connected to redis: 127.0.0.1:6379
      admin.0	2018-01-02 20:13:26.471	info	States connected to redis: 127.0.0.1:6379
      discovery.0	2018-01-02 20:13:26.202	info	States connected to redis: 127.0.0.1:6379
      feiertage.0	2018-01-02 20:13:25.540	info	States connected to redis: 127.0.0.1:6379
      tankerkoenig.0	2018-01-02 20:13:23.063	info	States connected to redis: 127.0.0.1:6379
      hue.0	2018-01-02 20:13:16.711	info	States connected to redis: 127.0.0.1:6379
      fritzbox.0	2018-01-02 20:13:08.525	info	States connected to redis: 127.0.0.1:6379
      
      1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators last edited by

        Hast du im Master bei Objects und States die IP 0.0.0.0 eingegeben?

        1 Reply Last reply Reply Quote 0
        • S
          schneidy76 last edited by

          jetzt warst du schneller 😄

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

            die slaves anschließend restartet?

            1 Reply Last reply Reply Quote 0
            • S
              schneidy76 last edited by

              eigentlich schon, abrr zur Sicherheit…

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

                erscheinen die Slaves unter "Hosts"?

                1 Reply Last reply Reply Quote 0
                • S
                  schneidy76 last edited by

                  kuckst du log im jeweiligen host passt es

                  javascript.1	2018-01-02 20:37:51.639	info	States connected to redis: 192.168.0.115:6379
                  rpi2.0	2018-01-02 20:37:46.427	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 20:37:28.388	info	States connected to redis: 192.168.0.115:6379
                  javascript.1	2018-01-02 20:36:37.241	info	States connected to redis: 192.168.0.115:6379
                  rpi2.0	2018-01-02 20:36:31.461	info	States connected to redis: 192.168.0.115:6379
                  javascript.1	2018-01-02 20:24:26.823	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 20:24:23.040	info	States connected to redis: 192.168.0.115:6379
                  rpi2.0	2018-01-02 20:24:20.005	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 20:08:05.511	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 20:04:36.224	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 20:01:00.701	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 19:59:08.824	info	States connected to redis: 192.168.0.115:6379
                  rpi2.0	2018-01-02 19:46:20.157	info	States connected to redis: 192.168.0.115:6379
                  rpi2.0	2018-01-02 19:46:08.880	info	States connected to redis: 192.168.0.115:6379
                  javascript.1	2018-01-02 19:46:08.875	info	States connected to redis: 192.168.0.115:6379
                  javascript.1	2018-01-02 19:46:08.865	info	States connected to redis: 192.168.0.115:6379
                  host.ioBroker-RasPi	2018-01-02 19:46:08.868	info	States connected to redis: 192.168.0.115:6379
                  

                  Der Fehler saß mal wieder vorm Bildschirm!!! :lol:

                  Danke Rainer

                  1 Reply Last reply Reply Quote 0
                  • S
                    schneidy76 last edited by

                    trotzdem blöd, die logs sollten zentral im Master stehn :roll:

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

                      @schneidy76:

                      trotzdem blöd, die logs sollten zentral im Master stehn `
                      tun sie doch.

                      Oder kommst du noch auf die admins der slaves?

                      1 Reply Last reply Reply Quote 0
                      • S
                        schneidy76 last edited by

                        ich muss hier
                        2631_2018-01-02_21_18_36-iobroker.admin.png
                        den host auswählen um den log des redis Servers zu sehen

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

                          korrekt,

                          aber IMHO ist das nur ein Filter, die Daten liegen schon auf dem Master.

                          Das sollte irgendwann einmal verbessert werden, wird aber mit dem admin 3.0 erst später kommen.

                          Das kannst du aber einfach überprüfen, indem du mal unter /opt/iobroker/log dir die logs ansiehst.

                          Gruß

                          Rainer

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

                            Hallo, wie kann ich eigentlich kontrollieren ob der Redisserver bzw. das Multihost mit Redis arbeitet? System läuft , eingerichtet wie auf der Homepage beschrieben…

                            1 Reply Last reply Reply Quote 0
                            • S
                              schneidy76 last edited by

                              Beim Start von Adaptern steht im log "Connect mit redis" oder sowas in der Art.

                              Ich denke das sollte auf den ordentlichen Betrieb hinweisen. Etwas anderes habe ich auch noch nicht gesehen…

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

                                Das steht bei mit nicht hab mir das log runter geladen und danach gesucht…der log meiner Adapter steht auf info Level....

                                Noch ne idde wie ich das testen kann... ich meine viel zu machen ist ja offensichtlich nicht. nur am Master
                                ` > nano /etc/redis/redis.conf

                                Die darin enthaltene Zeile

                                bind 127.0.0.1

                                muss mit der IP des Netzwerkadapters ergänzt werden, damit der Redis-Server connects von extern zulässt. Also zB

                                bind 127.0.0.1 192.168.1.10

                                unter der Annahme, dass 192.168.1.10 die lokale IP des ioBroker Masters ist.

                                Diese Anpassung ist auch nur am Master nötig.

                                Alternativ geht auch

                                bind 0.0.0.0

                                Zum Schluss den Redis-Server oder Rechner neu starten. zB:

                                sudo service redis-server restart `

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

                                  @smartboart:

                                  ne idde wie ich das testen kann… `
                                  Wenn Redis aktiv ist, hat die Datei /var/lib/redis/dump.rdb ein aktuelles Datum (max. 5 Minuten alt) und die Datei

                                  /opt/iobroker/iobroker-data/states.json hat ein altes Datum. Andernfalls ist es umgekehrt.

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

                                    Super,

                                    vielen Dank für die Antwort!!!

                                    Also scheint redis bei mir nicht zu laufen..

                                    die dump.rdb ist nicht aktuell und nur 1kB groß.

                                    die /opt/iobroker/iobroker-data/states.json dagen ist aktuell und 429kB

                                    Ne idee wie ich das nachträglich fixen kann… Denke ich habe im Master die Einstellungen entsprechend vorgenommen..

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

                                      Also mit top sehe ich das redis auf master und slave läuft. Aber die aktuellen Daten liegen doch auf der states.json…Was läuft da falsch?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        schneidy76 last edited by

                                        im meinen log taucht häufig dies auf:

                                        states connected to redis: 0.0.0.0:6379
                                        tankerkoenig.0	2018-10-11 23:30:04.895	info	States connected to redis: 0.0.0.0:6379
                                        
                                        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

                                        877
                                        Online

                                        32.1k
                                        Users

                                        80.7k
                                        Topics

                                        1.3m
                                        Posts

                                        4
                                        24
                                        3074
                                        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