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 Dankeschön:

      
      pi@iobroker:~ $ nodejs -v
      v16.17.1
      pi@iobroker:~ $ npm -v
      8.15.0
      
      
      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:

        pi@iobroker:/opt/iobroker $ npm update npm -g

        NIEMALS npm manuell anfassen!
        so etwas führt zu solchen Problemen

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

          @homoran Verstanden! Also komme ich um eine "Neuinstallation" nicht herum....

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

            @nevs84

            Zeig mal den vollständigen Check auf 'senkrechte Installation' aus dem HowTo.

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

              @thomas-braun

              pi@iobroker:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && n                                  pm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && su                                  do apt update && apt policy nodejs
              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/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:~ $
              
              
              1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active @nevs84 last edited by

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

                @mickym : Wie du meinem Post entnehmen kannst habe ich bereits versucht im Forum zu lesen..hat leider nichts gebracht. Aber denn "Lies halt mal das Forum" gibt es vermutlich in jedem Fred. Danke dir trotzdem.

                Ich bin wirklich der Letzte - der pro Forum einfach sagt, die Suchfunktion zu nutzen - aber ich denke die Anzahl der Threads seit dem nodejs 16 und npm 8 Update gehen langsam in hohe zweistellige Werte. Was @thomas-braun meist versucht, ist dass man die bestehenden System - versucht zu retten - ohne dass Du es neu aufbauen musst.

                Wie gesagt ich hatte hier auch schon ein System vor dem Neuaufbau gerettet (das Backup spielt in manchen Fällen eben nicht alles zurück und man hat ja auch meist noch Datenbank und anderes auf dem System am Laufen).

                Schmeiss Deine Nodejs und NPM Installation weg - mach sie neu - das sie auf dem aktuellen Stand ist und dann lass das node_modules Verzeichnis neu aufbauen, wie ich das nun schon mehrfach empfohlen habe.

                https://forum.iobroker.net/topic/57278/absturz-beim-update-admin-adapter-6-2-14-auf-6-2-17/10?_=1664884443776

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

                  @mickym Ok vielen Dank für deinen Input! Ich versuche das alles zu verstehen, nachzuvollziehen und mit eurer und deiner Hilfe hinzubiegen. Vielen Dank für deine Mühen..lese mir deinen Fred gleich durch.

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

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

                    aber ich denke die Anzahl der Threads seit dem nodejs 16 und npm 8 Update gehen langsam in hohe zweistellige Werte.

                    Das ist aber hier nicht der Fall gewesen.

                    @nevs84

                    sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                    
                    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 apt update &> /dev/null && sudo apt update && apt policy nodej

                      pi@iobroker:~ $ sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                      OK:2 http://archive.raspberrypi.org/debian buster InRelease
                      OK:3 https://deb.nodesource.com/node_16.x buster InRelease
                      OK:4 https://www.pivccu.de/piVCCU 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~deb10u1 500
                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                      
                      
                      Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @nevs84 last edited by

                        @nevs84

                        Mal sauber neugestartet?

                        sudo reboot
                        

                        und dann prophylaktisch:

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

                        Und nochmal:

                        cd /opt/iobroker
                        sudo -H -u iobroker npm install iobroker.js-controller
                        
                        N 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:

                          OK:4 https://www.pivccu.de/piVCCU stable InRelease

                          piVCCU läuft auch noch?
                          mit Funkmodul auf den GPIO?

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

                            @homoran Ja Läuft!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            797
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            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