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.
    • Mr English
      Mr English last edited by Mr English

      Re: IoBroker und Adapter updaten
      @Thomas-Braun
      Hi ich wollte heute meine 10 adapter aktualisieren allerdings hat das nicht geklapt ( im sinne von ich habe den adpter aktualiesier aber jedes mal nach einem neustart war es wieder die alte version), daduchr habe ich versucht den IOB über ssh zu updaten. Leider hat dann

      iobroker fix 
      //oder 
      curl -sL https://iobroker.net/fix.sh | bash -
      

      nur angezeigt

      pi@raspberrypi4-iob:/opt/iobroker $ iobroker fix
      library: loaded
      Library version=2022-06-15
      ioBroker is not installed in /opt/iobroker! Cannot fix anything...
      
      

      selbst eine komplette neu installation hat nichts gebracht

      pi@raspberrypi4-iob:/opt/iobroker $ curl -sLf https://iobroker.net/install.sh | bash -
      library: loaded
      Library version=2022-06-15
      
      ==========================================================================
      
          Welcome to the ioBroker installer!
          Installer version: 2022-06-03
      
          You might need to enter your password a couple of times.
      
      ==========================================================================
      
      
      ==========================================================================
          Installing prerequisites (1/4)
      ==========================================================================
      
      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_14.x buster InRelease
      Paketlisten werden gelesen... Fertig
      Changing npm registry to https://registry.npmjs.org
      Installed gcc-c++
      
      ==========================================================================
          Creating ioBroker user and directory (2/4)
      ==========================================================================
      
      Created /etc/sudoers.d/iobroker
      Directory /opt/iobroker created
      
      ==========================================================================
          Installing ioBroker (3/4)
      ==========================================================================
      
      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_26_33_573Z-debug-0.log
      
      ==========================================================================
          Finalizing installation (4/4)
      ==========================================================================
      
      Enabling autostart...
      Autostart enabled!
      Fixing directory permissions...
      
      ==========================================================================
      
          ioBroker was installed successfully
          Open http://192.168.178.120:8081 in a browser and start configuring!
      
      ==========================================================================
      
      
      You need to re-login before doing anything else on the console!
      
      

      würde mich freuen wenn jemand mir weiter helfen könnte 🙂

      DJMarc75 Thomas Braun 2 Replies Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @Mr English last edited by

        @mr-english warum bist Du im Verzeichnis /opt/iobroker unterwegs um Befehle auszuführen ? Wo hast Du das gelesen ???

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            969
                                            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