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.
    • andre
      andre Developer @K_o_bold last edited by

      @K_o_bold
      Ich habe seinerzeit einfach einen redis container erstellt und per "iobroker setup custom" als Ziel für die states konfiguriert. Ohne die Daten zu übernehmen. Es geht ja dabei nur um die aktuellen States, nicht die Objekte selbst. Die States werden dann ja automatisch neu gefüllt . Die meisten ja schon beim ioBroker Start...

      MfG,
      André

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

        Dann wäre es jetzt für mich sinnvoll, auf meiner normalen Installation erst wieder auf das normale Fileshare umzustellen? Anschließend deinen Container zum laufen zu bringen und mein backup einspielen, damit Iobroker hochfährt. Habe sonst das Problem, dass er gleich wegen der fehlenden Redis Datenbank meckert.
        Und mich erst danach wieder innerhalb des containers um redis zu kümmern?

        Sorry, bin im Thema noch ein noob

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

          @K_o_bold
          Würde nicht zurück stellen...
          Bin jetzt leider gerade unterwegs, könnte dir heute abend mal die Schritte zusammenstellen die ich machen würde. Wie ist deine Ausgangslage? Raspberry? Linux? Redis auf dem selben System? Und wo willst du hin? Container mit MACVLAN? Gib mir ein paar Infos dann kann ich dir die Schritte sagen die ich unternehmen würde. Wie immer gilt natürlich: Viele Wege führen nach Castrop-Rauxel... 🙂

          MfG,
          André

          K 1 Reply Last reply Reply Quote 0
          • Amnesia1211
            Amnesia1211 @andre last edited by

            @andre Super habe ich gemacht danke für die Antwort !! Machst echt tolle Arbeit !! Bitte weiter so

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

              @andre ,

              danke für deine schnelle Rückmeldung. Erst mal ein dickes Lob und vielen Dank für deine Arbeit... 👍
              Nach etwas längerer Einarbeitung mit Docker ( docker-compose ) bin ich echt begeistert und weiß die Vorteile richtig zu schätzen..

              Nun zu meinem Anliegen von heute Mittag. Ich hatte heute nachmittag Zeit und habe wieder auf das normale Filesystem umgestellt. Habe dann alles soweit sauber eingerichtet. Aber vielen Dank für dein Angebot...
              Kann man damit rechnen, dass es bald von dir ein latest stable Image mit js.controller 2.0.0 gibt?
              Denn ich werde wahrscheinlich erst dann wieder auf Redis umstellen, weil da Redis tiefer in Iobroker integriert ist. Man verliert dann bei der Umstellung wohl die Inhalte seiner states nicht mehr.

              Ps. Ich habe ein normales Linux System ( Lubuntu ) und habe docker-compose angewendet

              Negalein andre 2 Replies Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @K_o_bold last edited by

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

                Image mit js.controller 2.0.0 gibt

                du kannst auch jetzt schon (Sicherung vorausgesetzt) auf JS-Controller 2.0 updaten.

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

                  @Negalein ,

                  ja dessen bin ich mir bewusst. Allerdings sehe ich es aktuell nicht als zwingend notwendig, da es noch keine Adapter gibt, die es voraussetzen...Ich warte lieber bis alle Kinderkrankheiten ausgestanden sind...

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

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

                    da es noch keine Adapter gibt, die es voraussetzen

                    Deshalb warte ich auch noch

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

                    Ich warte lieber bis alle Kinderkrankheiten ausgestanden sind...

                    wird nicht mehr lange dauern.

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

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

                      Kann man damit rechnen, dass es bald von dir ein latest stable Image mit js.controller 2.0.0 gibt?

                      Da der js-controller im ioBroker-Verzeichnis liegt wirst du ihn wohl selbst updaten müssen, es sei denn setzt den container komplett neu auf....
                      Was die stable -Version angeht, überlege gerade ob ich die 4.0 heute noch release... 🙂

                      MfG,
                      André

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

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

                        Was die stable -Version angeht, überlege gerade ob ich die 4.0 heute noch release...

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

                        WICHTIG: v4 kommt mit node10. Wenn ihr updatet bitte denkt daran, reinstall.sh auszuführen!

                        MfG,
                        André

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

                          Hallo,

                          hab auf v4 upgedatet aber reinstall.sh funktioniert nicht:

                          root@iobroker_v2:/opt/iobroker# mv reinstall.sh reinstall.dos
                          mv: der Aufruf von stat für 'reinstall.sh' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
                          
                          root@iobroker_v2:/opt/iobroker# ls -la
                          insgesamt 344
                          drwxrwxrwx   8 iobroker iobroker   4096 Okt 26 10:59 .
                          drwxr-xr-x  10 root     root       4096 Okt 26 10:49 ..
                          drwxr-xr-x   2 iobroker iobroker   4096 Okt 21 20:44 cache
                          -rwxrwxrwx   1 iobroker iobroker   1049 Okt 14 03:37 CHANGELOG_FIXER_LINUX.md
                          -rwxrwxrwx   1 iobroker iobroker   3556 Okt 14 03:37 CHANGELOG_INSTALLER_LINUX.md
                          -rwxrwxrwx   1 iobroker iobroker  23988 Okt 14 03:37 fix_installation.sh
                          drwxrwxrwx   3 iobroker iobroker   4096 Okt 20 20:40 install
                          -rwxrwxrwx   1 iobroker iobroker    149 Okt 14 03:42 INSTALLER_INFO.txt
                          lrwxrwxrwx   1 iobroker iobroker     22 Okt 14 03:42 iob -> /opt/iobroker/iobroker
                          -rwxr-xr-x   1 iobroker iobroker    176 Okt 26 10:59 iobroker
                          -rwxr-xr-x   1 iobroker iobroker    176 Okt 26 10:49 iobroker.bak
                          drwxrwxrwx   5 iobroker iobroker   4096 Okt 20 20:40 iobroker-data
                          drwxrwxrwx   2 iobroker iobroker   4096 Okt 20 20:40 lib
                          -rwxrwxrwx   1 iobroker iobroker   1137 Okt 14 03:37 LICENSE
                          drwxrwxrwx   2 iobroker iobroker   4096 Okt 26 10:59 log
                          drwxrwxrwx 802 iobroker iobroker  20480 Okt 25 20:35 node_modules
                          -rwxrwxrwx   1 iobroker iobroker     19 Okt 14 03:38 .npmrc
                          -rwxrwxrwx   1 iobroker iobroker   2484 Okt 25 20:35 package.json
                          -rwxrwxrwx   1 iobroker iobroker 167545 Okt 14 03:42 package-lock.json
                          -rwxrwxrwx   1 iobroker iobroker   6101 Okt 14 03:37 README.md
                          -rwxrwxrwx   1 iobroker iobroker   5738 Okt 23 20:37 reinstall.js
                          root@iobroker_v2:/opt/iobroker#
                          
                          dslraser apollon77 2 Replies Last reply Reply Quote 0
                          • dslraser
                            dslraser Forum Testing Most Active @base last edited by

                            @base
                            bei mir reichte bisher immer ein

                            npm rebuild
                            
                            1 Reply Last reply Reply Quote 0
                            • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            755
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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