Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] ioBroker js-controller Upgrade Wahnsinn

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] ioBroker js-controller Upgrade Wahnsinn

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

      Das kann damit an sich nichts zu tun haben. Da ist was im System komisch. Mal ein

      npm cache clean

      Versucht.

      1 Reply Last reply Reply Quote 0
      • A
        aski71 last edited by

        @apollon77:

        Das kann damit an sich nichts zu tun haben. Da ist was im System komisch. Mal ein

        npm cache clean

        Versucht. `

        Das hatte ich tatsächlich noch nicht versucht.

        Jetzt schon.

        Das Ergebnis bleibt aber das gleiche.

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

          dann mach mal bitte (erneut)

          cd /opt/iobroker
          sudo npm cache clean
          sudo iobroker stop
          sudo npm install iobroker.js-controller
          sudo iobroker start
          

          Viel Glück

          Rainer

          1 Reply Last reply Reply Quote 0
          • A
            aski71 last edited by

            @Homoran:

            dann mach mal bitte (erneut)

            cd /opt/iobroker
            sudo npm cache clean
            sudo iobroker stop
            sudo npm install iobroker.js-controller
            sudo iobroker start
            

            Viel Glück

            Rainer `

            Jepp. Führt genau zu obigem Fehler.

            Egal ob update self oder nom install.

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

              Danke!

              @Apollon77:

              Was ist das für ein Pfad?

              npm ERR! path /opt/iobroker/node_modules/.staging/semver-b9b5964d
              
              

              Gruß

              Rainer

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

                Ein temporärer, der von NPM bei der Installation erstellt wird.

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

                  rechte ??

                  1 Reply Last reply Reply Quote 0
                  • A
                    aski71 last edited by

                    @arteck:

                    rechte ?? `

                    Sollten angesichts sudo doch keine Rolle spielen?

                    Fakt ist aber: Dieser Pfad existiert nicht.

                    1 Reply Last reply Reply Quote 0
                    • Dutchman
                      Dutchman Developer Most Active Administrators last edited by

                      @aski71:

                      @arteck:

                      rechte ?? `

                      Sollten angesichts sudo doch keine Rolle spielen?

                      Fakt ist aber: Dieser Pfad existiert nicht. `

                      trotzdem waere es sinvoll mal:

                      sudo chmod -R 777 /opt/iobroker
                      ````\
                      
                      aus zu fuehren
                      
                      ~Dutch
                      1 Reply Last reply Reply Quote 0
                      • AlCalzone
                        AlCalzone Developer last edited by

                        @aski71:

                        Sollten angesichts sudo doch keine Rolle spielen? `
                        Jein, Unterprozesse werden von npm trotz sudo mit verringerten Rechten ausgeführt, wenn nicht das "–unsafe-perm"-Flag angegeben wird.

                        1 Reply Last reply Reply Quote 0
                        • A
                          aski71 last edited by

                          @AlCalzone:

                          @aski71:

                          Sollten angesichts sudo doch keine Rolle spielen? Jein, Unterprozesse werden von npm trotz sudo mit verringerten Rechten ausgeführt, wenn nicht das "–unsafe-perm"-Flag angegeben wird.

                          Dann folgendes Ergebnis:

                          sudo npm install iobroker.js-controller@1.2.0 --production --prefix "/opt/iobroker" --unsafe-perm
                          npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
                          iobroker@1.0.0 /opt/iobroker
                          ├── mime@1.4.1  extraneous
                          ├── node-schedule@1.2.5  extraneous
                          ├── tar.gz@1.0.7  extraneous
                          ├── winston@2.4.0  extraneous
                          └── winston-daily-rotate-file@1.7.2  extraneous
                          
                          npm ERR! Linux 4.4.0-97-generic
                          npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller@1.2.0" "--production" "--prefix" "/opt/iobroker" "--unsafe-perm"
                          npm ERR! node v6.11.4
                          npm ERR! npm  v3.10.10
                          npm ERR! path /opt/iobroker/node_modules/.staging/semver-b9b5964d
                          npm ERR! code ENOENT
                          npm ERR! errno -2
                          npm ERR! syscall rename
                          
                          npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/semver-b9b5964d' -> '/opt/iobroker/node_modules/npm/node_modules/semver'
                          npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/.staging/semver-b9b5964d' -> '/opt/iobroker/node_modules/npm/node_modules/semver'
                          npm ERR! enoent This is most likely not a problem with npm itself
                          npm ERR! enoent and is related to npm not being able to find a file.
                          npm ERR! enoent 
                          
                          npm ERR! Please include the following file with any support request:
                          npm ERR!     /opt/iobroker/npm-debug.log
                          
                          1 Reply Last reply Reply Quote 0
                          • AlCalzone
                            AlCalzone Developer last edited by

                            Probier mal

                            sudo npm cache clean
                            

                            vor der Installation

                            1 Reply Last reply Reply Quote 0
                            • A
                              aski71 last edited by

                              @AlCalzone:

                              Probier mal

                              sudo npm cache clean
                              

                              vor der Installation `

                              Das hatten wir doch weiter oben schon, oder?

                              Hat auch nicht funktioniert.

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

                                Sorry, hatte ich nicht auf dem Schirm.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  aski71 last edited by

                                  @AlCalzone:

                                  Sorry, hatte ich nicht auf dem Schirm. `

                                  Lieber ein Tipp zu viel, als einer zu wenig.

                                  Hätte das Ding gerne wieder in aktueller Version am Laufen.

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    aski71 last edited by

                                    @Dutchman:

                                    @aski71:

                                    @arteck:

                                    rechte ?? `

                                    Sollten angesichts sudo doch keine Rolle spielen?

                                    Fakt ist aber: Dieser Pfad existiert nicht. `

                                    trotzdem waere es sinvoll mal:

                                    sudo chmod -R 777 /opt/iobroker
                                    ````\
                                    
                                    aus zu fuehren
                                    
                                    ~Dutch `  
                                    

                                    Nope. Gleiches Problem.

                                    Außerdem probiert:

                                    einen````
                                    chown -R root /opt/iobroker

                                    einen````
                                    chgrp -R root /opt/iobroker
                                    

                                    das gleiche mit einem unverdächtigen User und den Upgrade ohne sudo und mit sudo versucht.

                                    Es kommt immer auf's gleiche raus. 😞

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

                                      Dateisystem kaputt?

                                      Man kann so machen:

                                      cd /opt/iobroker
                                      sudo iobroker stop
                                      mv node_modules node_modules_
                                      sudo npm cache clean
                                      npm i npm@latest-3 -g
                                      npm i iobroker.js-controller --production
                                      npm i iobroker.admin --production
                                      npm i iobroker.discovery --production
                                      sudo iobroker start
                                      
                                      

                                      Und warten…. ioBroker installiert dann alle fehlende Adapter.

                                      Achtung! Alle installierte module werden dabei gelöscht (moved) und neu installiert.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aski71 last edited by

                                        @Bluefox:

                                        Dateisystem kaputt?

                                        Man kann so machen:

                                        cd /opt/iobroker
                                        sudo iobroker stop
                                        mv node_modules node_modules_
                                        sudo npm cache clean
                                        npm i npm@latest-3 -g
                                        npm i iobroker.js-controller --production
                                        npm i iobroker.admin --production
                                        npm i iobroker.discovery --production
                                        sudo iobroker start
                                        
                                        

                                        Und warten…. ioBroker installiert dann alle fehlende Adapter.

                                        Achtung! Alle installierte module werden dabei gelöscht (moved) und neu installiert. `

                                        That did the trick!

                                        Danke.

                                        Keine Ahnung, was da schief war…

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

                                          Ich kenne das Problem.

                                          Geholfen hat bei mir dann bisher immer die manuelle Deinstallation des js-controllers. Danach konnte ich den neuen js-controller installieren. http://forum.iobroker.net/viewtopic.php?f=36&t=8209&start=40#p87969 hatte ich es mal für die Version 1.2.0 beschrieben.

                                          Letztlich war es aber der Grund, weshalb ich den ioBroker nun noch mal unter Raspian Stretch komplett neu aufgesetzt habe (bzw. gerade dabei bin). Trotzdem danke an Bluefox für den geposteten Workaround.

                                          Gruß,

                                          Thorsten

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            RobS last edited by

                                            @Bluefox:

                                            Achtung! Alle installierte module werden dabei gelöscht (moved) und neu installiert. `

                                            Gehen denn dabei Einstellungen, Skripte u.s.w. verloren?

                                            Grüße,

                                            Rob

                                            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

                                            944
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            12
                                            24
                                            2930
                                            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