Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. IoBroker gelöscht nach update

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IoBroker gelöscht nach update

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

      @mr-english sagte in IoBroker gelöscht nach update:

      builtins is not a function

      Hatten wir glaube ich gestern erst. Da war es eine verfummelte Installation von 'npm'.

      Mr English 1 Reply Last reply Reply Quote 0
      • Mr English
        Mr English @DJMarc75 last edited by

        @djmarc75
        das war noch vom vorherigen versuch aus einem bericht aus diesen forum, selbst wenn ich es so ausgeführt hätte wäre (ist ) das selbe herausbekommen

        1 Reply Last reply Reply Quote 0
        • Mr English
          Mr English @Thomas Braun last edited by

          @thomas-braun
          ja hab ich auch gedacht, ich habe aus unserer letzten artikel ihren lösungsweg versucht allerdings erfolgslos

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

            @mr-english

            Wo hängen wir denn rum?

            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
            
            Mr English 1 Reply Last reply Reply Quote 0
            • Mr English
              Mr English @Thomas Braun last edited by

              @thomas-braun said in IoBroker gelöscht nach update:

              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

              ca. Hier

              pi@raspberrypi4-iob:~ $ 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
              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 @Mr English last edited by Thomas Braun

                @mr-english sagte in IoBroker gelöscht nach update:

                whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                
                Mr English 1 Reply Last reply Reply Quote 0
                • Mr English
                  Mr English @Thomas Braun last edited by

                  @thomas-braun said in IoBroker gelöscht nach update:

                  whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt u pdate && apt policy nodejs

                  pi@raspberrypi4-iob:~ $ whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt u
                  pi
                  pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                  /home/pi
                  E: Ungültige Operation u
                  pi@raspberrypi4-iob:~ $ pdate && apt policy nodejs
                  -bash: pdate: Kommando nicht gefunden.
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Mr English last edited by

                    @mr-english

                    Sorry, sollte in eine Zeile.

                    whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                    
                    Mr English 1 Reply Last reply Reply Quote 0
                    • Mr English
                      Mr English @Thomas Braun last edited by

                      @thomas-braun

                      pi@raspberrypi4-iob:~ $ whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      pi
                      pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                      /home/pi
                      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
                      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 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Mr English last edited by

                        @mr-english

                        Gestern haben wir das so rausoperiert:

                        iobroker stop
                        sudo npm uninstall npm -g
                        npm uninstall npm -g
                        sudo rm -rf /usr/lib/node_modules
                        sudo apt install --reinstall nodejs
                        
                        Mr English 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Mr English last edited by

                          @mr-english

                          Dann

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

                            @thomas-braun said in IoBroker gelöscht nach update:

                            iobroker stop sudo npm uninstall npm -g npm uninstall npm -g sudo rm -rf /usr/lib/node_modules sudo apt install --reinstall nodejs

                            pi@raspberrypi4-iob:~ $ iobroker stop
                            pi@raspberrypi4-iob:~ $ 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-05T18_57_54_276Z-debug-0.log
                            pi@raspberrypi4-iob:~ $ 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/pi/.npm/_logs/2022-10-05T18_57_55_727Z-debug-0.log
                            pi@raspberrypi4-iob:~ $ sudo rm -rf /usr/lib/node_modules
                            pi@raspberrypi4-iob:~ $ 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 noch 0 B von 24,1 MB an Archiven heruntergeladen werden.
                            Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
                            (Lese Datenbank ... 54931 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 ...
                            
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Mr English last edited by Thomas Braun

                              @mr-english

                              for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! iname ".local-chromium"); do rm -rf ${i%%/}; done
                              cd /opt/iobroker
                              sudo -H -u iobroker npm install iobroker.js-controller
                              
                              Mr English 1 Reply Last reply Reply Quote 0
                              • Mr English
                                Mr English @Thomas Braun last edited by

                                @thomas-braun said in IoBroker gelöscht nach update:

                                for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! iname ".local-chromium"); do rm -rf ${i%%/}; done cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller

                                pi@raspberrypi4-iob:~ $ for i in $(find /opt/iobroker/node_modules -type d -inam                                        e ".*-????????" ! iname ".local-chromium"); do rm -rf ${i%%/}; done
                                find: paths must precede expression: `iname'
                                pi@raspberrypi4-iob:~ $ cd /opt/iobroker
                                pi@raspberrypi4-iob:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-                                        controller
                                npm WARN old lockfile
                                npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                                npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                                npm WARN old lockfile
                                npm WARN old lockfile This is a one-time fix-up, please be patient...
                                npm WARN old lockfile
                                
                                changed 1 package in 2m
                                
                                38 packages are looking for funding
                                  run `npm fund` for details
                                
                                
                                Thomas Braun 2 Replies Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Mr English last edited by Thomas Braun

                                  @mr-english

                                  C&P Fehler.

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

                                    @mr-english

                                    iob update
                                    iob status
                                    
                                    Mr English 1 Reply Last reply Reply Quote 0
                                    • Mr English
                                      Mr English @Thomas Braun last edited by

                                      @thomas-braun said in IoBroker gelöscht nach update:

                                      iob update iob status

                                      pi@raspberrypi4-iob:/opt/iobroker $ iob update
                                      Server Cannot start inMem-objects on port 9001: /opt/iobroker/iobroker-data/objects.json: Unexpected end of JSON input
                                      pi@raspberrypi4-iob:/opt/iobroker $ iob status
                                       Cannot read system.config: null (OK when migrating or restoring)
                                      Server Cannot start inMem-states on port 9000: /opt/iobroker/iobroker-data/states.json: Unexpected end of JSON input
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active last edited by Thomas Braun

                                        @mr-english sagte in IoBroker gelöscht nach update:

                                        ls -lh /opt/iobroker/iobroker-data/backup-objects/
                                        
                                        Mr English 1 Reply Last reply Reply Quote 0
                                        • Mr English
                                          Mr English @Thomas Braun last edited by Mr English

                                          @thomas-braun

                                          pi@raspberrypi4-iob:/opt/iobroker $ ls -lh /opt/iobroker/iobroker-data/backup-objects/
                                          insgesamt 128M
                                          -rw-rwxr--+ 1 iobroker iobroker 1,7M Mär  5  2022 2022-03-05_19-19_objects.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 576K Mär  5  2022 2022-03-05_19-34_states.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 1,7M Mär  5  2022 2022-03-05_21-20_objects.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 577K Mär  5  2022 2022-03-05_21-35_states.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 1,7M Mär  5  2022 2022-03-05_23-35_objects.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 576K Mär  5  2022 2022-03-05_23-35_states.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 576K Mär  6  2022 2022-03-06_01-35_states.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 1,7M Mär  6  2022 2022-03-06_01-50_objects.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 577K Mär  6  2022 2022-03-06_03-36_states.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 1,7M Mär  6  2022 2022-03-06_03-50_objects.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 577K Mär  6  2022 2022-03-06_05-36_states.json.gz
                                          -rw-rwxr--+ 1 iobroker iobroker 1,7M Mär  6  2022 2022-03-06_06-05_objects.json.gz
                                          .....
                                          

                                          also die .... sind von mir es geht da noch viel weiter

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

                                            @mr-english

                                            Was aktuelleres liegt da nicht drin? Das ist ja vom März.

                                            Mr English 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            936
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            36
                                            1335
                                            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