Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. master / slave fehler

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    master / slave fehler

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

      @rasen1992

      iobroker fix
      
      R 1 Reply Last reply Reply Quote 0
      • R
        rasen1992 @Thomas Braun last edited by rasen1992

        
        pi@raspberrypi:~ $ iobroker fix
        library: loaded
        Library version=2020-06-12
        
        ==========================================================================
        
            Welcome to the ioBroker installation fixer!
            Script version: 2020-06-15
        
            You might need to enter your password a couple of times.
        
        ==========================================================================
        
        
        ==========================================================================
            Installing prerequisites (1/3)
        ==========================================================================
        
        Hit:1 http://archive.raspberrypi.org/debian buster InRelease
        Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
        Hit:3 https://deb.nodesource.com/node_12.x buster InRelease
        Hit:4 http://phoscon.de/apt/deconz buster InRelease
        Reading package lists... Done
        N: Ignoring file 'deconz.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
        Installed gcc-c++
        
        ==========================================================================
            Checking ioBroker user and directory permissions (2/3)
        ==========================================================================
        
        Created /etc/sudoers.d/iobroker
        Fixing directory permissions...
        
        ==========================================================================
            Checking autostart (3/3)
        ==========================================================================
        
        Enabling autostart...
        Autostart enabled!
        
        ==========================================================================
        
            Your installation was fixed successfully
            Run iobroker start to start ioBroker again!
        
        ==========================================================================
        
        pi@raspberrypi:~ $ iobroker start
        pi@raspberrypi:~ $ iobroker status
        iobroker is not running on this host.
        
        No iobroker host is running.
        
        Objects type: file
        States  type: file
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @rasen1992 last edited by

          @rasen1992 sagte in master / slave fehler:

          'deconz.listsudo'

          Da hast du auch einen Fehler in den sourcen drin...

          iobroker host this
          
          R 1 Reply Last reply Reply Quote 0
          • R
            rasen1992 @Thomas Braun last edited by

            @Thomas-Braun
            was bedeutet der Fehler ??

            pi@raspberrypi:~ $ iobroker host this
            A host with the name "raspberrypi" already exists!
            
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @rasen1992 last edited by

              @rasen1992
              Das heißt nur, dass die Datei nicht eingelesen werden wird. Da hast du offenbar eine Doublette drin. deconz.list dürfte es geben.

              iobroker start all
              
              R 1 Reply Last reply Reply Quote 0
              • R
                rasen1992 @Thomas Braun last edited by

                @Thomas-Braun

                pi@raspberrypi:~ $ iobroker start all
                The adapter "discovery.0" was started.
                The adapter "firetv.0" was started.
                The adapter "icons-icons8.0" was started.
                The adapter "icons-mfd-svg.0" was started.
                The adapter "icons-open-icon-library-png.0" was started.
                The adapter "icons-ultimate-png.0" was started.
                The adapter "info.0" was started.
                The adapter "material.0" was started.
                The adapter "node-red.0" was started.
                The adapter "ping.0" was started.
                The adapter "vis-colorpicker.0" was started.
                The adapter "vis-jqui-mfd.0" was started.
                The adapter "vis-materialdesign.0" was started.
                The adapter "vis-timeandweather.0" was started.
                The adapter "zigbee.0" was started.
                
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @rasen1992 last edited by

                  @rasen1992

                  iobroker status
                  
                  R 1 Reply Last reply Reply Quote 0
                  • R
                    rasen1992 @Thomas Braun last edited by

                    @Thomas-Braun

                    
                    pi@raspberrypi:~ $ iobroker status
                    iobroker is not running on this host.
                    
                    No iobroker host is running.
                    
                    Objects type: file
                    States  type: file
                    pi@raspberrypi:~ $
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @rasen1992 last edited by Thomas Braun

                      @rasen1992

                      sudo apt update
                      sudo apt dist-upgrade
                      sudo reboot
                      
                      R 1 Reply Last reply Reply Quote 0
                      • R
                        rasen1992 @Thomas Braun last edited by rasen1992

                        @Thomas-Braun

                        pi@raspberrypi:~ $ sudo apt update
                        Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                        Hit:2 https://deb.nodesource.com/node_12.x buster InRelease
                        Hit:3 http://phoscon.de/apt/deconz buster InRelease
                        Hit:4 http://archive.raspberrypi.org/debian buster InRelease
                        Reading package lists... Done
                        Building dependency tree
                        Reading state information... Done
                        All packages are up to date.
                        N: Ignoring file 'deconz.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
                        pi@raspberrypi:~ $ sudo apt dist-upgrade
                        Reading package lists... Done
                        Building dependency tree
                        Reading state information... Done
                        Calculating upgrade... Done
                        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                        N: Ignoring file 'deconz.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
                        
                        

                        kann ich irgendwie den multihost wieder abschalten ?

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @rasen1992 last edited by

                          @rasen1992 sagte in master / slave fehler:

                          abschalten ?

                          iobroker multihost disable
                          
                          R 1 Reply Last reply Reply Quote 0
                          • R
                            rasen1992 @Thomas Braun last edited by

                            @Thomas-Braun
                            oke ja hat auch nichts gebracht...

                            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
                            
                            beim Slave
                            Type of objects DB [file, couch, redis], default [file]: ENTER
                            Host of objects DB(file), default[127.0.0.1]: <IP ADRESSE> vom Hauptsystem
                            Port of objects DB(file), default[9001]: ENTER
                            Type of states DB [file, redis], default [file]: ENTER
                            Host of states DB (file), default[cubie]:<IP ADRESSE> vom Hauptsystem
                            Port of states DB (file), default[9000]: ENTER
                            Host name of this machine [hostname]: ENTER
                            

                            nur wegen dem alles geschrottet ? ...

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @rasen1992 last edited by Thomas Braun

                              @rasen1992
                              Ich blick immer noch nicht ganz durch was du da veranstaltet hast.
                              Die Einstellung

                              Host of objects DB(file), default[127.0.0.1]: <0.0.0.0>
                              

                              ist jedenfalls falsch.

                              default[cubie]
                              

                              sieht auch falsch aus.

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                rasen1992 @Thomas Braun last edited by

                                @Thomas-Braun

                                also ich habe einen 2. raspberrypi aufgesetzt (beide hatten den gleichen Namen) und habe diese Anleitung befolgt
                                https://www.iobroker.net/docu/index-24.htm?page_id=3068&lang=de

                                und ja dann wars vorbei

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @rasen1992 last edited by

                                  @rasen1992

                                  Du musst auch Anleitungen lesen...

                                  Installation
                                  Wichtig: Die verschiedenenen Hosts müssen unbedingt eindeutige Hostnamen besitzen.

                                  Und dann auch die aktuelle Anleitung hernehmen:

                                  https://www.iobroker.net/#de/documentation/config/multihost.md

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    rasen1992 @Thomas Braun last edited by

                                    @Thomas-Braun ja leider übersehen... also am besten in die Tonne oder ? ...

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @rasen1992 last edited by

                                      @rasen1992
                                      Keine Ahnung. Ich geh jetzt zwar nicht in die Tonne, aber in's Bett.

                                      R 1 Reply Last reply Reply Quote 1
                                      • R
                                        rasen1992 @Thomas Braun last edited by rasen1992

                                        @Thomas-Braun
                                        danke trotzdem für die Hilfe

                                        Kann geclosed werden, SD CARD FORMATTER hat das Problem gelöst.

                                        UncleSam 1 Reply Last reply Reply Quote 0
                                        • UncleSam
                                          UncleSam Developer @rasen1992 last edited by

                                          @rasen1992 sagte in master / slave fehler:

                                          Kann geclosed werden

                                          Schreib doch bitte einfach "[gelöst]" vor oder hinter den Titel des Themas, danke 🙂

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            rasen1992 @UncleSam last edited by rasen1992

                                            Hallo,

                                            muss leider nochmal das Thema aufgreifen, ich habe mir jetzt wieder einen Host eingerichtet.
                                            Wenn ich die Admin seite von meinem Master aufrufe wird unter Host mein Slave angezeigt, der ist auch Grün. Sollte soweit dann passen, aber wenn ich mir die installierten Adapter von meinem Slave unter Adapter anzeigen lassen möchte, wird mir nichts angezeigt.

                                            Im Log wird mir folgendes angezeigt

                                            host.pislave	2020-10-22 05:29:36.340	warn	does not start any instances on this host
                                            host.pislave	2020-10-22 05:29:36.290	info	35 instances found
                                            host.pislave	2020-10-22 05:28:53.286	info	connected to Objects and States
                                            host.pislave	2020-10-22 05:28:52.713	info	ip addresses: 192.168.0.66 fe80::cd13:c8bf:618:8b65
                                            host.pislave	2020-10-22 05:28:52.710	info	hostname: pislave, node: v12.19.0
                                            host.pislave	2020-10-22 05:28:52.709	info	Copyright (c) 2014-2020 bluefox, 2014 hobbyquaker
                                            host.pislave	2020-10-22 05:28:52.700	info	iobroker.js-controller version 3.1.6 js-controller starting
                                            host.pislave	2020-10-22 05:28:30.821	info	terminated
                                            host.pislave	2020-10-22 05:28:27.401	info	received SIGTERM
                                            host.pislave	2020-10-22 05:15:11.082	warn	does not start any instances on this host
                                            host.pislave	2020-10-22 05:15:11.040	info	35 instances found
                                            host.pislave	2020-10-22 05:14:24.902	info	connected to Objects and States
                                            host.pislave	2020-10-22 05:14:21.713	info	ip addresses: 192.168.0.66 fe80::cd13:c8bf:618:8b65
                                            host.pislave	2020-10-22 05:14:21.710	info	hostname: pislave, node: v12.19.0
                                            host.pislave	2020-10-22 05:14:21.709	info	Copyright (c) 2014-2020 bluefox, 2014 hobbyquaker
                                            host.pislave	2020-10-22 05:14:21.701	info	iobroker.js-controller version 3.1.6 js-controller starting
                                            host.pislave	2020-10-22 05:14:01.295	error	uncaught exception: Connection is closed.
                                            host.pislave	2020-10-22 05:14:01.219	info	received SIGTERM
                                            host.pislave	2020-10-22 05:13:58.140	error	connect ECONNREFUSED 192.168.0.88:9001
                                            host.pislave	2020-10-22 05:13:54.570	error	connect ETIMEDOUT
                                            host.pislave	2020-10-22 05:13:48.561	error	connect ETIMEDOUT
                                            host.pislave	2020-10-22 05:13:39.564	error	connect ETIMEDOUT
                                            host.pislave	2020-10-22 05:13:36.553	error	connect ETIMEDOUT
                                            

                                            Wenn ich per SSH mich mit dem Slave verbinde und
                                            iobroker list adapters eingebe werden mir auch nur die Adapter vom Master angezeigt...

                                            evtl. weil ich nicht redis eingestellt habe bei setup custom ? bekomme dann nämlich folgenden Fehler

                                            
                                            ^[[Api@raspberrypi:~ $ iobroker setup custom
                                            Current configuration:
                                            - Objects database:
                                              - Type: file
                                              - Host/Unix Socket: 0.0.0.0
                                              - Port: 9001
                                            - States database:
                                              - Type: file
                                              - Host/Unix Socket: 0.0.0.0
                                              - Port: 9000
                                            - Data Directory: ../../iobroker-data/
                                            
                                            Type of objects DB [(f)ile, (r)edis], default [file]: f
                                            Host / Unix Socket of objects DB(file), default[0.0.0.0]:
                                            Port of objects DB(file), default[9001]:
                                            Type of states DB [(f)file, (r)edis], default [file]: r
                                            
                                            When States are stored in a Redis database please make sure to configure Redis
                                            persistence to make sure a Redis problem will not cause data loss!
                                            
                                            Host / Unix Socket of states DB (redis), default[0.0.0.0]: 0.0.0.0
                                            Port of states DB (redis), default[6379]:
                                            Host name of this machine [raspberrypi]:
                                            This host appears to be a Master or a Single host system. Is this correct? [Y/n]: y
                                            
                                            Do you want to migrate objects and states from "file/file" to "file/redis" [y/N]: y
                                            Connecting to previous DB "file"...
                                            Creating backup ...
                                            This can take some time ... please be patient!
                                            host.raspberrypi 3456 states saved
                                            host.raspberrypi 4112 objects saved
                                            Backup created: /opt/iobroker/backups/2020_10_22-06_23_18_backupiobroker-migration.tar.gz
                                            updating conf/iobroker.json
                                            
                                            Connecting to new DB "file" ...
                                            No connection to states 0.0.0.0:6379[redis]
                                            
                                            New Database could not be connected. Please check your settings. No settings have been changed.
                                            restoring conf/iobroker.json
                                            
                                            

                                            Danke schonmal

                                            Thomas Braun UncleSam 2 Replies 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

                                            520
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            slave
                                            5
                                            79
                                            3453
                                            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