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

      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

                            875
                            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