Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [Problem]Fehler nach Update. Nichts geht mehr

    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

    [Problem]Fehler nach Update. Nichts geht mehr

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

      @nevs84

      Zumindest die Meldung ist jetzt eine andere...

      iobroker stop
      sudo apt install --reinstall nodejs
      type -P npm nodejs
      
      Homoran N 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Thomas Braun last edited by

        @thomas-braun im root? oderbesser in /opt/iobroker auch wenn da angeblich nichts ist

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • N
          nevs84 @Thomas Braun last edited by

          @thomas-braun

          pi@iobroker:/opt/iobroker $ sudo apt install --reinstall nodejs
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
          Es müssen 24,1 MB an Archiven heruntergeladen werden.
          Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
          Holen:1 https://deb.nodesource.com/node_16.x buster/main armhf nodejs armhf 16.17.1-deb-1nodesource1 [24,1 MB]
          Es wurden 24,1 MB in 4 s geholt (6.531 kB/s).
          (Lese Datenbank ... 127192 Dateien und Verzeichnisse sind derzeit installiert.)
          Vorbereitung zum Entpacken von .../nodejs_16.17.1-deb-1nodesource1_armhf.deb ...
          Entpacken von nodejs (16.17.1-deb-1nodesource1) über (16.17.1-deb-1nodesource1) ...
          nodejs (16.17.1-deb-1nodesource1) wird eingerichtet ...
          Trigger für man-db (2.8.5-2) werden verarbeitet ...
          pi@iobroker:/opt/iobroker $ type -P npm nodejs
          /usr/bin/npm
          /usr/bin/nodejs
          pi@iobroker:/opt/iobroker $
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Homoran last edited by

            @homoran sagte in [Problem]Fehler nach Update. Nichts geht mehr:

            im root? oderbesser in /opt/iobroker auch wenn da angeblich nichts ist

            Die Kommandos sind alle unabhängig vom Pfad.

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

              Ja genau - für mich erinnert mich das genau an diesen Thread:

              https://forum.iobroker.net/topic/55683/kein-update-mehr-möglich-mit-node-js-16/78

              damals war es das builtins - das immer gesagt hat, dass es keine function ist (also der gleiche Fehler):

              fb22da66-f819-4c7a-8cff-26340c39fd31-image.png

              damals half nicht mal ein reinstall - sondern man musste die npm Verzeichnisse manuell entfernen und nodejs neu installieren.

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

                @nevs84

                Jetzt wird's dreckig...

                iobroker stop
                sudo npm uninstall npm -g
                npm uninstall npm -g
                sudo rm -rf /usr/lib/node_modules
                sudo apt install --reinstall nodejs
                
                N 2 Replies Last reply Reply Quote 0
                • N
                  nevs84 @Thomas Braun last edited by

                  @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

                  npm uninstall npm -g

                  😲

                  pi@iobroker:/opt/iobroker $ iobroker stop
                  pi@iobroker:/opt/iobroker $ sudo npm uninstall npm -g
                  npm ERR! builtins is not a function
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /root/.npm/_logs/2022-10-04T12_42_49_122Z-debug-0.log
                  pi@iobroker:/opt/iobroker $ npm uninstall npm -g
                  npm ERR! builtins is not a function
                  
                  npm ERR! A complete log of this run can be found in:
                  npm ERR!     /home/iobroker/.npm/_logs/2022-10-04T12_43_06_468Z-debug-0.log
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • N
                    nevs84 @Thomas Braun last edited by

                    @thomas-braun logs hochladen? mit

                    sudo rm -rf /usr/lib/node_modules
                    

                    weitermachen?

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

                      @nevs84

                      Ja, weiter machen.
                      Logs braucht es hier nicht.

                      N 2 Replies Last reply Reply Quote 0
                      • N
                        nevs84 @Thomas Braun last edited by

                        @thomas-braun done

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

                          @nevs84

                          @thomas-braun sagte in [Problem]Fehler nach Update. Nichts geht mehr:

                          Logs braucht es hier nicht.

                          aber den Output der Konsole

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

                            @nevs84 Starte nochmal durch.

                            sudo reboot
                            
                            N 1 Reply Last reply Reply Quote 0
                            • N
                              nevs84 @Thomas Braun last edited by

                              @thomas-braun

                              pi@iobroker:/opt/iobroker $ sudo apt install --reinstall nodejs
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
                              Es müssen 24,1 MB an Archiven heruntergeladen werden.
                              Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
                              Holen:1 https://deb.nodesource.com/node_16.x buster/main armhf nodejs armhf 16.17.1-deb-1nodesource1 [24,1 MB]
                              Es wurden 24,1 MB in 4 s geholt (6.762 kB/s).
                              (Lese Datenbank ... 127192 Dateien und Verzeichnisse sind derzeit installiert.)
                              Vorbereitung zum Entpacken von .../nodejs_16.17.1-deb-1nodesource1_armhf.deb ...
                              Entpacken von nodejs (16.17.1-deb-1nodesource1) über (16.17.1-deb-1nodesource1) ...
                              nodejs (16.17.1-deb-1nodesource1) wird eingerichtet ...
                              Trigger für man-db (2.8.5-2) werden verarbeitet ...
                              pi@iobroker:/opt/iobroker $
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • N
                                nevs84 @Thomas Braun last edited by

                                @thomas-braun done

                                pi@iobroker:~ $ iobroker status
                                node:internal/modules/cjs/loader:959
                                  throw err;
                                  ^
                                
                                Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iob                               roker.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_ma                               in:81:12)
                                    at node:internal/main/run_main_module:17:47 {
                                  code: 'MODULE_NOT_FOUND',
                                  requireStack: []
                                }
                                pi@iobroker:~ $
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @nevs84 last edited by

                                  @nevs84

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

                                    @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

                                    sudo -H -u iobroker npm install iobroker.js-controller

                                    pi@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                                    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 24
                                    npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller
                                    npm ERR! command failed
                                    npm ERR! command sh /tmp/install-51355609.sh
                                    npm ERR! Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!
                                    
                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /home/iobroker/.npm/_logs/2022-10-04T13_00_00_679Z-debug-0.log
                                    pi@iobroker:/opt/iobroker $
                                    
                                    
                                    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 @nevs84 last edited by

                                      @nevs84

                                      Zumindest die npm-Meldungen sind weg...

                                      sudo install lsof
                                      lsof /opt/iobroker/iobroker-data/objects.jsonl
                                      
                                      N Thomas Braun 2 Replies Last reply Reply Quote 0
                                      • N
                                        nevs84 @Thomas Braun last edited by

                                        @thomas-braun said in [Problem]Fehler nach Update. Nichts geht mehr:

                                        sudo install lsof

                                        pi@iobroker:/opt/iobroker $ sudo install lsof
                                        install: Fehlender Zieldatei‐Operand hinter 'lsof'
                                        „install --help“ liefert weitere Informationen.
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Thomas Braun last edited by

                                          sudo apt install lsof
                                          sudo lsof /opt/iobroker/iobroker-data/objects.jsonl
                                          
                                          N 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @nevs84 last edited by

                                            @nevs84

                                            Übrigens ist hier erklärt, warum es zur ursprünglichen Meldung kommt:

                                            https://help.heroku.com/ZV7S7D6T/why-is-my-node-build-is-suddenly-displaying-npm-err-cb-apply-is-not-a-function

                                            Und genau aus diesem Grund raten wir immer davon ab npm separat in die Hand zu nehmen.

                                            N 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            891
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            cb.apply is not a function
                                            4
                                            68
                                            3174
                                            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