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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [HowTo] ioBroker unter Docker auf Synology DiskStation

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

      @fastfoot
      nein, ist nur schwarz mit dem Promt

      mcBirne 1 Reply Last reply Reply Quote 0
      • mcBirne
        mcBirne @mcBirne last edited by

        Ich habe Version 5.0 installiert

        mcBirne 1 Reply Last reply Reply Quote 0
        • mcBirne
          mcBirne @mcBirne last edited by

          also reicht das Update vom NodeJs.

          F 1 Reply Last reply Reply Quote 0
          • F
            fastfoot @mcBirne last edited by

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

            also reicht das Update vom NodeJs.

            die 5.0 ist doch recht aktuell, was node betrifft, da sollte node12.18.3 drauf sein, die neueste ist 12.18.4, also nicht unbedingt nötig.

            mcBirne 1 Reply Last reply Reply Quote 0
            • mcBirne
              mcBirne @fastfoot last edited by

              @fastfoot
              ok, aber so kann ich es mal ausprobieren. Es ist die 12.18.3 drauf. Wie kann man es auf die 12.18.4 updaten?

              mcBirne 1 Reply Last reply Reply Quote 0
              • mcBirne
                mcBirne @mcBirne last edited by

                @mcBirne
                Die Lösung:
                sudo npm cache clean -f
                sudo npm install -g n
                sudo n stable
                Möchte man eine bestimmte Version installieren, so geht das so:

                Die Version installieren
                sudo n 12.18.4

                Prüfen ob es die aktuelle Version ist
                node -v

                Dann einen Neustart vom IO Broker und es läuft.

                Glasfaser 2 Replies Last reply Reply Quote 0
                • Glasfaser
                  Glasfaser @mcBirne last edited by

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

                  sudo

                  du bist root im Docker !

                  mcBirne 1 Reply Last reply Reply Quote 0
                  • mcBirne
                    mcBirne @Glasfaser last edited by

                    @Glasfaser
                    Ist das nicht nötig für das Update?

                    Glasfaser 1 Reply Last reply Reply Quote 0
                    • Glasfaser
                      Glasfaser @mcBirne last edited by

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

                      Ist das nicht nötig für das Update?

                      Im Docker spielt man nicht rum mit sudo.

                      Update Node/NPM

                      apt update
                      apt upgrade
                      
                      F 1 Reply Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser @mcBirne last edited by

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

                        Prüfen ob es die aktuelle Version ist
                        node -v

                        Was soll das bringen mit einem Befehl prüfen ... wenn du es schief installiert hast bekommt du nur die node und was ist mit nodejs .... und mit dem Verzeichnis Prüfen ob es das richtige ist .

                        schau mal hier ... dort ist es sehr gut von Thomas-Braun erklärt :
                        [HowTo] Nodejs-Installation und Upgrades unter Debian

                        Unter dem Punkt Check erklärt :

                        which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs 
                        
                        1 Reply Last reply Reply Quote 0
                        • F
                          fastfoot @Glasfaser last edited by

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

                          Im Docker spielt man nicht rum mit sudo.

                          hier braucht es sudo um die neueste npm zu installieren, ist jedenfalls bei jedem image von buanet so, gefühlt schon 'immer'

                          root@iobstable:/opt/iobroker# npm install -g npm                                                                                                                                                                                     
                          npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex                                                                                                               
                          npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/cliui/node_modules/strip-ansi                                                                                                               
                          npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/dot-prop                                                                                                                                    
                          npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/configstore                                                                                                                                 
                          usw.
                          

                          die Rechte

                          root@iobstable:/opt/iobroker# ls -la /usr/lib/node_modules/npm/node_modules                                                                                                                                                          
                          insgesamt 1484                                                                                                                                                                                                                       
                          drwxr-xr-x 1 root root 4096 Sep 28 14:12 .                                                                                                                                                                                           
                          drwxr-xr-x 1 root root 4096 Sep 28 14:12 ..                                                                                                                                                                                          
                          drwxr-xr-x 2 root root 4096 Sep 28 14:12 abbrev                                                                                                                                                                                      
                          drwxr-xr-x 2 root root 4096 Sep 28 14:12 agent-base                                                                                                                                                                                  
                          drwxr-xr-x 3 root root 4096 Sep 28 14:12 agentkeepalive         
                          
                          Glasfaser 1 Reply Last reply Reply Quote 0
                          • Glasfaser
                            Glasfaser @fastfoot last edited by

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

                            root@iobstable:/opt/iobroker# npm install -g npm
                            npm WARN checkPermissions Missing write access to ........

                            was kommt bei dir, bei ....

                            root@iobstable:/# npm install -g npm
                            
                            F 1 Reply Last reply Reply Quote 0
                            • F
                              fastfoot @Glasfaser last edited by

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

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

                              root@iobstable:/opt/iobroker# npm install -g npm
                              npm WARN checkPermissions Missing write access to ........

                              was kommt bei dir, bei ....

                              root@iobstable:/# npm install -g npm
                              

                              Auszüge des LOG sind doch in meinem Beitrag oben? Ich vermute dass die Gruppenrechte über den user Rechten stehen, deshalb die Fehler. Bin kein Experte mit Linux oder Docker, aber das wundert mich schon immer und ich habe das bisher auch nur bei dem npm Beispiel erlebt. Mit sudo läuft die installation einwandfrei durch

                              Glasfaser 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @fastfoot last edited by

                                @fastfoot

                                Sorry vielleicht falsch dargestellt ...
                                gehe ins Hauptverzeichniss und nicht im Verzeichniss von ioBroker

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  fastfoot @Glasfaser last edited by

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

                                  @fastfoot

                                  Sorry vielleicht falsch dargestellt ...
                                  gehe ins Hauptverzeichniss und nicht im Verzeichniss von ioBroker

                                  nee, nicht genau geschaut 🙂 und wow, läuft einwandfrei durch! Bestimmt hast du für mich eine Erklärung dazu, das übersteigt deutlich meinen Horizont 😞

                                  Glasfaser 1 Reply Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser @fastfoot last edited by

                                    @fastfoot

                                    Das Verzeichniss wird mit ENV gesetzt auf 1000.

                                    1.JPG

                                    1.JPG

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fastfoot @Glasfaser last edited by

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

                                      @fastfoot

                                      Das Verzeichniss wird mit ENV gesetzt auf 1000.

                                      1.JPG

                                      1.JPG

                                      Das entspricht keinem der Werte meiner NAS user, trotzdem verstehe ich die Konsequenz daraus nicht. Bedeutet das, dass root nicht wirklich root(eig. admin auf der qnap) ist(im container?).
                                      Und wieso klappt es dann aber im root Verzeichnis? Die angemeckerten Verzeichnisse ändern sich doch dadurch nicht?

                                      Glasfaser 1 Reply Last reply Reply Quote 0
                                      • Glasfaser
                                        Glasfaser @fastfoot last edited by

                                        @fastfoot

                                        So ganz genau kann ich es dir nicht erklären ... bin nicht so der Profi ( Erklärbär ) mit den Rechten.
                                        Du bist Root im Docker ... du stehst aber im Verzeichniss ioBroker und dies gehört dem Besitzer 1000 und er lässt es nicht zu das du dann im Verzeichniss /usr/lib/....... etwas installieren darfst .

                                        F 1 Reply Last reply Reply Quote 1
                                        • F
                                          fastfoot @Glasfaser last edited by

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

                                          @fastfoot

                                          So ganz genau kann ich es dir nicht erklären ... bin nicht so der Profi ( Erklärbär ) mit den Rechten.
                                          Du bist Root im Docker ... du stehst aber im Verzeichniss ioBroker und dies gehört dem Besitzer 1000 und er lässt es nicht zu das du dann im Verzeichniss /usr/lib/....... etwas installieren darfst .

                                          ok, mit der Erklärung muss ich wohl erstmal leben, ein dickes Danke dafür! Da wäre ich nie drauf gekommen. Hat das mit Linux oder eher mit Docker zu tun, dass das so ist? Letztlich stellt sich mir dann noch die Frage warum apt upgrade dann immer funktioniert? Und als letzte Frage, sollte ich(man) dann die ENV entsprechend anpassen?

                                          Glasfaser 1 Reply Last reply Reply Quote 1
                                          • Glasfaser
                                            Glasfaser @fastfoot last edited by

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

                                            Letztlich stellt sich mir dann noch die Frage warum apt upgrade dann immer funktioniert?

                                            Berechtigte Frage ..... erwischt ... 😉
                                            ......... 🤔

                                            mcBirne 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

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

                                            557
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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