Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [HowTo] ioBroker unter Docker auf Synology DiskStation

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [HowTo] ioBroker unter Docker auf Synology DiskStation

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

      @Loki:

      Moin,

      War klar das dies wieder nicht bei mir funktioniert, Docker gelesen, eigentlich bin ich da schon wieder bedient.

      A sieht das bei mir alles anders aus auf meiner DSM 5.2

      B findet ich unter IP:8081 natürlich auch wieder nix.

      Zu A "Erweiterte Einstellungen" gibt es bei mir nicht auch "automatischer neustart" nicht, das gleiche Netzwerk wie docker host fehlt ebenfalls.

      Mir steht dort nur Containername, Port Einstellung zur Verfügung, sowie "ports automatisch zuordnen", Ressourcen Beschränkung und Desktop Verknüpfung erstellen.

      jemand ne Idee ? ` Hallo Loki,

      nicht gleich aufgeben.Ich kenne zwar deine Vorgeschichte nicht, bin aber dennoch der Meinung dass der Container auch auf einer alten DSM- bzw. Docker-Version laufen sollte.

      Da ich die alte Version und deren Einstellungen nicht kenne kann ich aus dem Stand leider keine Hinweise geben. Du kannst aber gerne ein paar Screenshots posten, dann Kamm ich vielleicht ein paar Tipps zur Konfiguration geben.

      MfG,

      Andre

      Gesendet von meinem Smartphone mit Tapatalk

      1 Reply Last reply Reply Quote 0
      • andre
        andre Developer last edited by

        @dslraser:

        Nur zur Info,

        bei mir hatte Docker heute (und auf meiner zweiten Syno irgendwann vor einigen Stunden/Tagen-habe leider das Log gelöscht) wieder ein Update.

        Scheint aber alles zu laufen. Ich habe nur auf die Synology drauf geschaut weil iobroker irgendwie hing und habe das Update gesehen und gemacht, danach lief wieder alles….. ` Kann ich bestätigen. Habe das Docker-Update vor ner guten Stunde eingespielt. Soweit ist alles Grün und ohne Komplikationen gestartet.

        MfG,

        André

        Gesendet von meinem Smartphone mit Tapatalk

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

          @andre:

          Hallo Loki,

          nicht gleich aufgeben.Ich kenne zwar deine Vorgeschichte nicht, bin aber dennoch der Meinung dass der Container auch auf einer alten DSM- bzw. Docker-Version laufen sollte.

          Da ich die alte Version und deren Einstellungen nicht kenne kann ich aus dem Stand leider keine Hinweise geben. Du kannst aber gerne ein paar Screenshots posten, dann Kamm ich vielleicht ein paar Tipps zur Konfiguration geben.

          MfG,

          Andre

          Gesendet von meinem Smartphone mit Tapatalk `

          Hallo Andre

          ich musste die ports selbst eintragen dann läuft es. Aufgegeben haben ich allerdings trotzdem, ist definitiv nicht das richtige für meine zwecke.

          Eigentlich wollte ich nur g-homa Steckdosen damit über alexa steuern sowie dash buttons als schalter für hue lampen.

          Ergebnis nach 2 stunden keins, versuchte erstmal eine hue Lampe über iobroker ein bzw aus zuschalten, keine sinnvolle Anleitung gefunden wie das script dafür aussehen muss funktioniert hat mein gebastel bisher nicht. Für nerds und geeks die sonst nichts mit ihrer zeit anzufangen wissen sicher ganz gut, jedenfalls viel zu spielen und basteln, für mich als normaler Anwender allerdings nicht.

          Jetzt darf ich mir morgen erstmal vernünftige smart Steckdosen kaufen sonst bleibt mein Weichnachtsbaum noch aus.

          Schönen Abend noch

          Loki

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

            OT on
            @Loki:

            für mich als normaler Anwender allerdings nicht. `
            Was erwartest du als normaler Anfänger?

            Diese Frage ist ganz ernst gemeint!

            Mal abgesehen von den exotischen Kombinationen interessiert es uns wirklich wie die Erwartungshaltung bei Einsteigern ist.

            Ob das dann so realisierbar ist wäre dann ein anderes Thema.

            Gruß Rainer

            1 Reply Last reply Reply Quote 0
            • T
              Telefisch last edited by

              Hallo Andre,

              habe das Update gemacht.

              Jetzt habe ich Probleme mit den Homekit-Adapter, der meckert in den Logs:

              host.iobroker	2017-12-21 13:25:40.606	error	instance system.adapter.yahka.0 terminated with code 0 (OK)
              
              

              Du hattest weiter vorn geschrieben dass der Avahi Dämon laufen muss.

              Das tut er nicht mehr.

              Vor dem Update hat Homekit eigentlich tadellos funtioniert.

              Und Zwave lässt sich mit folgenden Meldungen noch immer nicht installieren.

              Diesen Hinweis aus Deinem Tutorial habe ich ausgeführt:
              ` > cd /opt/iobroker

              pkill io

              iobroker host this (bei multihostsystemen: iobroker host [hostname der ds])

              node node_modules/iobroker.js-controller/controller.js >/opt/scripts/docker_iobroker_log.txt 2>&1 & `

              Aber dennoch das Ergebnis:

              ! ````
              $ ./iobroker add zwave
              npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)
              sudo: Hostname iobroker kann nicht aufgelöst werdensudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
              sudo: pam_open_session: Systemfehler
              sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
              ! /opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:15 if (!suppressException) throw e;
              ^
              ! Error: Command failed: sudo apt-get install libudev-dev -y
              sudo: Hostname iobroker kann nicht aufgelöst werden
              sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
              sudo: pam_open_session: Systemfehler
              sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
              ! at checkExecSyncError (child_process.js:473:13)
              at Object.execSync (child_process.js:513:13)
              at doScript (/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:12:15)
              at Object. <anonymous>(/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:25:7)
              at Module._compile (module.js:570:32)
              at Object.Module._extensions..js (module.js:579:10)
              at Module.load (module.js:487:32)
              at tryModuleLoad (module.js:446:12)
              at Function.Module._load (module.js:438:3)
              at Module.runMain (module.js:604:10)
              ! npm ERR! Linux 3.10.102
              npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.zwave" "--unsafe-perm" "--production" "--prefix" "/opt/iobroker"npm ERR!
              node v6.12.2npm ERR! npm v3.10.10
              npm ERR! code ELIFECYCLE
              ! npm ERR! iobroker.zwave@0.9.0 preinstall: node lib/preinstall.js
              npm ERR! Exit status 1
              npm ERR!
              npm ERR! Failed at the iobroker.zwave@0.9.0 preinstall script 'node lib/preinstall.js'.
              npm ERR! Make sure you have the latest version of node.js and npm installed.
              npm ERR! If you do, this is most likely a problem with the iobroker.zwave package,
              npm ERR! not with npm itself.
              npm ERR! Tell the author that this fails on your system:
              npm ERR! node lib/preinstall.js
              npm ERR! You can get information on how to open an issue for this project with:
              npm ERR! npm bugs iobroker.zwave
              npm ERR! Or if that isn't available, you can get their info via:
              npm ERR! npm owner ls iobroker.zwave
              npm ERR! There is likely additional logging output above.
              ! npm ERR! Please include the following file with any support request:npm ERR! /opt/iobroker/npm-debug.log
              ! host.iobroker install adapter zwave
              npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)</anonymous>

              
              Modbus geht wieder, hier war die Ursache sowas von dämlich…
              
              Ich habe vor einigen Tagen einen uralten Drucker wieder aufgestellt aber noch nicht in Betrieb genommen.
              
              Der hatte die gleiche IP-Adresse wie meine DS.
              
              Dass sowas dann zu so undefinierbarem Verhalten führt ist auch verständlich.
              
              Hoffe das war es wirklich :oops:
              1 Reply Last reply Reply Quote 0
              • T
                Telefisch last edited by

                Grade nochmal nen frisches Image installiert.

                Diese Meldungen spuckt der Yahka aus:

                host.iobroker	2017-12-22 09:07:44.509	error	instance system.adapter.yahka.0 terminated with code 0 (OK)
                yahka.0	2017-12-22 09:07:44.345	info	terminating
                yahka.0	2017-12-22 09:07:44.314	info	cleaned everything up...
                yahka.0	2017-12-22 09:07:44.313	error	at EventedHTTPServer.emit (events.js:188:7)
                yahka.0	2017-12-22 09:07:44.313	error	at emitOne (events.js:96:13)
                yahka.0	2017-12-22 09:07:44.313	error	at HAPServer._onListening (/opt/iobroker/node_modules/iobroker.yahka/node_modules/hap-nodejs/lib/HAPServer.js:190:8)
                yahka.0	2017-12-22 09:07:44.313	error	at HAPServer.emit (events.js:188:7)
                yahka.0	2017-12-22 09:07:44.313	error	at emitOne (events.js:96:13)
                yahka.0	2017-12-22 09:07:44.313	error	at Bridge.Accessory._onListening (/opt/iobroker/node_modules/iobroker.yahka/node_modules/hap-nodejs/lib/Accessory.js:611:20)
                yahka.0	2017-12-22 09:07:44.313	error	at Advertiser.startAdvertising (/opt/iobroker/node_modules/iobroker.yahka/node_modules/hap-nodejs/lib/Advertiser.js:43:30)
                yahka.0	2017-12-22 09:07:44.313	error	at Object.create [as createAdvertisement] (/opt/iobroker/node_modules/iobroker.yahka/node_modules/mdns/lib/advertisement.js:64:10)
                yahka.0	2017-12-22 09:07:44.313	error	at new Advertisement (/opt/iobroker/node_modules/iobroker.yahka/node_modules/mdns/lib/advertisement.js:56:10)
                yahka.0	2017-12-22 09:07:44.313	error	at Error (native)
                yahka.0	2017-12-22 09:07:44.313	error	Error: dns service error: unknown
                yahka.0	2017-12-22 09:07:44.313	error	uncaught exception: dns service error: unknown
                yahka.0	2017-12-22 09:07:44.173	info	creating bridge
                yahka.0	2017-12-22 09:07:44.172	info	adapter ready, checking config
                yahka.0	2017-12-22 09:07:44.148	info	starting. Version 0.5.5 in /opt/iobroker/node_modules/iobroker.yahka, node: v6.12.2
                host.iobroker	2017-12-22 09:07:43.143	info	instance system.adapter.yahka.0 started with pid 5601
                h
                
                

                Der Avahi Prozess fehlt.

                Leider hab ich keinen Schimmer wie ich den installieren muss. 😞

                Wenn ich es wie im github beschrieben versuche bekomme ich immer die Probleme mit der Auflösung des Hostnamens, wie beim Installieren des ZWave-Adapters:

                > sudo: Hostname iobroker kann nicht aufgelöst werden

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

                  Hilft das?

                  http://forum.iobroker.net/viewtopic.php … hi#p105421

                  Gruß Rainer

                  1 Reply Last reply Reply Quote 0
                  • T
                    Telefisch last edited by

                    @Homoran:

                    Hilft das?

                    http://forum.iobroker.net/viewtopic.php … hi#p105421

                    Gruß Rainer `

                    Leider nein.

                    Nach wie vor Probleme bei der Namensauflösung.

                    Update:

                    hab jetzt nano installiert, mal sehen was mit der hosts machbar ist…

                    Update 2:

                    in der Hosts steht loacalhost und der DNS-Name der DS.

                    Ich kann da zwar drin ändern aber beim nächsten Neustart des Containers wird die Datei wieder zurück geändert.

                    Selbst wenn ich den Containernamen statt dem DS-Namen angebe, bekomme ich (dieses Mal andere) Fehlermeldungen, sobald ich versuche etwas (wie den Avahi-Dämon) zu installieren.

                    Ich weiß nicht mehr weiter 😞

                    Gruß Carsten

                    1 Reply Last reply Reply Quote 0
                    • T
                      Telefisch last edited by

                      So, nachdem ich das letzte Image wieder geladen habe, habe ich auch mal versucht dem Container den gleichen Namen wie der DS zu geben.

                      Ergebnis, die Installation vom ZWave-Adapter bleibt dauerhaft bei dieser Meldung stehen:

                      > $ ./iobroker add zwave

                      Allen ein frohes Fest 🙂

                      1 Reply Last reply Reply Quote 0
                      • T
                        Telefisch last edited by

                        ich habe nochmal ein paar weitere Versuche gemacht:

                        die Hosts-Datei hatte folgende Einträge:

                        127.0.0.1 localhost

                        ::1 localhost

                        127.0.0.1 DS-Name

                        ::1 DS-Name

                        Stimmt das so?

                        Änderungen werden eh beim Neustart zurückgesetzt, kann ich also nicht beeinflussen? 😞

                        Wenn ich im Terminal "sudo nano /etc/hosts" eingebe bekomme ich folgende antworten:
                        ` > sudo: Hostname iobroker kann nicht aufgelöst werden

                        sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1

                        sudo: pam_open_session: Systemfehler

                        sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren `

                        wenn ich nur "nano /etc/hosts" eingebe wird die hosts-Datei halt im Editor geöffnet.

                        1 Reply Last reply Reply Quote 0
                        • T
                          Telefisch last edited by

                          So,

                          nachdem nichts anderes half habe ich mal komplett neu installiert.

                          Also aus Image neuen Container erstellt mit allen Einstellungen nach Anweisung (Sind ja nur wenige).

                          Dann iobroker komplett neu installieren lassen mit den basics die der broker selbst gefunden hat.

                          Danach versucht ZWave zu installieren:

                          ! ````
                          $ ./iobroker add zwave
                          npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)
                          sudo: Hostname ioBroker2 kann nicht aufgelöst werdensudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                          sudo: pam_open_session: Systemfehler
                          sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                          ! /opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:15 if (!suppressException) throw e;
                          ^
                          ! Error: Command failed: sudo apt-get install libudev-dev -y
                          sudo: Hostname ioBroker2 kann nicht aufgelöst werden
                          sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                          sudo: pam_open_session: Systemfehler
                          sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                          ! at checkExecSyncError (child_process.js:473:13)
                          at Object.execSync (child_process.js:513:13)
                          at doScript (/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:12:15)
                          at Object. <anonymous>(/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:25:7)
                          at Module._compile (module.js:570:32)
                          at Object.Module._extensions..js (module.js:579:10)
                          at Module.load (module.js:487:32)
                          at tryModuleLoad (module.js:446:12)
                          at Function.Module._load (module.js:438:3)
                          at Module.runMain (module.js:604:10)
                          ! npm ERR! Linux 3.10.102
                          npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.zwave" "--unsafe-perm" "--production" "--prefix" "/opt/iobroker"npm ERR! node v6.12.2
                          npm ERR! npm v3.10.10
                          npm ERR! code ELIFECYCLE
                          ! npm ERR! iobroker.zwave@0.9.0 preinstall: node lib/preinstall.js
                          npm ERR! Exit status 1
                          npm ERR!
                          npm ERR! Failed at the iobroker.zwave@0.9.0 preinstall script 'node lib/preinstall.js'.
                          npm ERR! Make sure you have the latest version of node.js and npm installed.
                          npm ERR! If you do, this is most likely a problem with the iobroker.zwave package,
                          npm ERR! not with npm itself.
                          npm ERR! Tell the author that this fails on your system:
                          npm ERR! node lib/preinstall.js
                          npm
                          ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs iobroker.zwave
                          npm ERR! Or if that isn't available, you can get their info via:
                          npm ERR! npm owner ls iobroker.zwave
                          npm ERR! There is likely additional logging output above.
                          ! npm ERR! Please include the following file with any support request:npm ERR! /opt/iobroker/npm-debug.log
                          ! host.ioBroker2 install adapter zwave
                          npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)
                          sudo: Hostname ioBroker2 kann nicht aufgelöst werdensudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                          sudo: pam_open_session: Systemfehler
                          sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                          ! /opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:15 if (!suppressException) throw e;
                          ^
                          ! Error: Command failed: sudo apt-get install libudev-dev -y
                          sudo: Hostname ioBroker2 kann nicht aufgelöst werden
                          sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                          sudo: pam_open_session: Systemfehler
                          sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                          ! at checkExecSyncError (child_process.js:473:13)
                          at Object.execSync (child_process.js:513:13)
                          at doScript (/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:12:15)
                          at Object. <anonymous>(/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:25:7)
                          at Module._compile (module.js:570:32)
                          at Object.Module._extensions..js (module.js:579:10)
                          at Module.load (module.js:487:32)
                          at tryModuleLoad (module.js:446:12)
                          at Function.Module._load (module.js:438:3)
                          at Module.runMain (module.js:604:10)
                          ! npm
                          ERR! Linux 3.10.102npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.zwave" "--unsafe-perm" "--production" "--prefix" "/opt/iobroker"
                          npm ERR! node v6.12.2
                          npm ERR! npm v3.10.10
                          npm ERR! code ELIFECYCLE
                          ! npm ERR! iobroker.zwave@0.9.0 preinstall: node lib/preinstall.jsnpm ERR! Exit status 1
                          npm ERR!
                          npm ERR! Failed at the iobroker.zwave@0.9.0 preinstall script 'node lib/preinstall.js'.
                          npm ERR! Make sure you have the latest version of node.js and npm installed.
                          npm
                          ERR! If you do, this is most likely a problem with the iobroker.zwave package,npm ERR! not with npm itself.
                          npm ERR! Tell the author that this fails on your system:
                          npm ERR! node lib/preinstall.js
                          npm ERR! You can get information on how to open an issue for this project with:
                          npm ERR! npm bugs iobroker.zwave
                          npm ERR! Or if that isn't available, you can get their info via:
                          npm ERR! npm owner ls iobroker.zwave
                          npm ERR! There is likely additional logging output above.
                          ! npm ERR! Please include the following file with any support request:npm ERR! /opt/iobroker/npm-debug.log
                          ! host.ioBroker2 install adapter zwave
                          npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)</anonymous></anonymous>

                          
                          Also irgendwie ist da am Image was marode :(
                          
                          Damit bin ich jetzt vollends aufgeschmissen… *heul*
                          1 Reply Last reply Reply Quote 0
                          • andre
                            andre Developer last edited by

                            @Telefisch:

                            So,

                            nachdem nichts anderes half habe ich mal komplett neu installiert.

                            Also aus Image neuen Container erstellt mit allen Einstellungen nach Anweisung (Sind ja nur wenige).

                            Dann iobroker komplett neu installieren lassen mit den basics die der broker selbst gefunden hat.

                            Danach versucht ZWave zu installieren:

                            ! ````
                            $ ./iobroker add zwave
                            npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)
                            sudo: Hostname ioBroker2 kann nicht aufgelöst werdensudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                            sudo: pam_open_session: Systemfehler
                            sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                            ! /opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:15 if (!suppressException) throw e;
                            ^
                            ! Error: Command failed: sudo apt-get install libudev-dev -y
                            sudo: Hostname ioBroker2 kann nicht aufgelöst werden
                            sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                            sudo: pam_open_session: Systemfehler
                            sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                            ! at checkExecSyncError (child_process.js:473:13)
                            at Object.execSync (child_process.js:513:13)
                            at doScript (/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:12:15)
                            at Object. <anonymous>(/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:25:7)
                            at Module._compile (module.js:570:32)
                            at Object.Module._extensions..js (module.js:579:10)
                            at Module.load (module.js:487:32)
                            at tryModuleLoad (module.js:446:12)
                            at Function.Module._load (module.js:438:3)
                            at Module.runMain (module.js:604:10)
                            ! npm ERR! Linux 3.10.102
                            npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.zwave" "--unsafe-perm" "--production" "--prefix" "/opt/iobroker"npm ERR! node v6.12.2
                            npm ERR! npm v3.10.10
                            npm ERR! code ELIFECYCLE
                            ! npm ERR! iobroker.zwave@0.9.0 preinstall: node lib/preinstall.js
                            npm ERR! Exit status 1
                            npm ERR!
                            npm ERR! Failed at the iobroker.zwave@0.9.0 preinstall script 'node lib/preinstall.js'.
                            npm ERR! Make sure you have the latest version of node.js and npm installed.
                            npm ERR! If you do, this is most likely a problem with the iobroker.zwave package,
                            npm ERR! not with npm itself.
                            npm ERR! Tell the author that this fails on your system:
                            npm ERR! node lib/preinstall.js
                            npm
                            ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs iobroker.zwave
                            npm ERR! Or if that isn't available, you can get their info via:
                            npm ERR! npm owner ls iobroker.zwave
                            npm ERR! There is likely additional logging output above.
                            ! npm ERR! Please include the following file with any support request:npm ERR! /opt/iobroker/npm-debug.log
                            ! host.ioBroker2 install adapter zwave
                            npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)
                            sudo: Hostname ioBroker2 kann nicht aufgelöst werdensudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                            sudo: pam_open_session: Systemfehler
                            sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                            ! /opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:15 if (!suppressException) throw e;
                            ^
                            ! Error: Command failed: sudo apt-get install libudev-dev -y
                            sudo: Hostname ioBroker2 kann nicht aufgelöst werden
                            sudo: Die Audit-Nachricht kann nicht gesendet werden: Unbekannter Fehler -1
                            sudo: pam_open_session: Systemfehler
                            sudo: Regelwerks-Plugin konnte Sitzung nicht initialisieren
                            ! at checkExecSyncError (child_process.js:473:13)
                            at Object.execSync (child_process.js:513:13)
                            at doScript (/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:12:15)
                            at Object. <anonymous>(/opt/iobroker/node_modules/.staging/iobroker.zwave-936e120a/lib/preinstall.js:25:7)
                            at Module._compile (module.js:570:32)
                            at Object.Module._extensions..js (module.js:579:10)
                            at Module.load (module.js:487:32)
                            at tryModuleLoad (module.js:446:12)
                            at Function.Module._load (module.js:438:3)
                            at Module.runMain (module.js:604:10)
                            ! npm
                            ERR! Linux 3.10.102npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.zwave" "--unsafe-perm" "--production" "--prefix" "/opt/iobroker"
                            npm ERR! node v6.12.2
                            npm ERR! npm v3.10.10
                            npm ERR! code ELIFECYCLE
                            ! npm ERR! iobroker.zwave@0.9.0 preinstall: node lib/preinstall.jsnpm ERR! Exit status 1
                            npm ERR!
                            npm ERR! Failed at the iobroker.zwave@0.9.0 preinstall script 'node lib/preinstall.js'.
                            npm ERR! Make sure you have the latest version of node.js and npm installed.
                            npm
                            ERR! If you do, this is most likely a problem with the iobroker.zwave package,npm ERR! not with npm itself.
                            npm ERR! Tell the author that this fails on your system:
                            npm ERR! node lib/preinstall.js
                            npm ERR! You can get information on how to open an issue for this project with:
                            npm ERR! npm bugs iobroker.zwave
                            npm ERR! Or if that isn't available, you can get their info via:
                            npm ERR! npm owner ls iobroker.zwave
                            npm ERR! There is likely additional logging output above.
                            ! npm ERR! Please include the following file with any support request:npm ERR! /opt/iobroker/npm-debug.log
                            ! host.ioBroker2 install adapter zwave
                            npm install iobroker.zwave --unsafe-perm --production --prefix "/opt/iobroker" (System call)</anonymous></anonymous>

                            
                            Also irgendwie ist da am Image was marode :(
                            
                            Damit bin ich jetzt vollends aufgeschmissen… *heul* `  
                            

                            Hallo Telefisch,

                            sorry dass ich mich jetzt erst wieder zu Wort melde… aber Weihnachten halt... 😉

                            Ich kann das ganze Verhalten irgendwie nicht nachvollziehen. Irgendwas scheint mit deiner Namensauflösung im Container nicht zu passen... bevor ich jetzt aber die Logs die du bereit gestellt hast durcharbeite eine kurze Vorabfrage: Welche Versionen hast du im Einsatz? Über die Systemsteuerung findest du ja die DS Version. Bei mir ist das:

                            DSM 6.1.4-15217 Update 5
                            

                            Über das Paket-Zentrum gibt es dann ja auch noch eine Version des Docker Pakets. Bei mir ist das:

                            17.05.0-0367
                            

                            Wie sieht das bei dir aus? Stehen ggf. Updates bereit?

                            MfG,

                            André

                            1 Reply Last reply Reply Quote 0
                            • T
                              Telefisch last edited by

                              Hallo André, kein Problem…

                              Weihnachten gehört der Familie.

                              Ich habe alles auf aktuellem Stand.

                              Gleiche Versionen wie bei dir.

                              Gruß Carsten

                              1 Reply Last reply Reply Quote 0
                              • andre
                                andre Developer last edited by

                                @Telefisch:

                                Hallo André, kein Problem…

                                Weihnachten gehört der Familie.

                                Ich habe alles auf aktuellem Stand.

                                Gleiche Versionen wie bei dir.

                                Gruß Carsten `

                                OK, ich habe zwischenzeitlich das Verhalten nachstellen können. Scheint mir so als komme der Container unter bestimmten Voraussetzungen mit dem Installationsscript des zwave-Adapters nicht klar. Schaue mir das gleich mal genauer an wenn die Kinder im Bett sind. 😉

                                MfG,

                                André

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Telefisch last edited by

                                  …wie geschrieben funktioniert der YAHKA Adapter auch nicht mehr.

                                  Vermutlich weil Avahi fehlt.

                                  Da habe ich ähnliche Fehlermeldungen wenn ich das installieren möchte.

                                  Der YAHKA hat vor dem Update des Images noch funktioniert.

                                  1 Reply Last reply Reply Quote 0
                                  • andre
                                    andre Developer last edited by

                                    So, was ich jetzt heraus finden konnte ist, dass ich aktuell keine echte Lösung zum Installationsproblem mit dem zwave adapter anbieten kann. 😞

                                    Wie es ausschaut gibt es ein generelles Problem mit der Ausführung von Befehlen per sudo in einem Container der das selbe Netzwerk wie das Hostsystem benutzt. Leider wird im Installationsscript des zwave-Adapters gerade dieser Aufruf verwendet sodass die Installation dann in Fehler läuft.

                                    Ein denkbarer Workaround könnte sein, dass man den Docker Container ohne das Häkchen "Dasselbe Netzwerk wie Docker Host verwenden" erstellt und alle Ports, die ioBroker und dessen Adapter benutzen manuell mappt. So habe ich auch meinen Testcontainer laufen und da geht die Installation ja fehlerfrei durch… Sorry, mehr Optionen konnte ich leider nicht finden...

                                    @Telefisch:

                                    …wie geschrieben funktioniert der YAHKA Adapter auch nicht mehr.

                                    Vermutlich weil Avahi fehlt.

                                    Da habe ich ähnliche Fehlermeldungen wenn ich das installieren möchte.

                                    Der YAHKA hat vor dem Update des Images noch funktioniert. `
                                    Was Avahi angeht, das kann ich leider nicht nachstellen. Hatte hier irgendwo einen Post, dass sich der Avahi-Dienst im Docker mit dem Avahi-Dienst der DS behakt. Schau mal im DSM unter "Systemsteuerung - Dateidienste - Erweitert" ob der Bonjour-Dienst aktiviert ist. Falls ja, einfach mal den Haken entfernen und den Container neu starten. Wenn dann der Avahi weiterhin nicht startet könntest du mal über die Kommandozeile "/etc/init.d/avahi-daemon start" versuchen und schauen was es dazu als Fehlermeldung gibt…

                                    Wichtigste Erkenntnis von heute Abend: Beim Arbeiten über die Kommandozeile im Container immer ohne "sudo". Zumindest wenn der Container das selbe Netzwerk wie der Host verwendet...

                                    MfG,

                                    André

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Telefisch last edited by

                                      Hmm…

                                      Bonjour abgeschaltet und Container neu gestartet, ohne Erfolg.

                                      Versucht Avahi manuell zu starten:
                                      ` > root@iobroker:/# /etc/init.d/avahi-daemon start

                                      [FAIL] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon failed! `

                                      Gibt es irgendwo eine Zusammenfassung welche Ports weitergeleitet werden müssen?

                                      …wird ja nicht nur 8081 und 8082 sein...?

                                      Und danke für Deine Hilfe!

                                      Gruß Carsten

                                      1 Reply Last reply Reply Quote 0
                                      • andre
                                        andre Developer last edited by

                                        @Telefisch:

                                        Hmm…

                                        Bonjour abgeschaltet und Container neu gestartet, ohne Erfolg.

                                        Versucht Avahi manuell zu starten:
                                        ` > root@iobroker:/# /etc/init.d/avahi-daemon start

                                        [FAIL] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon failed! `

                                        Gibt es irgendwo eine Zusammenfassung welche Ports weitergeleitet werden müssen?

                                        …wird ja nicht nur 8081 und 8082 sein...?

                                        Und danke für Deine Hilfe!

                                        Gruß Carsten `

                                        Hallo, läuft bei dir im Container ein Prozess mit dem Ausführungsbefehl "dbus-daemon –system"? Falls nicht, versuche mal den Befehl auszuführen. Könnte dann ggf. so aussehen:

                                        root@iobroker:/opt/iobroker# dbus-daemon --system
                                        Failed to start message bus: The pid file "/var/run/dbus/pid" exists, if the message bus is not running, remove this file
                                        root@iobroker:/opt/iobroker# rm /var/run/dbus/pid
                                        root@iobroker:/opt/iobroker# dbus-daemon --system
                                        root@iobroker:/opt/iobroker# /etc/init.d/avahi-daemon start
                                        [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
                                        root@iobroker:/opt/iobroker#
                                        
                                        

                                        Der dbus ist Vorraussetzung für den avahi….

                                        Was die Zusammenfassung der ioBroker Ports angeht, da kenne ich zumindest keine Quelle. Der ein oder andere Adapter bringt ja auch noch einen Port mit... schwierig da den Überblick zu behalten... Überlege gerade ob man sowas mal anfangen soll, dann könnte man ggf. den Docker-Container generell (auch für nicht so versierte Benutzer) mit Portforwarding betreiben. Allerdings müsste man mal schauen was das ggf noch für andere Problemchen mitbringen könnte. 😉

                                        MfG,

                                        André

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Telefisch last edited by

                                          der dbus-daemon war nicht gestartet.

                                          Ich habe das manuell gemacht und konnte jetzt auch den avahi-daemon starten.

                                          Jetzt ist YAHKA wieder grün.

                                          Ich habe aber zwischenzeitlich auch einen neuen Container erstellt ohne gleiches Netzwerk.

                                          Nachdem ich 9000, 9001, 8081 und 8082 freigegeben hatte konnte ich auch direkt den Yahka installieren.

                                          ZWave ist auch durchgelaufen, da kann ich bisher nur noch keinen USB-Stick auswählen.

                                          Ich denke es sind damit einige Probleme tatsächlich gelöst.

                                          Jetzt versuche ich erstmal den Container wieder auf die alte Installation zu mappen und dann sehen wir weiter.

                                          Kannst Du mir außer den genannten Ports noch welche sagen, die unbedingt nötig sind?

                                          Die speziellen Adapter-Ports muss ich dann ggf. anders herausfinden.

                                          1 Reply Last reply Reply Quote 0
                                          • andre
                                            andre Developer last edited by

                                            Das klingt ja schon mal nicht so verkehrt.

                                            Was den USB Stick angeht… Soweit ich weiß, hat der Container nur Zugriff auf die USB-Devices wenn er mit erweiterten Rechten ausgeführt wird (Häkchen "Container mit hoher Priorität ausführen"). ist das Häkchen bei dir gesetzt?

                                            Die genannten Ports hören sich gut an. Wüsste jetzt aus dem Stand auch nicht mehr...

                                            MfG,

                                            André

                                            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

                                            493
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            buanet diskstation docker iobroker synology
                                            248
                                            2854
                                            1164553
                                            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