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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [HowTo] ioBroker unter Docker auf Synology DiskStation

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 @base last edited by

      @base bei dir ist es reinstall.sh. Ist glaube ich seit 1.5 so dann wäre es „node reinstall.js“

      1 Reply Last reply Reply Quote 0
      • B
        base last edited by Negalein

        bei npm rebuild bekomme ich jetzt:

        Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
            at doWrite (_stream_writable.js:411:19)
            at writeOrBuffer (_stream_writable.js:399:5)
            at WriteStream.Writable.write (_stream_writable.js:299:11)
            at Object.<anonymous> (/opt/iobroker/node_modules/file-stream-rotator/FileStreamRotator.js:602:26)
            at DailyRotateFile.log (/opt/iobroker/node_modules/winston-daily-rotate-file/daily-rotate-file.js:138:20)
            at DailyRotateFile._write (/opt/iobroker/node_modules/winston-transport/index.js:102:17)
            at doWrite (/opt/iobroker/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:428:64)
            at writeOrBuffer (/opt/iobroker/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:417:5)
            at DailyRotateFile.Writable.write (/opt/iobroker/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:334:11)
            at DerivedLogger.ondata (/opt/iobroker/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:662:20)
        npm ERR! code ELIFECYCLE
        npm ERR! errno 7
        npm ERR! iobroker.sayit@1.8.2 install: `node main.js --install`
        npm ERR! Exit status 7
        npm ERR!
        npm ERR! Failed at the iobroker.sayit@1.8.2 install script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/iobroker/.npm/_logs/2019-10-26T09_35_11_669Z-debug.log
        [1]+  Exit 1                  node node_modules/iobroker.js-controller/controller.js > /opt/scripts/docker_iobroker_log.txt 2>&1
        
        und bei reinstall.js:
        
        Cleaning npm cache...
        npm WARN using --force I sure hope you know what you are doing.
        
        
        
        Reinstall all packages cache...
        npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
        npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
        npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
        npm WARN deprecated sprintf@0.1.5: The sprintf package is deprecated in favor of sprintf-js.
        npm WARN deprecated json-parser@1.1.5: `json-parser` is deprecated. Please use `comment-json` instead
        npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
        npm ERR! code E404
        npm ERR! 404 Not Found - GET https://registry.npmjs.org/iobroker.tr-064-community - Not found
        npm ERR! 404
        npm ERR! 404  'iobroker.tr-064-community@1.0.0' is not in the npm registry.
        npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
        npm ERR! 404 It was specified as a dependency of 'iobroker'
        npm ERR! 404
        npm ERR! 404 Note that you can also install from a
        npm ERR! 404 tarball, folder, http url, or git url.
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /root/.npm/_logs/2019-10-26T09_38_47_970Z-debug.log
        
        
        
        Everything is done
        
        
        
        Finished in 40 seconds.
        
        1 Reply Last reply Reply Quote 0
        • Negalein
          Negalein Global Moderator @andre last edited by Negalein

          @andre sagte in [HowTo][Anleitung] Installation ioBroker in Docker auf Synology DiskStation:

          Ok, v4.0.0 ist raus und damit stable (= latest)....

          Andre, wenn ich von V3 auf V4 updaten möchte, gehe ich dann so wie auf deiner Seite beschrieben vor?

          Container aktualisieren
          Ruft einfach euren ioBroker-Container in Portainer auf und stoppt ihn über die Bedienschaltflächen. Anschließend wählt ihr "Recreate" und aktiviert den Switch "Pull latest Image". Dann nur noch auf "Recreate" klicken und Ruhe bewahren. Portainer läd nun voll automatisch die neueste Version des verwendeten Images herunter und erstellt den Container mit der selben Konfiguration neu. Anschließend müsst ihr den Container lediglich wieder starten und der Container ist auf die neueste Version aktualisiert. Einfacher geht es nicht!

          Hat sich erledigt! Bin jetzt auf V4.
          War in 5 Minuten erledigt! 🙂

          1 Reply Last reply Reply Quote 0
          • D
            dtp last edited by

            Ich weiß, ich scheine da ein relativ singuläres Problem zu haben, aber irgendwie kotzt mich das seit der Version 3.x ziemlich an und es ist mit Version 4.0 nicht besser geworden.

            2019-10-26_15h31_24.png

            Wie bekomme ich dieses verdammte Problem blos in den Griff?

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

              Bei früheren Versionen der reinstall.sh waren Windows Zeichen drin und das wird angemeckert. such mal im Forum. Da gabs Befehle um das zu begeben.

              1 Reply Last reply Reply Quote 0
              • D
                dtp last edited by

                Danke für die Info.

                Nach einem "npm rebuild" laufen zumindest die Adapter wieder alle.

                Das mit den dos-Kommandos muss ich mir mal raussuchen. Sollte doch eigenltich mit "dos2unix" umwandelbar sein, oder?

                dslraser 1 Reply Last reply Reply Quote 0
                • dslraser
                  dslraser Forum Testing Most Active @dtp last edited by

                  @dtp
                  meinst Du das hier ? (ich weiß nicht ob das mit sudo noch okay ist, jedenfalls hatte ich das auch schon mal laufen lassen und es ging)

                  sudo mv reinstall.sh reinstall.dos
                  sudo tr -d '\r' < reinstall.dos > reinstall.sh
                  sudo chmod +x reinstall.sh
                  sudo ./reinstall.sh
                  
                  D 1 Reply Last reply Reply Quote 0
                  • B
                    base last edited by Negalein

                    ich komme nicht weiter...

                    sudo npm rebuild bleibt hängen bei:
                    NPM version: 6.11.3

                    iobroker.js-controller@2.0.35 install /opt/iobroker/node_modules/iobroker.js-controller
                    node iobroker.js setup first

                    iobroker.sayit@1.8.2 install /opt/iobroker/node_modules/iobroker.sayit
                    node main.js --install

                    und sudo node reinstall.js wird selbst bei einen neu erstellten Container mit fehler beendet:

                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                    
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 100
                    npm ERR! iobroker@2.0.3 postinstall: `node lib/install.js`
                    npm ERR! Exit status 100
                    npm ERR!
                    npm ERR! Failed at the iobroker@2.0.3 postinstall script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /root/.npm/_logs/2019-10-27T07_17_29_577Z-debug.log
                    Error 100
                    Cannot reinstall all packages: 100
                    

                    was kann ich noch versuchen????

                    Homer.J. dslraser 2 Replies Last reply Reply Quote 0
                    • Homer.J.
                      Homer.J. @base last edited by

                      Morgen,
                      Version 4.0 läuft soweit klasse, das einzige was ich nicht ans laufen bekomme ist den Backitup Adapter.
                      Hab schon alle Einstellungen Versucht klappt aber nicht hat Ihn hier vielleicht schon jemand am laufen und könnte die Einstellungen mal zeigen.
                      Hab es auch wunderbar bei der 2 Version am laufen oder vom Raspberry 4, nur leider bekomme ich es bei der 4 Version nicht ans laufen.
                      cifs-utils ist installiert.
                      Grüße

                      1 Reply Last reply Reply Quote 0
                      • dslraser
                        dslraser Forum Testing Most Active @base last edited by dslraser

                        @base
                        ich mache das schon eine Weile ohne sudo, also nur

                        npm rebuild
                        

                        oder

                        reinstall.js
                        

                        gerade den neuen controller 2.0.37 installiert mit

                        npm install ioBroker/ioBroker.js-controller
                        

                        auch habe ich eben

                        apt-get update
                        

                        und

                        apt-get upgrade
                        

                        ausgeführt.
                        Alles mit dem latest Container (V4) und alles ohne sudo

                        B 1 Reply Last reply Reply Quote 0
                        • D
                          dtp @dslraser last edited by dtp

                          @dslraser sagte in [HowTo][Anleitung] Installation ioBroker in Docker auf Synology DiskStation:

                          @dtp
                          meinst Du das hier ? (ich weiß nicht ob das mit sudo noch okay ist, jedenfalls hatte ich das auch schon mal laufen lassen und es ging)

                          sudo mv reinstall.sh reinstall.dos
                          sudo tr -d '\r' < reinstall.dos > reinstall.sh
                          sudo chmod +x reinstall.sh
                          sudo ./reinstall.sh
                          

                          So, "./reinstall.sh" lief durch. Allerdings, wie von @dslraser beschrieben, ohne "sudo" im ioBroker-Container des Portainers:

                          mv reinstall.sh reinstall.dos
                          tr -d '\r' < reinstall.dos > reinstall.sh
                          chmod +x reinstall.sh
                          ./reinstall.sh
                          

                          Und endlich habe ich nun auch keine "\r"-Fehlermeldungen mehr, so dass ich fortan auf die Version 2 komplett verzichten kann. 😉

                          Der einzige Adapter, der bei mir Probleme macht, ist der tr-064.

                          2019-10-27_10h16_23.png

                          Aber gut, auf den kann ich zur Not verzichten.

                          dslraser apollon77 2 Replies Last reply Reply Quote 0
                          • dslraser
                            dslraser Forum Testing Most Active @dtp last edited by

                            @dtp sagte in [HowTo][Anleitung] Installation ioBroker in Docker auf Synology DiskStation:

                            Der einzige Adapter, der bei mir Probleme macht, ist der tr-064.

                            Ich nutze den aktuell nicht und weiß auch nicht ob es mit dem aktuellen Controller noch geht, aber man mußte immer das soef modul nachinstallieren.

                            kannst ja mal testen

                            Via Terminal ins Verzeichnis "/opt/iobroker/node_modules/iobroker.tr-064" gehen und:
                            npm install soef

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

                              @dtp npm install soef

                              Oder community Version vom GitHub nutzen

                              1 Reply Last reply Reply Quote 0
                              • B
                                base @dslraser last edited by base

                                @dslraser said in [HowTo][Anleitung] Installation ioBroker in Docker auf Synology DiskStation:

                                reinstall.js

                                Nachdem ich den js-controller über upgrade self aktualisiert habe, lief npm rebuild etwas weiter endet dann aber auch wieder mit einer Fehlermeldung:

                                npm ERR! code ELIFECYCLE
                                npm ERR! errno 1
                                npm ERR! sqlite3@4.1.0 install: `node-pre-gyp install --fallback-to-build`
                                npm ERR! Exit status 1
                                npm ERR!
                                npm ERR! Failed at the sqlite3@4.1.0 install script.
                                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                
                                npm ERR! A complete log of this run can be found in:
                                npm ERR!     /root/.npm/_logs/2019-10-27T10_36_51_488Z-debug.log
                                

                                die anderen Befehle habe ich zuvor erfolgreich abgesetzt..

                                was läuft bei meiner Installation schief? hatte das System erst komplett neu aufgesetzt und jetzt immer wieder diese Fehlermeldungen ....

                                nachdem ich

                                npm i node-pre-gyp@0.10.3
                                

                                eingegeben habe, lief npm rebuild durch.

                                mal weiter testen ......

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

                                  @andre

                                  Hätte eine Frage zum Portainer.

                                  Ich bekomm seit V4 deines Image den Zigbee wegen Rechteproblem nicht zum laufen.
                                  Auch der Fixer brachte nichts.

                                  Es half nur ein chmod 777 /dev/ttyACM0. Der Adapter wurde danach sofort grün.

                                  Jetzt ist es aber so, wenn die Syno neu startet, muss der Befehl wieder ausgeführt werden.

                                  Kann ich den chmod-Befehl im Portainer hier fix eingeben?
                                  Portainer.png

                                  Danke

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

                                    Hallo,

                                    bei mir wird immer noch die Sommerzeit in IoBroker angezeigt, obwohl die Diskstation (DS218+) die richtige Zeit (Winterzeit) hat.

                                    Muss ich noch was umstellen, oder im Container anpassen?

                                    Grüße
                                    Thomas

                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      calliou1234 @calliou1234 last edited by

                                      @calliou1234

                                      Hat sich erledigt. Geht in der Zwischenzeit!!!!

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        K_o_bold last edited by K_o_bold

                                        @andre ,

                                        ich hab das update deines Containers auf die aktuelle latest Version "4.0.0" gemacht und jetzt stimmt die Zeitzone nicht mehr. Alles andere ist top. Vielen Dank dafür..☺
                                        Natürlich kann ich diese im Container einfach ändern, aber das müsste ich dann bei jedem Update machen.
                                        Hast du einen Tipp wie ich die Zeitzone in den Container mounte?
                                        Ich nutze Docker Compose.

                                        Edit: Hat sich erledigt. Mein astro Skript zeigt die Zeiten plötzlich amerikanisch an...da muss ich mal schauen warum das plötzlich auftritt.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dtp last edited by dtp

                                          Kann meinen HUE-Adapter weder aktualisierung noch deinstallieren.

                                          2019-10-29_06h44_26.png

                                          Jemand eine Idee. Wie lösche ich den Adapter manuell?

                                          EDIT: Okay, hab ihn mit

                                          rm -r /opt/iobroker/node_modules/iobroker.hue
                                          

                                          gelöscht bekommen. Aber warum ließ er sich über die admin-Oberfläche weder updaten noch löschen?

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

                                            @dtp was steht den im LOG

                                            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

                                            951
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

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