Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. iobroker kaputt nach NodeJS Update

    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

    iobroker kaputt nach NodeJS Update

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      michaelheiml @Thomas Braun last edited by michaelheiml

      @thomas-braun

      Ich habe diesen Schritt als erstes durchgeführt und das auch in meinem Text beschrieben (unter 2). Das hatte nichts geändert/geholfen, Adapter konnten trotzdem nicht aktualisiert werden.

      Problem jetzt ist ja vielmehr, dass ich iobroker überhaupt nicht mehr starten kann. (siehe letzter Fehler).

      Gibt es einen Weg, iobroker sicher zu löschen und neu zu installieren, damit ich anschließend zumindest versuchen kann, das Backup wieder einzuspielen von BackItUp? (/opt/iobroker löschen reicht?)

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

        @michaelheiml sagte in iobroker kaputt nach NodeJS Update:

        Das hatte nichts geändert/geholfen, Adapter konnten trotzdem nicht aktualisiert werden.

        Mit welchen Meldungen? (Vermutlich jetzt müßig...)

        Erstmal schauen wie du da jetzt überhaupt unterwegs bist:

        sudo ln -s /usr/bin/node /usr/bin/nodejs
        uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        
        M 2 Replies Last reply Reply Quote 0
        • M
          michaelheiml @Thomas Braun last edited by

          @thomas-braun
          sudo ln -s /usr/bin/node /usr/bin/nodejs

          Ausgabe:
          ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits

          uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs

          Ausgabe:
          armv7l
          /usr/bin/nodejs
          /usr/bin/node
          /usr/bin/npm
          v16.17.1
          v16.17.1
          8.15.0
          node:internal/modules/cjs/loader:959
          throw err;
          ^

          Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
          at Function.Module._load (node:internal/modules/cjs/loader:804:27)
          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
          at node:internal/main/run_main_module:17:47 {
          code: 'MODULE_NOT_FOUND',
          requireStack: []
          }

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

            @michaelheiml

            
            uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
            
            M 1 Reply Last reply Reply Quote 0
            • M
              michaelheiml @Thomas Braun last edited by michaelheiml

              @thomas-braun said in iobroker kaputt nach NodeJS Update:

              uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs

              armv7l
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v16.17.1
              v16.17.1
              8.15.0
              pi
              pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
              /opt/iobroker

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

                @michaelheiml

                Da muss mehr kommen...

                Und bitte CodeTags verwenden.

                M 2 Replies Last reply Reply Quote 0
                • M
                  michaelheiml @Thomas Braun last edited by

                  @thomas-braun

                  Ja.. gerade bemerkt.. einen Moment

                  1 Reply Last reply Reply Quote 0
                  • M
                    michaelheiml @Thomas Braun last edited by

                    @thomas-braun

                    armv7l
                    /usr/bin/nodejs
                    /usr/bin/node
                    /usr/bin/npm
                    v16.17.1
                    v16.17.1
                    8.15.0
                    pi
                    pi adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi iobroker
                    /opt/iobroker
                    OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                    OK:2 http://archive.raspberrypi.org/debian buster InRelease                                             
                    OK:3 https://downloads.plex.tv/repo/deb public InRelease                                                
                    OK:4 https://deb.nodesource.com/node_16.x buster InRelease                                          
                    OK:5 https://linux.teamviewer.com/deb stable InRelease
                    Paketlisten werden gelesen... Fertig
                    Abhängigkeitsbaum wird aufgebaut.       
                    Statusinformationen werden eingelesen.... Fertig
                    Alle Pakete sind aktuell.
                    nodejs:
                      Installiert:           16.17.1-deb-1nodesource1
                      Installationskandidat: 16.17.1-deb-1nodesource1
                      Versionstabelle:
                     *** 16.17.1-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                            100 /var/lib/dpkg/status
                         10.24.0~dfsg-1~deb10u2 500
                            500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                    
                    Thomas Braun 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @michaelheiml last edited by

                      @michaelheiml

                      Was willst du denn mit teamviewer auf einem Server? Kommandozeile per RemoteDesktop? SSH und Terminal ist angesagt...

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

                        @michaelheiml

                        iobroker stop
                        pkill -u iobroker 
                        cd /opt/iobroker
                        sudo -H -u iobroker npm install iobroker.js-controller
                        
                        M 1 Reply Last reply Reply Quote 0
                        • M
                          michaelheiml @Thomas Braun last edited by

                          @thomas-braun

                          Ja Kommandozeile via Remote Desktop.

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

                            @michaelheiml sagte in iobroker kaputt nach NodeJS Update:

                            Ja Kommandozeile via Remote Desktop.

                            Ziemlicher Quark, oder?

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              michaelheiml @Thomas Braun last edited by

                              @thomas-braun

                              Nö weil ich auch andere Sachen mit dem Raspi mache, die ich via GUI schneller erledigen kann.

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

                                @michaelheiml

                                Ist trotzdem Quark, wenn ich per SSH mit viel weniger Overhead auf die Kiste komme.
                                Ausgaben zu den Befehlen?

                                1 Reply Last reply Reply Quote 0
                                • M
                                  michaelheiml @Thomas Braun last edited by michaelheiml

                                  @thomas-braun

                                  @thomas-braun said in iobroker kaputt nach NodeJS Update:

                                  Mit welchen Meldungen? (Vermutlich jetzt müßig...)

                                  Es kam exakt wieder dieselbe Meldung mit Fehler 25. Und ich konnte die Adapter, die sich nicht mehr aktualisieren ließen, dennoch deinstallieren, aber dann nicht mehr neu installieren. Auch das manuelle Löschen der .-XYZ Ordner hat daran nichts verändert.

                                  Das letzte Logfile von heute, bevor iobroker nicht mehr startete, hätte ich sogar noch falls es dich interessiert.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    michaelheiml @Thomas Braun last edited by

                                    @thomas-braun

                                    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 har-validator@5.1.5: this library is no longer supported
                                    npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                                    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                    npm ERR! code 1
                                    npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                                    npm ERR! command failed
                                    npm ERR! command sh /tmp/install-d8eb892e.sh
                                    npm ERR! node:internal/modules/cjs/loader:372
                                    npm ERR!       throw err;
                                    npm ERR!       ^
                                    npm ERR! 
                                    npm ERR! Error: Cannot find module '/opt/iobroker/node_modules/jsonwebtoken/index.js'. Please verify that the package.json has a valid "main" entry
                                    npm ERR!     at tryPackage (node:internal/modules/cjs/loader:364:19)
                                    npm ERR!     at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
                                    npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
                                    npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:804:27)
                                    npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19)
                                    npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                                    npm ERR!     at Object.<anonymous> (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:10:13)
                                    npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                    npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                                    npm ERR!     at Module.load (node:internal/modules/cjs/loader:1004:32) {
                                    npm ERR!   code: 'MODULE_NOT_FOUND',
                                    npm ERR!   path: '/opt/iobroker/node_modules/jsonwebtoken/package.json',
                                    npm ERR!   requestPath: 'jsonwebtoken'
                                    npm ERR! }
                                    
                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /home/iobroker/.npm/_logs/2022-10-10T19_34_15_220Z-debug-0.log
                                    
                                    mikeal created this issue in request/request

                                    open Request’s Past, Present and Future #3142

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

                                      @michaelheiml

                                      cat /opt/iobroker/node_modules/jsonwebtoken/index.js
                                      
                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        michaelheiml @Thomas Braun last edited by

                                        @thomas-braun

                                        cat: /opt/iobroker/node_modules/jsonwebtoken/index.js: Datei oder Verzeichnis nicht gefunden
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @michaelheiml last edited by

                                          @michaelheiml

                                          iob fix
                                          

                                          sagt?

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            michaelheiml @Thomas Braun last edited by

                                            @thomas-braun

                                            ==========================================================================
                                                Installing prerequisites (1/3)
                                            ==========================================================================
                                            
                                            OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                                            OK:2 https://downloads.plex.tv/repo/deb public InRelease                                                
                                            OK:3 https://linux.teamviewer.com/deb stable InRelease                                                  
                                            OK:4 http://archive.raspberrypi.org/debian buster InRelease                                             
                                            OK:5 https://deb.nodesource.com/node_16.x buster InRelease                                   
                                            Paketlisten werden gelesen... Fertig                                 
                                            Installed gcc-c++
                                            
                                            ==========================================================================
                                                Checking ioBroker user and directory permissions (2/3)
                                            ==========================================================================
                                            
                                            Created /etc/sudoers.d/iobroker
                                            Fixing directory permissions...
                                            
                                            ==========================================================================
                                                Checking autostart (3/3)
                                            ==========================================================================
                                            
                                            Enabling autostart...
                                            Autostart enabled!
                                            
                                            ==========================================================================
                                            
                                                Your installation was fixed successfully
                                                Run iobroker start to start ioBroker again!
                                            
                                            ==========================================================================
                                            
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            604
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            75
                                            3721
                                            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