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

      rm -rf /opt/iobroker/
      

      Das BackItUp Backup sollte ich danach wieder einspielen können, wenn ich den BackItUp Adapter installiere?

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

        @michaelheiml

        
        for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
        
        M 1 Reply Last reply Reply Quote 0
        • M
          michaelheiml @Thomas Braun last edited by michaelheiml

          @thomas-braun

          Ausgeführt, und jetzt? (Das ist der Befehl zum Löschen der versteckten Ordner, nicht?)

          pi@raspberrypi:/opt/iobroker $ npm list
          iobroker.inst@3.0.0 /opt/iobroker
          ├── bower@1.8.14 extraneous
          ├── iobroker.admin@6.2.22 invalid: "stable" from the root project
          ├── iobroker.backitup@2.4.12 invalid: "stable" from the root project
          ├── iobroker.discovery@3.0.3 invalid: "stable" from the root project
          ├── iobroker.flot@1.11.0
          ├── iobroker.habpanel@0.5.0 extraneous
          ├── iobroker.js-controller@4.0.23 invalid: "stable" from the root project
          ├── iobroker.upnp@1.0.19
          └── iobroker.vis@1.4.15
          
          npm ERR! code ELSPROBLEMS
          npm ERR! extraneous: bower@1.8.14 /opt/iobroker/node_modules/bower
          npm ERR! invalid: iobroker.admin@6.2.22 /opt/iobroker/node_modules/iobroker.admin
          npm ERR! invalid: iobroker.backitup@2.4.12 /opt/iobroker/node_modules/iobroker.backitup
          npm ERR! invalid: iobroker.discovery@3.0.3 /opt/iobroker/node_modules/iobroker.discovery
          npm ERR! extraneous: iobroker.habpanel@0.5.0 /opt/iobroker/node_modules/iobroker.habpanel
          npm ERR! invalid: iobroker.js-controller@4.0.23 /opt/iobroker/node_modules/iobroker.js-controller
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/iobroker/.npm/_logs/2022-10-10T20_57_41_547Z-debug-0.log
          
          Thomas Braun M 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @michaelheiml last edited by

            @michaelheiml

            Hast du die package.json umbenannt?

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

              @michaelheiml

              Oh, ich komme wieder auf die Webseite. Muss ich das verstehen?
              Ja, vis, upnp, flot und habpanel hatte ich installiert (dachte gerade, wenn die jetzt gelistet sind, wird iobroker versuchen, meine Module wiederherzustellen -> daher Zugriffsversuch auf die Seite)

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

                @thomas-braun

                Nein. Aber es steht jetzt mehr drin.

                Ich versteh nicht, was hier passiert gerade.

                http://192.168.1.254:8081/#tab-adapters ist wieder erreichbar, aber es sind nur 4 meiner früheren Adapter sichtbar.

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

                  @michaelheiml

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

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

                    iobroker update

                    pi@raspberrypi:/opt/iobroker $ iobroker update
                    Used repository: stable
                    Adapter    "admin"        : 6.2.22   , installed 6.2.22
                    Adapter    "backitup"     : 2.4.12   , installed 2.4.12
                    Adapter    "discovery"    : 3.0.5    , installed 3.0.3  [Updatable]
                    Adapter    "flot"         : 1.11.0   , installed 1.11.0
                    Adapter    "habpanel"     : 0.5.0    , installed 0.5.0
                    Controller "js-controller": 4.0.23   , installed 4.0.23
                    Adapter    "upnp"         : 1.0.21   , installed 1.0.19 [Updatable]
                    Adapter    "vis"          : 1.4.15   , installed 1.4.15
                    
                    
                    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:

                      aber es sind nur 4 meiner früheren Adapter sichtbar.

                      Hau dein Backup rein.

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

                        @thomas-braun

                        Moment, da muss ich jetzt nur noch rausfinden, wie das geht, mach ich zum ersten Mal.

                        Ok, läuft..

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

                          @thomas-braun

                          Schlägt fehl.

                          [ERROR] [iobroker] host.raspberrypi Cannot extract from file "/opt/iobroker/backups/iobroker_2022_10_10-02_00_10_backupiobroker.tar.gz": ENOENT: Cannot cd into '/opt/iobroker/node_modules/iobroker.js-controller/tmp'
                          

                          Außerdem versucht iobroker jetzt, alle Adapter nachzuinstallieren, aber wieder mit den Fehlermeldungen dass das nicht geht (da war ich heute auch schon mal):

                          iobroker npm-install: host.raspberrypi Cannot install iobroker.weatherunderground@3.4.2: 217
                          

                          Fehler 217 erscheint bei jedem Modul

                          iobroker npm-install: exit 25
                          

                          zumindest sind meine gesamten Instanzen und Objekte wieder da, trotz des Log Eintrag Fehlers von BackItUp

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

                            @michaelheiml

                            
                            for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
                            

                            again...

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

                              @thomas-braun

                              Gemacht, und dann? iob stop und iob start zum Neustarten?

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

                                @michaelheiml

                                Läuft das Backup noch im Hintergrund?

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

                                  @thomas-braun

                                  Wie sehe ich das? (Ob das Backup im Hintergrund noch läuft)

                                  Im Übrigen, nach iob stop hätte ich jetzt eben iob update eingegeben, mit dem Ergebnis

                                  pi@raspberrypi:/opt/iobroker $ iob stop
                                  pi@raspberrypi:/opt/iobroker $ iob update
                                  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: []
                                  }
                                  
                                  

                                  iob start -> startet aber iobroker wieder..

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

                                    @michaelheiml sagte in iobroker kaputt nach NodeJS Update:

                                    Wie sehe ich das?

                                    Nach iob stop gar nicht mehr, das hast du weggeknallt, wenn es denn noch lief.

                                    Im Log File sieht man, ob da noch was läuft.

                                    iobroker logs --watch
                                    

                                    in einem zweiten Terminal mitlaufen lassen.

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

                                      @thomas-braun

                                      ok.. nevermind. iob start startet den Webservice jetzt auch nicht mehr neu. Keine Ahnung was da schief läuft.

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

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

                                        pi@raspberrypi:/opt/iobroker $ iobroker logs --watch
                                        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

                                          @michaelheiml

                                          Ich bin jetzt weg.
                                          Installier es neu, das wird vermutlich nix gescheites mehr geben.

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

                                            @thomas-braun

                                            npm list
                                            
                                            ├── UNMET DEPENDENCY iobroker.admin@stable
                                            ├── UNMET DEPENDENCY iobroker.backitup@stable
                                            ├── UNMET DEPENDENCY iobroker.discovery@stable
                                            ├── iobroker.flot@1.11.0
                                            ├── iobroker.habpanel@0.5.0
                                            ├── UNMET DEPENDENCY iobroker.js-controller@stable
                                            
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            560
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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