Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. (gelöst) Hilfe! iobroker Upgrade schlägt fehl!

    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) Hilfe! iobroker Upgrade schlägt fehl!

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

      Hallo,

      Ich hab versucht mein System mit

      sudo ./iobroker stop
      sudo ./iobroker update
      sudo ./iobroker upgrade self

      auf den neuesten Stand zu bringen. Leider gabs dann den folgenden Output:

      marcus@iobroker:/opt/iobroker$ sudo ./iobroker upgrade self
      Update js-controller from @1.4.2 to @3.1.6
      NPM version: 6.13.4
      npm install iobroker.js-controller@3.1.6 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      /opt/iobroker/node_modules/iobroker.js-controller/lib/cli/cliPlugin.js:253
                          } catch {
                                  ^
      
      SyntaxError: Unexpected token {
          at createScript (vm.js:80:10)
          at Object.runInThisContext (vm.js:139:10)
          at Module._compile (module.js:617:28)
          at Object.Module._extensions..js (module.js:664:10)
          at Module.load (module.js:566:32)
          at tryModuleLoad (module.js:506:12)
          at Function.Module._load (module.js:498:3)
          at Module.require (module.js:597:17)
          at require (internal/module.js:11:18)
          at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/cli/index.js:19:17)
      npm WARN notsup Unsupported engine for iobroker.js-controller@3.1.6: wanted: {"node":">=10.0.0"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: iobroker.js-controller@3.1.6
      npm WARN notsup Unsupported engine for mkdirp@1.0.4: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: mkdirp@1.0.4
      npm WARN notsup Unsupported engine for semver@7.3.2: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: semver@7.3.2
      npm WARN notsup Unsupported engine for tar@6.0.5: wanted: {"node":">= 10"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: tar@6.0.5
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      npm WARN notsup Unsupported engine for rsa-compat@2.0.8: wanted: {"node":">=10.12"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: rsa-compat@2.0.8
      npm WARN notsup Unsupported engine for rsa-compat@1.9.4: wanted: {"node":">=10.12"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: rsa-compat@1.9.4
      npm WARN notsup Unsupported engine for chownr@2.0.0: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"})
      npm WARN notsup Not compatible with your version of node/npm: chownr@2.0.0
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.4 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! iobroker.js-controller@3.1.6 install: `node iobroker.js setup first`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the iobroker.js-controller@3.1.6 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/marcus/.npm/_logs/2020-09-26T09_17_50_457Z-debug.log
      Host "iobroker" (linux) updated
      Execute: chmod -R 777 /opt/iobroker
      Chmod finished. Restart controller
      Starting node restart.js
      marcus@iobroker:/opt/iobroker$
      

      Jetzt gibt jeder ./iobroker Befehl nur mehr die folgende Fehlermeldung aus:

      marcus@iobroker:/opt/iobroker$ ./iobroker start
      module.js:550
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Function.Module._resolveFilename (module.js:548:15)
          at Function.Module._load (module.js:475:25)
          at Function.Module.runMain (module.js:694:10)
          at startup (bootstrap_node.js:204:16)
          at bootstrap_node.js:625:3
      marcus@iobroker:/opt/iobroker$
      

      Mein System:
      Ubuntu 18.04 LTS
      KVM VM

      marcus@iobroker:/opt/iobroker$ node -v
      v8.17.0
      marcus@iobroker:/opt/iobroker$ nodejs -v
      v8.17.0
      marcus@iobroker:/opt/iobroker$ npm -v
      6.13.4
      

      Wie kann ich das Upgrade fixen?

      Danke,
      Marcus.

      mikeal created this issue in request/request

      open Request’s Past, Present and Future #3142

      Thomas Braun ? 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @eMarcus last edited by Thomas Braun

        @eMarcus Ohne sudo vorweg. Und du musst node auf node12 aktualisieren.

        js-controller from @1.4.2 to @3.1.6
        

        da hast du aber lange geschlafen.

        E 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @eMarcus last edited by

          @eMarcus erstmal Node upgraden, mit V8 ist schon lange nix mehr..

          E 1 Reply Last reply Reply Quote 0
          • E
            eMarcus @Thomas Braun last edited by

            @Thomas-Braun Ja eh, aber "never change a running system" - und wie man sieht hat mein Upgrade Versuch jetzt gleich mal in einer Downtime geendet 😉

            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
            • E
              eMarcus @Guest last edited by

              @ilovegym Hmm, dann sollte man die offizielle ioBroker Docu ev. auch anpassen, hab gestern erst nachgelesen bevor ich mit dem Update begonnen habe, und da wird noch davon gesprochen, dass 8 voll ok ist und 10 empfohlen und von 12 abgeraten!

              https://www.iobroker.net/#de/documentation/install/updatenode.md

              Aber Danke, dann werd ich das mal jetzt angehen!

              bye
              Marcus.

              crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @eMarcus last edited by Homoran

                @eMarcus sagte in Hilfe! iobroker Upgrade schlägt fehl!:

                wie man sieht hat mein Upgrade Versuch jetzt gleich mal in einer Downtime geendet

                klar, weil das Grundsystem zu alt für die neuen Versionen ist.

                @eMarcus sagte in Hilfe! iobroker Upgrade schlägt fehl!:

                "never change a running system"

                ist genau der Grund dafür.

                @eMarcus sagte in Hilfe! iobroker Upgrade schlägt fehl!:

                dann sollte man die offizielle ioBroker Docu ev. auch anpassen, hab gestern erst nachgelesen bevor ich mit dem Update begonnen habe, und da wird noch davon gesprochen, dass 8 voll ok ist und 10 empfohlen und von 12 abgeraten!
                https://www.iobroker.net/#de/documentation/install/updatenode.md

                das muss schon sehr alt sein - sehe ich direkt nach, denn v8 ist EOL

                EDIT: Zuletzt geändert: 30.05.2019 steht drunter
                und 16 Monate sind schon Generationen bei EDV-Projekten

                1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @eMarcus last edited by Thomas Braun

                  @eMarcus Falscher Ansatz. Jedenfalls über solch einen langen Zeitraum. Jetzt haste gleich 'ne Großbaustelle. Besser regelmäßig das System aktuell halten.

                  E 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @eMarcus last edited by

                    @eMarcus aber dafür gibt es hier rechts so nen Kasten, er blinkt zwar nicht und gibt auch keinen laut von sich, aber er leuchtet in einem erfreulich strahlendem ROT
                    aber richtig, die Doku ist leider etwas hinterher(man kann sich zeitlich halt nun mal nicht um alles kümmern und wegen jeder Änderung sofort anpassen)

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @eMarcus last edited by

                      @eMarcus Ist das Betriebssystem auch so aktuell wie der ioBroker?
                      Dann würde ich damit anfangen, dann node auf den 12er-Zweig und erst dann den ioBroker.

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        eMarcus @Thomas Braun last edited by

                        @Thomas-Braun Nein, das OS ist aktuell (also 18.04 LTS halt, aber regelmäßig mit apt dist-upgrade am Laufenden gehalten).

                        1 Reply Last reply Reply Quote 0
                        • E
                          eMarcus @Thomas Braun last edited by

                          @Thomas-Braun, Also eigentlich lief das Update jetzt ziemlich problemlos. Wie von Dir geraten zuerst nodejs hochgezogen, danach ioBroker und die Adapter. Lief alles ohne Probleme durch!

                          Danke!

                          Marcus.

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @eMarcus last edited by

                            @eMarcus

                            which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                            
                            E 1 Reply Last reply Reply Quote 0
                            • E
                              eMarcus @Thomas Braun last edited by

                              @Thomas-Braun said in Hilfe! iobroker Upgrade schlägt fehl!:

                              which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs

                              marcus@iobroker:~$ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                              /usr/bin/nodejs
                              v12.18.4
                              /usr/bin/node
                              v12.18.4
                              /usr/bin/npm
                              6.14.6
                              nodejs:
                                Installiert:           12.18.4-1nodesource1
                                Installationskandidat: 12.18.4-1nodesource1
                                Versionstabelle:
                               *** 12.18.4-1nodesource1 500
                                      500 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages
                                      100 /var/lib/dpkg/status
                                   8.17.0-1nodesource1 500
                                      500 https://deb.nodesource.com/node_8.x bionic/main amd64 Packages
                                   8.10.0~dfsg-2ubuntu0.4 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
                                   8.10.0~dfsg-2ubuntu0.2 500
                                      500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
                                   8.10.0~dfsg-2 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                              marcus@iobroker:~$
                              
                              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

                              823
                              Online

                              31.9k
                              Users

                              80.2k
                              Topics

                              1.3m
                              Posts

                              iobroker upgrade js-controller
                              5
                              13
                              715
                              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