Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Upgrad js-controller 1.2.3 -> 1.2.6 = Fehler

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Upgrad js-controller 1.2.3 -> 1.2.6 = Fehler

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

      Da es auch bei mir Probleme gab mit dem Update auf 1.2.6.

      Dort wurden dann einfach einige Adapter nicht mehr gestartet oder einfach beendet habe ich nun nach der Anleitung hier die Node aktualisiert.

      Nun läuft es auf 1.2.6 so wie es scheint, jedoch kann ich kein Update auf 1.2.7 machen dann bekomme ich diese Meldung.

      ` > Update js-controller from @1.2.6 to @1.2.7

      NPM version: 5.6.0

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      NPM 5 is only supported starting with version 5.7.1!

      Please use "npm install -g npm@4" to downgrade npm to 4.x or

      use to install a supported version of npm 5!

      You need to make sure to repeat this step after installing an update to NodeJS and/or npm

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! `

      Ok dachte ich schau ich mal welche Version von NPM ich habe raus kam 3.10.10.

      Dann habe ich der Anweisung im dortigen Text gefolgt aber ohne Erfolg.

      Ich habe "npm install -g npm@>=5.7.1" ausgeführt aber das führte zu folgendem Fehler.

      ` > npm install -g npm@=>5.7.1

      npm ERR! Linux 4.9.0-3-amd64

      npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "install" "-g" "npm@="

      npm ERR! node v9.8.0

      npm ERR! npm v3.10.10

      npm ERR! code ETARGET

      npm ERR! notarget No compatible version found: npm@=

      npm ERR! notarget Valid install targets:

      npm ERR! notarget 5.7.1, 5.7.0, 5.6.0, 5.5.1, 5.5.0, 5.4.2, 5.4.1, 5.4.0, 5.3.0, 5.2.0, 5.1.0, 5.0.4, 5.0.3, 5.0.2, 5.0.1, 5.0.0, 4.6.1, 4.6.0, 4.5.0, 4.4.4, 4.4.3, 4.4.2, 4.4.1, 4.4.0, 4.3.0, 4.2.0, 4.1.2, 4.1.1, 4.1.0, 4.0.5, 4.0.3, 4.0.2, 4.0.1, 4.0.0, 3.10.10, 3.10.9, 3.10.8, 3.10.7, 3.10.6, 3.10.5, 3.10.4, 3.10.3, 3.10.2, 3.10.1, 3.10.0, 3.9.6, 3.9.5, 3.9.4, 3.9.3, 3.9.2, 3.9.1, 3.9.0, 3.8.9, 3.8.8, 3.8.7, 3.8.6, 3.8.5, 3.8.4, 3.8.3, 3.8.2, 3.8.1, 3.8.0, 3.7.5, 3.7.4, 3.7.3, 3.7.2, 3.7.1, 3.7.0, 3.6.0, 3.5.4, 3.5.3, 3.5.2, 3.5.1, 3.5.0, 3.4.1, 3.4.0, 3.3.12, 3.3.11, 3.3.10, 3.3.9, 3.3.8, 3.3.7, 3.3.6, 3.3.5, 3.3.4, 3.3.3, 3.3.2, 3.3.1, 3.3.0, 3.2.2, 3.2.1, 3.2.0, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.0, 2.15.12, 2.15.11, 2.15.10, 2.15.9, 2.15.8, 2.15.7, 2.15.6, 2.15.5, 2.15.4, 2.15.3, 2.15.2, 2.15.1, 2.15.0, 2.14.22, 2.14.21, 2.14.20, 2.14.19, 2.14.18, 2.14.17, 2.14.16, 2.14.15, 2.14.14, 2.14.13, 2.14.12, 2.14.11, 2.14.10, 2.14.9, 2.14.8, 2.14.7, 2.14.6, 2.14.5, 2.14.4, 2.14.3, 2.14.2, 2.14.1, 2.14.0, 2.13.5, 2.13.4, 2.13.3, 2.13.2, 2.13.1, 2.13.0, 2.12.1, 2.12.0, 2.11.3, 2.11.2, 2.11.1, 2.11.0, 2.10.1, 2.10.0, 2.9.1, 2.9.0, 2.8.4, 2.8.3, 2.8.2, 2.8.1, 2.8.0, 2.7.6, 2.7.5, 2.7.4, 2.7.3, 2.7.2, 2.7.1, 2.7.0, 2.6.1, 2.6.0, 2.5.1, 2.5.0, 2.4.1, 2.4.0, 2.3.0, 2.2.0, 2.1.18, 2.1.17, 2.1.16, 2.1.15, 2.1.14, 2.1.13, 2.1.12, 2.1.11, 2.1.10, 2.1.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 2.0.1, 2.0.0, 2.0.0-beta.3, 2.0.0-beta.2, 2.0.0-beta.1, 2.0.0-beta.0, 2.0.0-alpha-5, 2.0.0-alpha.7, 2.0.0-alpha.6.0, 2.0.0-alpha.6, 1.5.0-alpha-4, 1.5.0-alpha-3, 1.5.0-alpha-2, 1.5.0-alpha-1, 1.5.0-alpha-0, 1.4.29, 1.4.28, 1.4.27, 1.4.26, 1.4.25, 1.4.24, 1.4.23, 1.4.22, 1.4.21, 1.4.20, 1.4.19, 1.4.18, 1.4.17, 1.4.16, 1.4.15, 1.4.14, 1.4.13, 1.4.12, 1.4.11, 1.4.10, 1.4.9, 1.4.8, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0, 1.3.26, 1.3.25, 1.3.24, 1.3.23, 1.3.22, 1.3.21, 1.3.20, 1.3.18, 1.3.17, 1.3.16, 1.3.15, 1.3.14, 1.3.13, 1.3.12, 1.3.11, 1.3.10, 1.3.9, 1.3.8, 1.3.7, 1.3.6, 1.3.5, 1.3.4, 1.3.2, 1.3.1, 1.3.0, 1.2.8000, 1.2.32, 1.2.31, 1.2.30, 1.2.28, 1.2.27, 1.2.25, 1.2.24, 1.2.23, 1.2.22, 1.2.21, 1.2.20, 1.2.19, 1.1.71, 1.1.70, 1.1.25

      npm ERR! notarget

      npm ERR! notarget This is most likely not a problem with npm itself.

      npm ERR! notarget In most cases you or one of your dependencies are requesting

      npm ERR! notarget a package version that doesn't exist.

      npm ERR! Please include the following file with any support request:

      npm ERR! /home/io/npm-debug.log `

      Hoffe ihr könnt mir da weiterhelfen.

      Wie gesagt bisher scheint es mit der Versio 1.2.6 zu laufen aber wenn ich später noch updaten will ist es wohl unausweichlich die NPM upzudaten.

      MFG Maggi

      1 Reply Last reply Reply Quote 0
      • M
        MrLee last edited by

        Moin!

        Habe auf 2 Hosts keine Probleme gehabt und auf dem Raspi mit node8 ebenfalls die Warnmeldung.

        Bei mir half:

        npm i -g npm

        (allerdings 2 mal…)

        bis denne

        Mr.Lee

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

          @csamaggi:

          Ich habe "npm install -g npm@>=5.7.1" ausgeführt aber das führte zu folgendem Fehler.

          npm install -g npm@=>5.7.1
          ```` `  
          

          Ne hast du nicht. Du hast > und = vertauscht 😉 ">=" ist richtig, "=>" falsch!

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

            Ich Dusel, danke AlCalzone.

            Wieder selbst zu schnell gewesen und nicht richtig gelesen.

            MFG Maggi

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

              @MrLee:

              Moin!

              Habe auf 2 Hosts keine Probleme gehabt und auf dem Raspi mit node8 ebenfalls die Warnmeldung.

              Bei mir half:

              npm i -g npm

              (allerdings 2 mal…)

              bis denne

              Mr.Lee `

              Der Tipp war Gold Wert.

              Nachdem ich gestern auf meinem Host auf 1.2.6 bin heute dann auf 1.2.7 aber wie zu erwarten nicht ohne Probleme.

              Letztendlich bin ich dann auf diese Zeile aufmerksam geworden nachdem ich einmal````
              npm -i -g npm

              
              

              npm WARN npm@2.15.12 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.

              
              

              root@openmediavault /opt/iobroker > npm install iobroker.js-controller --production
              npm WARN deprecated localhost.daplie.me-certificates@1.3.5: this package has been deprecated
              npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!
              npm WARN npm@2.15.12 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
              npm WARN winston-daily-rotate-file@1.7.2 requires a peer of winston@2.x but none is installed. You must install peer dependencies yourself.

              npm ERR! path /opt/iobroker/node_modules/npm/node_modules/abbrev
              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/npm/node_modules/abbrev' -> '/opt/iobroker/node_modules/npm/node_modules/.abbrev.DELETE'
              npm ERR! enoent This is related to npm not being able to find a file.
              npm ERR! enoent

              npm ERR! A complete log of this run can be found in:
              npm ERR! /root/.npm/_logs/2018-03-09T19_31_13_963Z-debug.log

              
              Obwohl ich bei der Abfrage nach Node und NPM wie auch im log zu sehen diese Versionen hatte:
              
              

              npm ERR! node v6.13.1
              npm ERR! npm v3.10.10

              
              Wird scheinbar bei der JS-Controller installation auf eine "globale" NPM installation zurück gegriffen!?
              
              Interessanter weise habe ich jetzt folgende Versionen:
              
              

              root@openmediavault /opt/iobroker > npm -v
              5.7.1
              root@openmediavault /opt/iobroker > node -v
              v6.13.1

              
              Wer weiß was das wieder für Probleme verursacht… :cry:
              
              EDIT: 22 Instanzen bleiben auf ROT
              
              Ich habe keine Lust mehr :roll:
              1 Reply Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer last edited by

                @wendy2702:

                Obwohl ich bei der Abfrage nach Node und NPM wie auch im log zu sehen diese Versionen hatte:

                npm ERR! node v6.13.1
                npm ERR! npm  v3.10.10
                

                Wird scheinbar bei der JS-Controller installation auf eine "globale" NPM installation zurück gegriffen!?

                Interessanter weise habe ich jetzt folgende Versionen:

                root@openmediavault /opt/iobroker > npm -v
                5.7.1
                root@openmediavault /opt/iobroker > node -v
                v6.13.1
                
                ```` `  
                

                Hast du 2 NPM mit unterschiedlichen Versionen parallel installiert? Was gibt

                which npm
                

                aus?

                > Wird scheinbar bei der JS-Controller installation auf eine "globale" NPM installation zurück gegriffen!?
                npm sollte IMMER global installiert sein

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

                  Guten Morgen,

                  bei der Installation von NPM und Node habe ich mich bisher immer an diese Anleitung gehalten:

                  http://www.iobroker.net/docu/?page_id=5106&lang=de

                  Abfrage ergibt das:

                  root@openmediavault ~ > which npm
                  /usr/bin/npm
                  
                  

                  Was bedeutet das jetzt für mich?

                  Sollte ich passend zu NPM5 auch Node upgraden?

                  Danke

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

                    Ich wundere mich nur, dass du in deinen Logs sowohl 3.10.10 (von npm -v) als auch 5.7.1 (von js-controller erkant) hast.

                    Die Ausgabe stimmt mit meiner überein, das sagt erst mal nix.

                    Was ich gerade festgestellt habe…

                    Der empfohlene Befehl zum npm-Update hat einen Fehler. Es muss

                    sudo npm i -g "npm@>=5.7.1"
                    

                    heißen (mit Anführungszeichen!), NICHT

                    sudo npm i -g npm@>=5.7.1
                    

                    –-

                    Aber du bist ja schon einen Schritt weiter:
                    > EDIT: 22 Instanzen bleiben auf ROT
                    Was sagt der ioBroker-Log?

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

                      Hallo Mirko,

                      Ich denke wir sollten uns mal zusammensetzen.

                      Gottseidank ist es herzogenrath und nicht Herzogenaurach 😛

                      "Spielst" du an deiner produktiven Umgebung?

                      Gruß Rainer

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

                        Da mit den Instanzen hat sich gestern Nacht erledigt.

                        Nach einem iobroker restart hat er alle Instanzen mit dem NPM 5.7.1 neu installiert.

                        Hat nur ein wenig gedauert und ich hatte keine Lust mehr zu warten.

                        Aktuell läuft er wieder.

                        Bleibt nur noch die Frage nach kombination Node & NPM ?

                        Achja, und was mache ich mit meinen Slaves?

                        Die sehen alle so aus:

                        pi@iobroker-garage-gross:~ $ which npm
                        /usr/bin/npm
                        pi@iobroker-garage-gross:~ $ npm -v
                        3.10.10
                        pi@iobroker-garage-gross:~ $ node -v
                        v6.13.1
                        pi@iobroker-garage-gross:~ $
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • wendy2702
                          wendy2702 last edited by

                          @Homoran:

                          Hallo Mirko,

                          Ich denke wir sollten uns mal zusammensetzen.

                          Gottseidank ist es herzogenrath und nicht Herzogenaurach 😛

                          "Spielst" du an deiner produktiven Umgebung?

                          Gruß Rainer `

                          Hi Rainer,

                          willst du mir die Ohren lang ziehen !? 😄

                          Nächste Woche ist es eher Herzogenaurach 😉

                          Ja, ist mein Produktiv System aber keine Panik… davon habe ich quasi 2. Bedeutet immer eine SSD mit Backup vorhanden.

                          Gruß

                          Mirko

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

                            @wendy2702:

                            willst du mir die Ohren lang ziehen !? `
                            Eher nicht!

                            @wendy2702:

                            Nächste Woche ist es eher Herzogenaurach `
                            Das passt, ich auch :lol:

                            In upper Bavaria!

                            @wendy2702:

                            immer eine SSD mit Backup vorhanden `
                            Gottseidank!

                            Gruß Rainer

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

                              > Nach einem iobroker restart hat er alle Instanzen mit dem NPM 5.7.1 neu installiert.
                              Das klingt mir doch schwer danach als stimmt was mit der Update-Reihenfolge nicht.

                              Erst JS-Controller auf >=1.2.6

                              Dann NPM auf >5

                              Dann Adapter updaten.

                              Ich werde nen PR erstellen, um diesen Fallstrick aus der Welt zu räumen.

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

                                Hört sich gut an.

                                Kann/soll ich meine Slave installationen so lassen wie sie sind oder besser upgraden?

                                Wäre schön wenn jemand eine Empfehlung abgeben könnte.

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

                                  lass die doch laufen .. solange du nicht upgraden musst ..

                                  bzw. probleme mit der Master kommunikation auftreten.. ..

                                  aber ich sehe schon eine Lavine auf uns zukommen .. die Konflikte zwischen dem Installieren des js-controller und Node version zu NPM sind nicht ohne

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

                                    @arteck:

                                    die Konflikte zwischen dem Installieren des js-controller und Node version zu NPM sind nicht ohne `
                                    Bin schon dran 😉

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

                                      @csamaggi:

                                      Ich habe "npm install -g npm@>=5.7.1" ausgeführt aber das führte zu folgendem Fehler. `

                                      Der Befehl muss lauten:

                                      npm install -g "npm@>=5.7.1"
                                      

                                      Sonst wird nur "npm install -g npm@" ausgeführt und STDOUT in die Datei "=5.7.1" umgeleitet.

                                      EDIT: AlCalzone war schneller 😄

                                      Sollte man vielleicht bei der Ausgabe von ioBroker anpassen.

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

                                        @arteck:

                                        lass die doch laufen .. solange du nicht upgraden musst ..

                                        bzw. probleme mit der Master kommunikation auftreten.. ..

                                        aber ich sehe schon eine Lavine auf uns zukommen .. die Konflikte zwischen dem Installieren des js-controller und Node version zu NPM sind nicht ohne `

                                        OK.

                                        Hast recht. Aktuell läuft es ja.

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

                                          @cernst1980:

                                          Sollte man vielleicht bei der Ausgabe von ioBroker anpassen. `
                                          Inzwischen geht auch @latest, das haben wir schon eingebaut.

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

                                            So,

                                            hab auf 1.2.7 upgedated. ioBroker funktioniert nicht mehr…was habe ich gemacht

                                            1)````
                                            cd /opt/iobroker
                                            sudo iobroker stop
                                            sudo iobroker update
                                            sudo iobroker upgrade self
                                            sudo iobroker start

                                            
                                            danach nur noch Fehler, dann weiter mit
                                            
                                            2)````
                                            cd /opt/iobroker
                                            iobroker stop
                                            npm cache clean
                                            npm install iobroker.js-controller --production
                                            npm install iobroker.admin
                                            iobroker start
                                            

                                            weiterhin massenhaft Fehler. Also meine Idee…machste es halt nochmal gemäß Anleitung auf der Homepage

                                            ! ````
                                            Auf bereits vorhandene Versionen von nodejs und npm testen.
                                            node -v
                                            nodejs -v
                                            npm -v
                                            sudo apt-get --purge remove node
                                            sudo apt-get --purge remove nodejs
                                            sudo apt-get autoremove
                                            sudo reboot
                                            curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                            sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
                                            reboot

                                            
                                            Hilft alles nix :( Bisher haben oben genannte Befehle immer dazu geführt, dass ioBroker wieder lief. Ich habe bei dem Befehl
                                            
                                            ioBroker start
                                            
                                            folgende Fehlermeldungen:
                                            
                                            >! ````
                                            root@raspberrypi3:~# iobroker start
                                            Starting iobroker controller daemon...
                                            /opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136
                                                        throw new Error(msg.error);
                                                        ^
                                            >! Error: TypeError: common.log is not a function
                                                at DailyRotateFile.log (/opt/iobroker/node_modules/winston-daily-rotate-file/index.js:215:23)
                                                at transportLog (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/winston/lib/winston/logger.js:234:15)
                                                at /opt/iobroker/node_modules/iobroker.js-controller/node_modules/async/lib/async.js:157:13
                                                at _each (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/async/lib/async.js:57:9)
                                                at Object.async.each (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/async/lib/async.js:156:9)
                                                at Logger.log (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/winston/lib/winston/logger.js:246:9)
                                                at target.(anonymous function) [as info] (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/winston/lib/winston/common.js:54:18)
                                                at init (/opt/iobroker/node_modules/iobroker.js-controller/controller.js:2493:12)
                                                at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/controller.js:2605:1)
                                                at Module._compile (module.js:577:32)
                                                at ChildProcess. <anonymous>(/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136:19)
                                                at emitTwo (events.js:106:13)
                                                at ChildProcess.emit (events.js:191:7)
                                                at process.nextTick (internal/child_process.js:787:12)
                                                at _combinedTickCallback (internal/process/next_tick.js:73:7)
                                                at process._tickCallback (internal/process/next_tick.js:104:9)
                                            root@raspberrypi3:~#</anonymous></anonymous> 
                                            

                                            Weiß jetzt leider auch nicht mehr weiter…vielleicht weiß jemand Rat.

                                            PS:````
                                            "npm install -g npm@>=5.7.1"

                                            
                                            PS: Rainer, ist meine produktive Umgebung. Läuft seit über 1 Jahr :(
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            473
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            12
                                            39
                                            4215
                                            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