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.
    • N
      nevs84 @Thomas Braun last edited by

      @thomas-braun

      pi@iobroker:~ $ for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
      find: ‘/opt/iobroker/node_modules’: Datei oder Verzeichnis nicht gefunden```
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @nevs84 last edited by

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

        @homoran Ja Läuft!

        missverstand!

        Ich wollte wissen was alles läuft auf einem Pi3 mit 1GB und einer ggf zu schwachen Stromversorgung.

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

          @homoran

          Oh Sorry! piVCCU läuft (mit Funkmodul) und der IOBroker....bisher ohne Probleme! Sonst nichts...

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

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

            /opt/iobroker/node_modules’: Datei oder Verzeichnis nicht gefunden

            Das ist schlecht. Was passiert auf

            cd /opt/iobroker
            sudo -H -u iobroker npm install iobroker.js-controller
            

            dann?

            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:~ $ cd /opt/iobroker/
              pi@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
              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_17_51_969Z-debug-0.log
              pi@iobroker:/opt/iobroker $
              
              

              Reboot natürlich durchgeführt...

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

                @nevs84 said in [Problem]Fehler nach Update. Nichts geht mehr:

                /home/iobroker/.npm/_logs/2022-10-04T12_17_51_969Z-debug-0.log

                log (2).txt

                1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            727
                                            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