Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Probleme mit der Verbindung Master Slave

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Probleme mit der Verbindung Master Slave

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Mico last edited by

      @mico sagte in Probleme mit der Verbindung Master Slave:

      sudo iobroker multihost enable

      Nicht sudo verwenden.
      Auf beiden Systemen:

      iob fix
      
      1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @Mico last edited by

        @mico probier es zu fuss

        auf dem slave mit

        iobroker setup custom
        

        https://www.iobroker.net/docu/index-24.htm?page_id=3068&lang=de#Installation

        1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active last edited by haselchen

          @Mico

          https://forum.iobroker.net/topic/76290/multihost-probleme-error-no-configuration-received/26?page=2

          Hier wird Dein Problem auch besprochen und die Lösung von @arteck präsentiert.

          @arteck aber wie kann es sein, dass eine über 5 Jahre alte Docu dieses Problem hier löst?
          Wer müsste über diese Thematik gucken ? Und wo sollte man melden , dass die aktuellen Befehle zu einem Fehler führen ?
          Vielleicht ist es auch schon offiziell bekannt , soweit habe ich noch nicht recherchiert.

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

            @haselchen sagte in Probleme mit der Verbindung Master Slave:

            aber wie kann es sein, dass eine über 5 Jahre alte Docu dieses Problem hier löst?

            weil sich seitdem nichts vetändert hat
            iob setup custom ist seit 10 Jahren die Methode per Konsole eine Multihost Umgebung aufzusetzen und daher das Fallback wenn eine andere Methode, aus welchem Grund auch immer, fehlschlägt

            haselchen 1 Reply Last reply Reply Quote 1
            • haselchen
              haselchen Most Active @Homoran last edited by haselchen

              @homoran

              Dann wäre es von @arteck cleverer gewesen auf die aktuelle Docu zu verweisen und nicht auf einen alten Schinken ( auch wenn der Inhalt der gleiche ist).

              M arteck 2 Replies Last reply Reply Quote 0
              • M
                Mico @haselchen last edited by Homoran

                Also ich soll nun iob setup custom auf meinen beiden Raspi durchführen ist das korrekt?
                Beginnend mit dem späteren Master in meinem Fall der Raspi 5

                Type of objects DB [file, couch, redis], default [file]: 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 [file]: ENTER
                Host of states DB (file), default[0.0.0.0]: ENTER
                Port of states DB (file), default[9000]: ENTER
                Host name of this machine [hostname]: ENTER
                

                die <0.0.0.0> soll dann die IP Adresse des Raspi 5 sein? Der Hostname wird dann nochmals neu bestimmt und damit überschrieben?

                Bei iob fix kommt das raus

                Your system is booting into 'graphical.target', which means that a user interfac                                                                                                                                                             e or desktop is available. Usually a server is running without a desktop to have                                                                                                                                                              more RAM available. Do you want to switch to 'multi-user.target'? (y/N)
                library: loaded
                Library version=2024-10-22
                ioBroker or some processes are still running:
                10828 iobroker.js-con
                10950 io.admin.0
                11002 io.history.0
                11028 io.javascript.0
                11054 io.node-red.0
                11091 io.pushover.0
                11098 io.meross.0
                11121 io.scenes.0
                11151 io.shelly.0
                11166 io.backitup.0
                11173 io.tuya.0
                11207 io.alexa2.0
                11226 io.zigbee.0
                11232 io.cloud.0
                11257 io.geofency.0
                11264 io.discovery.0
                11287 io.iot.0
                11302 io.text2command
                11317 io.trashschedul
                11332 io.vis-2.0
                11364 io.web.0
                11379 io.yahka.0
                12428 io.telegram.0
                Please stop them first and try again!
                

                beim Raspi 3 das

                Your system is booting into 'graphical.target', which means that a user interfac                                                                                                                                                             e or desktop is available. Usually a server is running without a desktop to have                                                                                                                                                              more RAM available. Do you want to switch to 'multi-user.target'? (y/N)
                library: loaded
                Library version=2024-10-22
                ioBroker or some processes are still running:
                685 iobroker.js-con
                1765 io.backitup.0
                1774 io.admin.0
                1775 io.discovery.0
                Please stop them first and try again!
                Bei dem iob diag
                kommt bei beiden das raus
                *** iob diag is starting up, please wait ***
                iob diag needs to be updated. Please execute 'iobroker fix' first.
                

                MOD-EDIT: Code in code-tags gesetzt!

                Gruß
                Mico

                Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Mico last edited by

                  @mico sagte in Probleme mit der Verbindung Master Slave:

                  Please stop them first and try again!

                  Der Fixer kann nicht mit dem ioBroker zugleich laufen.
                  Also zuerst

                  iob stop
                  
                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Mico last edited by

                    @mico sagte in Probleme mit der Verbindung Master Slave:

                    die <0.0.0.0> soll dann die IP Adresse des Raspi 5 sein?

                    das sollst du so eingeben!

                    @mico sagte in Probleme mit der Verbindung Master Slave:

                    Der Hostname wird dann nochmals neu bestimmt

                    Da wird dann der richtige stehen!

                    Die Anleitung kennt deinen Hostnamen ja nicht 😁

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Mico @Homoran last edited by Mico

                      so das erste mit iob fix habe ich schon mal

                      auf dem Raspi 5 kommt das.

                      
                      pi@raspberrypi:~ $ iob fix
                      Your system is booting into 'graphical.target', which means that a user interfac                                                                                                                                                             e or desktop is available. Usually a server is running without a desktop to have                                                                                                                                                              more RAM available. Do you want to switch to 'multi-user.target'? (y/N)
                      library: loaded
                      Library version=2024-10-22
                      ==========================================================================
                      Welcome to the ioBroker installation fixer!
                          Script version: 2024-10-22
                          You might need to enter your password a couple of times.
                      ==========================================================================
                      ==========================================================================
                          Installing prerequisites (1/5)
                      ==========================================================================
                      Hit:1 http://deb.debian.org/debian bookworm InRelease
                      Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB                                                                                                                                                             ]
                      Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
                      Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
                      Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
                      Fetched 48.0 kB in 0s (99.3 kB/s)
                      Reading package lists... Done
                       Processing triggers for man-db (2.11.2-2) ...u1_arm64.deb ...nstalled.)
                      Installed distro-info
                      ==========================================================================
                          Checking ioBroker user and directory permissions (2/5)
                      ==========================================================================
                      
                      Created /etc/sudoers.d/iobroker
                      Fixing directory permissions...
                      ==========================================================================
                          Check and cleanup npm temporary directories (3/5)
                      ==========================================================================
                      Done.
                      ==========================================================================
                          Database maintenance (4/5)
                      ==========================================================================
                      
                      Checking for uncompressed JSONL databases... This might take a while!
                      
                      Compressing /opt/iobroker/iobroker-data/states.jsonl
                      Compressing /opt/iobroker/iobroker-data/objects.jsonl
                      Compressed 2 JSONL files. Done
                      
                      ==========================================================================
                          Checking autostart (5/5)
                      ==========================================================================
                      
                      Enabling autostart...
                      Autostart enabled!
                      
                      ==========================================================================
                      
                          Your installation was fixed successfully
                          Run iobroker start to start ioBroker again!
                      
                      ==========================================================================
                      

                      und auf dem Raspi 3 das:

                      pi@raspberrypi2:~ $ iob fix
                      
                      Your system is booting into 'graphical.target', which means that a user interfac                                                                                                                                                             e or desktop is available. Usually a server is running without a desktop to have                                                                                                                                                              more RAM available. Do you want to switch to 'multi-user.target'? (y/N)
                      library: loaded
                      Library version=2024-10-22
                      
                      ==========================================================================
                      
                          Welcome to the ioBroker installation fixer!
                          Script version: 2024-10-22
                      
                          You might need to enter your password a couple of times.
                      
                      ==========================================================================
                      
                      
                      ==========================================================================
                          Installing prerequisites (1/5)
                      ==========================================================================
                      
                      Hit:1 http://deb.debian.org/debian bookworm InRelease
                      Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB                                                                                                                                                             ]
                      Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
                      Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
                      Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease
                      Fetched 48.0 kB in 2s (21.9 kB/s)
                      Reading package lists... Done
                       Processing triggers for man-db (2.11.2-2) ...u1_arm64.deb ...nstalled.)
                      Installed distro-info
                      
                      ==========================================================================
                          Checking ioBroker user and directory permissions (2/5)
                      ==========================================================================
                      
                      Created /etc/sudoers.d/iobroker
                      Fixing directory permissions...
                      
                      ==========================================================================
                          Check and cleanup npm temporary directories (3/5)
                      ==========================================================================
                      
                      Done.
                      
                      ==========================================================================
                          Database maintenance (4/5)
                      ==========================================================================
                      
                      Checking for uncompressed JSONL databases... This might take a while!
                      
                      Compressing /opt/iobroker/iobroker-data/states.jsonl
                      Compressing /opt/iobroker/iobroker-data/objects.jsonl
                      Compressed 2 JSONL files. Done
                      
                      ==========================================================================
                          Checking autostart (5/5)
                      ==========================================================================
                      
                      Enabling autostart...
                      Autostart enabled!
                      
                      ==========================================================================
                      
                          Your installation was fixed successfully
                          Run iobroker start to start ioBroker again!
                      
                      ==========================================================================
                      

                      Der iob diag ergab beim Raspi 5

                      ======================= SUMMARY =======================
                                              v.2024-10-19
                      
                      
                       Static hostname: raspberrypi
                             Icon name: computer
                      Operating System: Debian GNU/Linux 12 (bookworm)
                                Kernel: Linux 6.6.51+rpt-rpi-2712
                          Architecture: arm64
                      
                      Installation:           native
                      Kernel:                 aarch64
                      Userland:               64 bit
                      Timezone:               Europe/Berlin (CET, +0100)
                      User-ID:                1000
                      Display-Server:         true
                      Boot Target:            graphical.target
                      
                      Pending OS-Updates:     0
                      Pending iob updates:    0
                      
                      Nodejs-Installation:
                      /usr/bin/nodejs         v20.18.0
                      /usr/bin/node           v20.18.0
                      /usr/bin/npm            10.8.2
                      /usr/bin/npx            10.8.2
                      /usr/bin/corepack       0.29.3
                      
                      Recommended versions are nodejs Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes.
                      Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes.
                      20.18.0 and npm Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes.
                      Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes.
                      10.8.2
                      nodeJS installation is correct
                      
                      MEMORY:
                                     total        used        free      shared  buff/cache   available
                      Mem:            8.4G        543M        5.9G         21M        2.1G        7.9G
                      Swap:           209M          0B        209M
                      Total:          8.7G        543M        6.2G
                      
                      Active iob-Instances:   1
                      Upgrade policy: none
                      
                      ioBroker Core:          js-controller           6.0.11
                                              admin                   7.1.5
                      
                      ioBroker Status:        Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes.
                      Server Configured backup period 7200000 is larger than the supported maximum of 35791 minutes. Defaulting to 120 minutes.
                      iobroker is not running on this host.
                      
                      
                      Objects type: jsonl
                      States  type: jsonl
                      
                      Status admin and web instance:
                        system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 7881, bind: 0.0.0.0, run as: admin
                        system.adapter.web.0                    : web                   : raspberrypi                              -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                      
                      Objects:                9676
                      States:                 7517
                      
                      Size of iob-Database:
                      
                      28M     /opt/iobroker/iobroker-data/objects.jsonl
                      1.6M    /opt/iobroker/iobroker-data/states.jsonl
                      
                      
                      Operating System is the current Debian stable version codenamed 'bookworm'!
                      
                      =================== END OF SUMMARY ====================
                      

                      und beim Raspi 3 das:

                      ======================= SUMMARY =======================
                                              v.2024-10-19
                      
                      
                       Static hostname: raspberrypi2
                             Icon name: computer
                      Operating System: Debian GNU/Linux 12 (bookworm)
                                Kernel: Linux 6.6.51+rpt-rpi-v8
                          Architecture: arm64
                      
                      Installation:           native
                      Kernel:                 aarch64
                      Userland:               64 bit
                      Timezone:               Europe/Berlin (CET, +0100)
                      User-ID:                1000
                      Display-Server:         false
                      Boot Target:            graphical.target
                      
                      Pending OS-Updates:     0
                      Pending iob updates:    0
                      
                      Nodejs-Installation:
                      /usr/bin/nodejs         v20.18.0
                      /usr/bin/node           v20.18.0
                      /usr/bin/npm            10.8.2
                      /usr/bin/npx            10.8.2
                      /usr/bin/corepack       0.29.3
                      
                      Recommended versions are nodejs 20.18.0 and npm 10.8.2
                      nodeJS installation is correct
                      
                      MEMORY:
                                     total        used        free      shared  buff/cache   available
                      Mem:            951M        221M        247M        155K        549M        729M
                      Swap:           209M        153M         56M
                      Total:          1.2G        374M        304M
                      
                      Active iob-Instances:   1
                      Upgrade policy: none
                      
                      ioBroker Core:          js-controller           6.0.11
                                              admin                   7.1.5
                      
                      ioBroker Status:        iobroker is not running on this host.
                      
                      
                      Objects type: jsonl
                      States  type: jsonl
                      
                      Status admin and web instance:
                        system.adapter.admin.0                  : admin                 : raspberrypi2                             -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                      
                      Objects:                149
                      States:                 79
                      
                      Size of iob-Database:
                      
                      9.6M    /opt/iobroker/iobroker-data/objects.jsonl
                      40K     /opt/iobroker/iobroker-data/states.jsonl
                      
                      
                      Operating System is the current Debian stable version codenamed 'bookworm'!
                      
                      =================== END OF SUMMARY ====================
                      

                      Gruß
                      Mico

                      1 Reply Last reply Reply Quote 0
                      • arteck
                        arteck Developer Most Active @haselchen last edited by

                        @haselchen ja hast ja recht.... auch wenn sich nix geändert hat..

                        M 1 Reply Last reply Reply Quote 1
                        • M
                          Mico @arteck last edited by Mico

                          so nun habe ich bei beiden Systemen ein iobroker setup custom ausgeführt beim slave mußte ich allerdings den Stecker danach ziehen und neu starten und jetzt meldet er sich am ersten System an.

                          Danke für Eure Hilfestellungen

                          Gruß
                          Mico

                          haselchen 1 Reply Last reply Reply Quote 0
                          • haselchen
                            haselchen Most Active @Mico last edited by

                            @mico

                            Nie nie nie niemals den Stecker ziehen .
                            Das ist wirklich das aller aller allerletzte Mittel !
                            Entweder sudo reboot oder sudo shutdown.
                            Zeig mal bitte vom Slave iob diag
                            um zu sehen , ob Dein Dateisystem noch ordnungsgemäß läuft nach dem Steckerziehen.

                            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

                            654
                            Online

                            31.6k
                            Users

                            79.5k
                            Topics

                            1.3m
                            Posts

                            5
                            13
                            311
                            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