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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Gelöst Multihost

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

      @ludino:

      Vielen Dank,

      leider wollte mein system danach nicht mehr starten.

      Jetzt habe ich ein Problem und zwar hatte ich mir ein den Ordner iobroker-data/files gespeichert und das system neu gemacht. Bekomme aber leider meine alten daten auf dsa neue System nicht mehr zurück geschrieben.

      Was ich gemacht habe, ich habe den Files ordner zurück kopiert in der Hoffnung das alles so wie gehabt da ist. leider nein

      Hast du da eine Idee?

      Gruß `

      Zuück kopiert?? Das wird so nicht gehen. Dafür gibt es backup und restore.

      Hast du ein Image oder sowas?

      Weil einfach nur Files zurück kopieren ist ein mutiges unterfangen.

      1 Reply Last reply Reply Quote 0
      • L
        ludino last edited by

        Also ich mache ein Automatisches Backup, was leider nach 2 Monaten leider nicht mehr funtkioniert hat (habe gestern gesehen) letztes backup dezemvber 2017 ;-(

        Als der debian rechner nicht mehr hochgefahren ist wegen einer defekten mmc <–-- Heute morgen rausgefunden

        Habe ich gehofft wenn ich über SSH den ordner iobroker-data/files packe und speicher dann das system neu einspiele auf eine neue mmc, dann den ordner wieder zurückspiele, das ich zumindest meine Scripte und Vis daten haben. Vis daten sind so wieder gekommen. Ich suche njetzt noch eine Möglichkeit meine Scripte zurückzubekommen.

        Gruß

        Ludino

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

          @ludino:

          root@iobroker:/# iobroker multihost enable

          /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupMultihost.js:183

          process.stdout.write('\033[2K\033[200D' + query + new Array(rl.line.length + 1).join('*'));

          ^^

          SyntaxError: Octal literals are not allowed in strict mode.

          at createScript (vm.js:56:10)

          at Object.runInThisContext (vm.js:97:10)

          at Module._compile (module.js:549:28)

          at Object.Module._extensions..js (module.js:586:10)

          at Module.load (module.js:494:32)

          at tryModuleLoad (module.js:453:12)

          at Function.Module._load (module.js:445:3)

          at Module.require (module.js:504:17)

          at require (internal/module.js:20:19)

          at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2670:41

          da ich eigentlich von linux keine Ahnung habe hat einer eine Idee, wie ich es ans laufen bringen kann=

          Gruß `

          Fixed auf GitHub, kommt dann in die 1.4.1 denke ich

          1 Reply Last reply Reply Quote 0
          • I
            iLOVEioBROKER last edited by

            @apollon77:

            @ludino:

            root@iobroker:/# iobroker multihost enable

            /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupMultihost.js:183

            process.stdout.write('\033[2K\033[200D' + query + new Array(rl.line.length + 1).join('*'));

            ^^

            SyntaxError: Octal literals are not allowed in strict mode.

            at createScript (vm.js:56:10)

            at Object.runInThisContext (vm.js:97:10)

            at Module._compile (module.js:549:28)

            at Object.Module._extensions..js (module.js:586:10)

            at Module.load (module.js:494:32)

            at tryModuleLoad (module.js:453:12)

            at Function.Module._load (module.js:445:3)

            at Module.require (module.js:504:17)

            at require (internal/module.js:20:19)

            at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2670:41

            da ich eigentlich von linux keine Ahnung habe hat einer eine Idee, wie ich es ans laufen bringen kann=

            Gruß `

            Fixed auf GitHub, kommt dann in die 1.4.1 denke ich `

            Hallo,

            hab leider das gleiche Problem. Gibt es hier einen Workaround oder muss ich warten bis 1.4.1 raus kommt?

            Danke schon mal.

            VG

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

              Die 1.4.2 ist schon lange im latest und kommt bald ins stable. Also latest und installieren.

              Gesendet vom Handy …

              1 Reply Last reply Reply Quote 0
              • C
                Chris76 last edited by

                Auch ich wollte jetzt einen Raspberry 3b+ als CCU2 ersatz, mit ZigBee USB Adapter und als BLE Host als Multihost betreiben.

                Leider bekomme ist es nicht hin das der Raspberry sich auf dem Host als Slave anmeldet.

                Ich habe alle Möglichkeiten wie http://www.iobroker.net/docu/?page_id=3068&lang=de beschrieben ausprobiert.

                Sowohl Host alsauch Slave (fertiges Image von http://www.iobroker.net/docu/?page_id=2563&lang=de (23.04.2018)

                sollten auf js-controller 1.4.2 laufen.

                Netzwerktechnisch kann ich den jeweils anderen anpingen.

                Beide Systeme sollten volles Update/Upgrade haben.

                Was kann ich noch an Logs anfügen?

                Weiß jemand Rat?

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

                  @Chris76:

                  Beide Systeme sollten volles Update/Upgrade haben. `
                  Was sagt (jeweils Host /Slave) ?

                  node -v
                  nodejs -v
                  npm -v
                  
                  1 Reply Last reply Reply Quote 0
                  • C
                    Chris76 last edited by

                    Hallo Paul, danke für deine Zeit:

                    Host:

                    root@iobroker:~# node -v
                    v6.13.1
                    root@iobroker:~# nodejs -v
                    v6.13.1
                    root@iobroker:~# npm -v
                    3.10.10
                    
                    

                    Slave:

                    pi@IOBROKER1:/opt/iobroker $ node -v
                    v8.11.3
                    pi@IOBROKER1:/opt/iobroker $ nodejs -v
                    v8.11.3
                    pi@IOBROKER1:/opt/iobroker $ npm -v
                    5.6.0
                    
                    

                    Okay. Soviel dazu 🙂

                    Welche Version ist denn "besser"? Ich weis immer nie welche zueinander passen.

                    Ich gehe auf beiden Systemen nach https://forum.iobroker.net/viewtopic.php?t=1702 Schema weiter vor?

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

                      Host ist in Ordnung, aber bitte <u>nicht</u> per apt-get update && apt-get upgrade aktualisieren, denn dann passiert Schlimmes.
                      @Chris76:

                      pi@IOBROKER1:/opt/iobroker $ npm -v 
                      5.6.0
                      ```` `  
                      

                      Die NPM-Version auf dem Slave ist böse. Bitte downgrade (als User root, sonst mit sudo davor)

                      npm install -g npm@4
                      
                      1 Reply Last reply Reply Quote 0
                      • C
                        Chris76 last edited by

                        Na das läuft ja wieder bei mir 😞

                        Wie gesagt, ist das fertige Raspberry Image von der offiziellen Downloadseite.

                        pi@IOBROKER1:/opt/iobroker $ sudo npm install -g npm@4
                        npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/npm failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443
                        npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
                        npm ERR! code EAI_AGAIN
                        npm ERR! errno EAI_AGAIN
                        npm ERR! request to https://registry.npmjs.org/npm/-/npm-4.6.1.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /root/.npm/_logs/2018-07-28T09_20_32_065Z-debug.log
                        
                        
                        0 info it worked if it ends with ok
                        1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'npm@4' ]
                        2 info using npm@5.6.0
                        3 info using node@v8.11.3
                        4 verbose npm-session 4fb9e04b9984f859
                        5 silly install loadCurrentTree
                        6 silly install readGlobalPackageData
                        7 warn registry Unexpected warning for https://registry.npmjs.org/: Miscellaneo$
                        8 warn registry Using stale package data from https://registry.npmjs.org/ due t$
                        9 http fetch GET 200 https://registry.npmjs.org/npm 20276ms (from cache)
                        10 silly pacote range manifest for npm@4 fetched in 20522ms
                        11 silly install loadIdealTree
                        12 silly install cloneCurrentTreeToIdealTree
                        13 silly install loadShrinkwrap
                        14 silly install loadAllDepsIntoIdealTree
                        15 silly resolveWithNewModule npm@4.6.1 checking installable status
                        16 silly pacote trying https://registry.npmjs.org/npm/-/npm-4.6.1.tgz by hash: $
                        17 silly pacote data for sha1-+Osa0A3FilUUNjtBylNCgX8L1kY= not present. Using m$
                        18 verbose type system
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 last edited by

                          Wurde npm 4.6.1 nicht installiert ?

                          npm -v
                          
                          1 Reply Last reply Reply Quote 0
                          • C
                            Chris76 last edited by

                            Nö: 5.6.0 mit obrigen Fehlermeldungen. Muss ich vorher deinstallieren?

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

                              @Chris76:

                              5.6.0 mit obrigen Fehlermeldungen. Muss ich vorher deinstallieren? `
                              Nein, mit NPM 5.6.0 sollte ein Downgrade auf Version 4.6.1 funktionieren. Vielleicht später noch einmal versuchen ?

                              1 Reply Last reply Reply Quote 0
                              • C
                                Chris76 last edited by

                                Das später versuchen machte mit skeptisch. Okay. War ein DNS Problem auf dem Slave.

                                Downgrade hat funktionier. Reboot.

                                Anschließend wieder

                                sudo iobroker multihost browse
                                1 |       192.168.5.151 |  host |       192.168.5.151 | "authentication required"
                                pi@IOBROKER1:~ $ sudo iobroker multihost connect
                                1 |       192.168.5.151 |  host |       192.168.5.151 | "authentication required"
                                Please select host [1]: 1
                                Enter secret phrase for connection: ********
                                
                                Config ok. Please restart ioBroker: "iobroker restart"
                                pi@IOBROKER1:~ $ sudo iobroker restart
                                Stopping iobroker controller daemon...
                                iobroker controller daemon stopped.
                                Starting iobroker controller daemon...
                                iobroker controller daemon started. PID: 1472
                                
                                

                                Aber leider erscheint der Slave nach wie vor nicht auf dem Host.

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

                                  @Chris76:

                                  Downgrade hat funktionier. `
                                  Das ist die gute Nachricht.
                                  @Chris76:

                                  Aber leider erscheint der Slave nach wie vor nicht auf dem Host. `
                                  An der Stelle kann ich nicht weiter helfen, denn ich betreibe kein Multihost.

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Chris76 last edited by

                                    Danke Dir trotzdem für die Hilfe.

                                    Hab gerade in https://forum.iobroker.net/viewtopic.php?f=17&t=7650&sid=59a39d18bb0f5860f5d650b42f103bf1&start=20 noch was gefunden:

                                    Master iobroker.json

                                    {
                                      "system": {
                                        "memoryLimitMB": 0,
                                        "hostname": ""
                                      },
                                      "network": {
                                        "IPv4": true,
                                        "IPv6": true,
                                        "bindAddress": null,
                                        "useSystemNpm": true
                                      },
                                      "objects": {
                                        "type": "file",
                                        "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                                        "host": "0.0.0.0",
                                        "port": 9001,
                                        "user": "",
                                        "pass": "",
                                        "noFileCache": false,
                                        "connectTimeout": 2000
                                      },
                                      "states": {
                                        "type": "file",
                                        "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                                        "host": "0.0.0.0",
                                        "port": 9000,
                                        "maxQueue": 1000,
                                        "options": {
                                          "auth_pass": null,
                                          "retry_max_delay": 15000
                                        }
                                      },
                                      "log": {
                                        "level": "info",
                                        "maxDays": 7,
                                        "noStdout": true,
                                        "transport": {
                                          "file1": {
                                            "type": "file",
                                            "enabled": true,
                                            "filename": "log/iobroker",
                                            "fileext": ".log",
                                            "maxsize": null,
                                            "maxFiles": null
                                          },
                                          "syslog1": {
                                            "type": "syslog",
                                            "enabled": false,
                                            "host": "localhost",
                                            "host_comment": "The host running syslogd, defaults to localhost.",
                                            "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                                            "protocol": "udp4",
                                            "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                                            "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                                            "facility_comment": "Syslog facility to use (Default: local0).",
                                            "localhost": "iobroker",
                                            "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
                                            "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
                                            "app_name_comment": "The name of the application (Default: process.title).",
                                            "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                                          }
                                        }
                                      },
                                      "dataDirComment": "Always relative to iobroker.js-controller/",
                                      "dataDir": "../../iobroker-data/",
                                      "multihostService": {
                                        "enabled": true,
                                        "secure": true,
                                        "password": "HIERSTEHTEINPW"
                                      }
                                    
                                    
                                    node -v
                                    v6.13.1
                                    root@iobroker:/opt/iobroker/iobroker-data# nodejs -v
                                    v6.13.1
                                    root@iobroker:/opt/iobroker/iobroker-data# npm -v
                                    4.6.1
                                    
                                    

                                    Slave

                                    {
                                      "system": {
                                        "memoryLimitMB": 0,
                                        "hostname": ""
                                      },
                                      "multihostService": {
                                        "enabled": false,
                                        "secure": true
                                      },
                                      "network": {
                                        "IPv4": true,
                                        "IPv6": true,
                                        "bindAddress": null,
                                        "useSystemNpm": true
                                      },
                                      "objects": {
                                        "type": "file",
                                        "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                                        "host": "192.168.5.151",
                                        "port": 9001,
                                        "user": "",
                                        "pass": "",
                                        "noFileCache": false,
                                        "connectTimeout": 2000
                                      },
                                      "states": {
                                        "type": "file",
                                        "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                                        "host": "192.168.5.151",
                                        "port": 9000,
                                        "maxQueue": 1000,
                                        "options": {
                                          "auth_pass": null,
                                          "retry_max_delay": 15000
                                        }
                                      },
                                      "log": {
                                        "level": "info",
                                        "maxDays": 7,
                                        "noStdout": true,
                                        "transport": {
                                          "file1": {
                                            "type": "file",
                                            "enabled": true,
                                            "filename": "log/iobroker",
                                            "fileext": ".log",
                                            "maxsize": null,
                                            "maxFiles": null
                                          },
                                          "syslog1": {
                                            "type": "syslog",
                                            "enabled": false,
                                            "host": "localhost",
                                            "host_comment": "The host running syslogd, defaults to localhost.",
                                            "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                                            "protocol": "udp4",
                                            "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                                            "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                                            "facility_comment": "Syslog facility to use (Default: local0).",
                                            "localhost": "iobroker",
                                            "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
                                            "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
                                            "app_name_comment": "The name of the application (Default: process.title).",
                                            "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                                          }
                                        }
                                      },
                                      "dataDirComment": "Always relative to iobroker.js-controller/",
                                      "dataDir": "../../iobroker-data/"
                                    
                                    
                                    node -v
                                    v8.11.3
                                    root@IOBROKER1:/home/pi# nodejs -v
                                    v8.11.3
                                    root@IOBROKER1:/home/pi# npm -v
                                    4.6.1
                                    
                                    

                                    Aus lauter Unwissendheit(?) hab ich noch ein bisschen mit den Node-Versionen rumgespielt.

                                    sudo npm cache clean -f
                                    sudo npm install -g n
                                    sudo n 6.13.1
                                    
                                    

                                    Und jetzt GEHT es.

                                    Stand Slave:

                                    node -v
                                    v6.13.1
                                    pi@IOBROKER1:~ $ nodejs -v
                                    v8.11.3
                                    pi@IOBROKER1:~ $ npm -v
                                    3.10.10
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators last edited by

                                      Also Problem gelöst??

                                      Gruß

                                      rainer

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Chris76 last edited by

                                        Jein 🙂 Jetzt werden Zigbee und BLE nichtmehr grün.

                                        Aber Multihost läuft

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

                                          Hast du nach ändern der Main node Version nochmal das ./reinstall.sh aufgerufen?

                                          Ich sehe aber gerade:

                                          node -v
                                          v6.13.1
                                          pi@IOBROKER1:~ $ nodejs -v
                                          v8.11.3
                                          pi@IOBROKER1:~ $ npm -v
                                          3.10.10
                                          

                                          du hast ZWEI verschiedene node-installationen drauf.

                                          Das geht schief!!

                                          Gruß

                                          Rainer

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Chris76 last edited by

                                            Reinstall läuft. (nach chmod +x reinstall.sh)

                                            Und wie bekomm ich die JS runter?

                                            Aalso reinstall ist fertig.

                                            Aber so richtig runf läuft das leider nicht. Hatte BLE und Zigbee nochmal auf dem Master deinstallier und anschließend am Master für den Slave installiert (IOBROKER1 bei mir)

                                            Nachdem war die Instanz trotzdem auf dem Master. Also hab ich die umgeklickt auf Slave.

                                            Aber beide werden einfach nicht grün.

                                            Ähhhhh–- Das muss ich nicht verstehen. Während ich jetzt versucht habe die nodejs auch auf die 6.13.1 downzugraden ging aufeinmal die grüne LED vom Zigbee Stick an.

                                            Stand jetzt:

                                            `node -v
                                            v6.13.1
                                            pi@IOBROKER1:~ $ nodejs -v
                                            -bash: /usr/bin/nodejs: Datei oder Verzeichnis nicht gefunden
                                            pi@IOBROKER1:~ $ npm -v
                                            3.10.10
                                            
                                            Und Multihost geht auch noch.`
                                              [3825_image_4.png](/assets/uploads/files/3825_image_4.png)  
                                            
                                            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

                                            943
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            23
                                            2767
                                            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