Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Wie führe ich ein sauberes Updates durch?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Wie führe ich ein sauberes Updates durch?

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      philipp_lappe @Thomas Braun last edited by Homoran

      @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

      @philipp_lappe

      iob stop
      iob fix
      iob upgrade all
      iob upgrade self --debug
      
      iob upgrade self --debug
      Update js-controller from @4.0.24 to @5.0.12
      Stopped Objects DB
      Stopped States DB
      NPM version: 8.19.4
      Installing iobroker.js-controller@5.0.12... (System call)
      npm ERR! code ENOTEMPTY
      npm ERR! syscall rename
      npm ERR! path /opt/iobroker/node_modules/acme-http-01-standalone
      npm ERR! dest /opt/iobroker/node_modules/.acme-http-01-standalone-sG2kCsLK
      npm ERR! errno -39
      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/acme-http-01-standalone' -> '/opt/iobroker/node_modules/.acme-http-01-standalone-sG2kCsLK'
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2023-11-12T22_09_46_524Z-debug-0.log
      host.homepi_phil Cannot install iobroker.js-controller@5.0.12: 217
      

      MOD-EDIT: Code in code-tags gesetzt!

      da_Woody Homoran 2 Replies Last reply Reply Quote 0
      • da_Woody
        da_Woody @philipp_lappe last edited by

        @philipp_lappe bitte, setz deine logs in 3b78940c-63e7-4156-b8fc-6d42ca860f0d-grafik.png

        1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @philipp_lappe last edited by

          @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

          iob upgrade self --debug

          und die anderen Ausgaben?

          P 1 Reply Last reply Reply Quote 0
          • P
            philipp_lappe @Homoran last edited by

            @homoran

            pi@homepi_phil:~ $ iob stop
            pi@homepi_phil:~ $ 
            pi@homepi_phil:~ $ iob fix
            library: loaded
            Library version=2023-10-13
            
            ==========================================================================
            
                Welcome to the ioBroker installation fixer!
                Script version: 2023-10-13
                
                You might need to enter your password a couple of times.
            
            ==========================================================================
            
            
            ==========================================================================
                Installing prerequisites (1/5)
            ==========================================================================
            
            Ign:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
            Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
            Err:3 http://raspbian.raspberrypi.org/raspbian stretch Release          
              404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
            Get:4 https://download.docker.com/linux/raspbian stretch InRelease [31.1 kB]
            Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease
            Hit:7 https://deb.nodesource.com/node_16.x stretch InRelease
            Reading package lists... Done
            E: The repository 'http://raspbian.raspberrypi.org/raspbian stretch Release' does no longer have a Release file.
            N: Updating from such a repository can't be done securely, and is therefore disabled by default.
            N: See apt-secure(8) manpage for repository creation and user configuration details.
            
            ==========================================================================
                Checking ioBroker user and directory permissions (2/5)
            ==========================================================================
            
            Created /etc/sudoers.d/iobroker
            Fixing directory permissions...
            
            ==========================================================================
                Check and cleanup npm temporary directories (3/5)
            ==========================================================================
            
            Done.
            
            ==========================================================================
                Database maintenance (4/5)
            ==========================================================================
            
            Checking for uncompressed JSONL databases... This might take a while!
            
            Compressing /opt/iobroker/iobroker-data/states.jsonl
            Compressing /opt/iobroker/iobroker-data/objects.jsonl
            Compressed 2 JSONL files. Done
            
            ==========================================================================
                Checking autostart (5/5)
            ==========================================================================
            
            Enabling autostart...
            Autostart enabled!
            
            ==========================================================================
            
                Your installation was fixed successfully
                Run iobroker start to start ioBroker again!
            
            ==========================================================================
            
            pi@homepi_phil:~ $ 
            pi@homepi_phil:~ $ iob upgrade all
            
            This upgrade of "yahka" will introduce the following changes:
            ==========================================================================
            -> 1.0.3:
            Corrected empty device list with rebuild
            
            -> 1.0.1:
            we ensured controller 5 compatibility
            Formatting
            
            -> 0.17.0:
            Added AVAHI advertiser as default and updated HomeKit Library to improve performance and stability
            
            -> 0.14.0:
            Updated HomeKit Library
            
            -> 0.13.2:
            Fixed crashes due to changes in used HomeKit Library
            ==========================================================================
            
            BE CAREFUL: THIS IS A MAJOR UPGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES!
            Would you like to upgrade yahka from @0.13.1 to @1.0.3 now? [(y)es, (n)o]: No upgrade of "yahka" desired.
            
            This upgrade of "text2command" will at least introduce the following changes:
            ==========================================================================
            -> 3.0.2:
            Corrected link from admin
            
            -> 3.0.1:
            Corrected many GUI errors
            
            -> 2.3.1:
            Migrated GUI to v5
            ==========================================================================
            
            BE CAREFUL: THIS IS A MAJOR UPGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES!
            Would you like to upgrade text2command from @2.3.0 to @3.0.2 now? [(y)es, (n)o]: y
            Update text2command from @2.3.0 to @3.0.2
            NPM version: 8.19.4
            Installing iobroker.text2command@3.0.2... (System call)
            host.homepi_phil Cannot install iobroker.text2command@3.0.2: 244
            pi@homepi_phil:~ $ iob upgrade self --debug
            Update js-controller from @4.0.24 to @5.0.12
            Stopped Objects DB
            Stopped States DB
            NPM version: 8.19.4
            Installing iobroker.js-controller@5.0.12... (System call)
            npm ERR! code ENOTEMPTY
            npm ERR! syscall rename
            npm ERR! path /opt/iobroker/node_modules/acme-http-01-standalone
            npm ERR! dest /opt/iobroker/node_modules/.acme-http-01-standalone-sG2kCsLK
            npm ERR! errno -39
            npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/acme-http-01-standalone' -> '/opt/iobroker/node_modules/.acme-http-01-standalone-sG2kCsLK'
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/iobroker/.npm/_logs/2023-11-12T22_09_46_524Z-debug-0.log
            host.homepi_phil Cannot install iobroker.js-controller@5.0.12: 217
            
            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @philipp_lappe last edited by

              @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

              Err:3 http://raspbian.raspberrypi.org/raspbian stretch Release

              Ernsthaft?

              Ansonsten jede Menge Fehler, der Fixer ist nicht durchgelaufen,
              Kein Wunder dass nichts gefixt wurde

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

                @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease
                Hit:7 https://deb.nodesource.com/node_16.x stretch InRelease

                Ist ja auch schon Quark...

                Schmeiß die bullseye-Quelle raus und reinstalliere nodejs in passender Version.

                P 1 Reply Last reply Reply Quote 0
                • P
                  philipp_lappe @Thomas Braun last edited by

                  @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

                  @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                  Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease
                  Hit:7 https://deb.nodesource.com/node_16.x stretch InRelease

                  Ist ja auch schon Quark...

                  Schmeiß die bullseye-Quelle raus und reinstalliere nodejs in passender Version.

                  In /etc/apt/sources.list ist nur die stretch Quelle drin. Also kein Plan wo und wie ich die falschen Quellen löschen kann.
                  Irgendwann war das System down und dann hatte ich aus lauter Verzweiflung jede Menge probiert und verutlich Chaos angerichtet.

                  Es wäre vermutlich doch besser alles von Grund auf neu aufzusetzen oder?

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

                    @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                    Es wäre vermutlich doch besser alles von Grund auf neu aufzusetzen oder?

                    Das ohnehin. Aber ich würde den Umzug mit einem Backup aus einem halbwegs aktuellen ioBroker machen.
                    Ist nämlich wesentlich einfacher.

                    cat /etc/apt/sources.list.d/node*
                    

                    sagt?

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      philipp_lappe @Thomas Braun last edited by

                      @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

                      @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                      Es wäre vermutlich doch besser alles von Grund auf neu aufzusetzen oder?

                      Das ohnehin. Aber ich würde den Umzug mit einem Backup aus einem halbwegs aktuellen ioBroker machen.
                      Ist nämlich wesentlich einfacher.

                      cat /etc/apt/sources.list.d/node*
                      

                      sagt?

                      pi@homepi_phil:~ $ cat /etc/apt/sources.list.d/node*
                      #node 16
                      
                      deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                      
                      deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                      
                       
                      
                      #node 18
                      
                      deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye main
                      
                      deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x bullseye maindeb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x stretch main
                      deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x stretch main
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @philipp_lappe last edited by

                        @philipp_lappe

                        Da hast du die falschen Einträge. Lösch den ganzen node18 und bullseye - Kram raus, es gibt kein node18 für stretch.

                        Also alles bis auf die letzte Zeile raus.
                        Dann

                        iob stop
                        sudo apt update
                        sudo apt install --reinstall nodejs
                        
                        P 1 Reply Last reply Reply Quote 0
                        • P
                          philipp_lappe @Thomas Braun last edited by

                          @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

                          @philipp_lappe

                          Da hast du die falschen Einträge. Lösch den ganzen node18 und bullseye - Kram raus, es gibt kein node18 für stretch.

                          Also alles bis auf die letzte Zeile raus.
                          Dann

                          iob stop
                          sudo apt update
                          sudo apt install --reinstall nodejs
                          

                          Wenn ich sources.list öffne ist dort nur eine Quelle.
                          Bildschirmfoto 2023-11-13 um 15.21.37.png

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

                            @philipp_lappe

                            Das ist ja auch eine andere Datei. Die nodesource.list liegt hier

                            sudo nano /etc/apt/sources.list.d/nodesource.list
                            
                            P 1 Reply Last reply Reply Quote 0
                            • P
                              philipp_lappe @Thomas Braun last edited by

                              @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

                              @philipp_lappe

                              Das ist ja auch eine andere Datei. Die nodesource.list liegt hier

                              sudo nano /etc/apt/sources.list.d/nodesource.list
                              

                              Ich habe alle Einträge bis auf den letzten entfernt, aber trotzdem werden die noch angezeigt. Reboot habe ich auch schon versucht.

                              pi@homepi_phil:~ $ sudo apt update
                              Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
                              Ign:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
                              Err:3 http://raspbian.raspberrypi.org/raspbian stretch Release
                                404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
                              Get:4 https://download.docker.com/linux/raspbian stretch InRelease [31.1 kB]
                              Hit:5 https://deb.nodesource.com/node_16.x stretch InRelease
                              Reading package lists... Done
                              E: The repository 'http://raspbian.raspberrypi.org/raspbian stretch Release' does no longer have a Release file.
                              N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                              N: See apt-secure(8) manpage for repository creation and user configuration details.
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @philipp_lappe last edited by

                                @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                                aber trotzdem werden die noch angezeigt.

                                Nö, jetzt gibt es nur einen 'Hit' für nodesource.
                                Die anderen Einträge kommen daher, das der Reste der Welt den 'stretch' halt schon längst zu Grabe getragen hat. Jetzt den --reinstall wie oben schon beschrieben.

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  philipp_lappe @Thomas Braun last edited by

                                  @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

                                  @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                                  aber trotzdem werden die noch angezeigt.

                                  Nö, jetzt gibt es nur einen 'Hit' für nodesource.
                                  Die anderen Einträge kommen daher, das der Reste der Welt den 'stretch' halt schon längst zu Grabe getragen hat. Jetzt den --reinstall wie oben schon beschrieben.

                                  Leider klappt es nicht.

                                  pi@homepi_phil:sudo apt update
                                  Ign:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
                                  Hit:2 http://archive.raspberrypi.org/debian stretch InRelease    
                                  Err:3 http://raspbian.raspberrypi.org/raspbian stretch Release   
                                    404  Not Found [IP: 2a00:1098:0:80:1000:75:0:3 80]
                                  Get:4 https://download.docker.com/linux/raspbian stretch InRelease [31.1 kB]
                                  Hit:5 https://deb.nodesource.com/node_16.x stretch InRelease
                                  Reading package lists... Done
                                  E: The repository 'http://raspbian.raspberrypi.org/raspbian stretch Release' does no longer have a Release file.
                                  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                                  N: See apt-secure(8) manpage for repository creation and user configuration details.
                                  pi@homepi_phil:~ $ sudo apt install --reinstall nodejs
                                  Reading package lists... Done
                                  Building dependency tree       
                                  Reading state information... Done
                                  Reinstallation of nodejs is not possible, it cannot be downloaded.
                                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @philipp_lappe last edited by

                                    @philipp_lappe

                                    apt policy nodejs
                                    

                                    sagt?

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      philipp_lappe @Thomas Braun last edited by

                                      @thomas-braun said in Wie führe ich ein sauberes Updates durch?:

                                      apt policy nodejs

                                      pi@homepi_phil:~ $ apt policy nodejs
                                      nodejs:
                                        Installed: 16.20.0-deb-1nodesource1
                                        Candidate: 16.20.0-deb-1nodesource1
                                        Version table:
                                       *** 16.20.0-deb-1nodesource1 100
                                              100 /var/lib/dpkg/status
                                           8.11.1~dfsg-2~bpo9+1 500
                                              500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
                                           4.8.2~dfsg-1 500
                                              500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @philipp_lappe last edited by

                                        @philipp_lappe

                                        Ja, dann hat nodesource die Pakete 'schon' vom Server gelöscht.

                                        Das ist auch der Grund, warum es immer schwierig ist, längst abgekündigte Versionen bei Laune zu halten.

                                        Dann versuch mit dem Backup basierend auf dem alten Stand um zuziehen.
                                        Musst du halt im neuen System entsprchende Klimmzüge machen (js-controller auf 4.0.24 drücken usw.)

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          philipp_lappe @Thomas Braun last edited by

                                          @thomas-braun
                                          Okay, danke für deine Unterstützung.
                                          Welchen Vorteil genau habe ich denn dadurch, wenn ich mit dem alten Backup arbeite?

                                          Glücklicherweise ist mein System realtaiv klein. Ich habe nur Sonoff und Shelly Devices und auf iobroker läuft yahka und Telegram.
                                          Also alles komplett neu machen ist zwar bestimmt ein Tag Arbeit, aber wenn das besser ist dann würde ich es in Angriff nehmen.

                                          Oder bekomme ich das auch wieder sauber, wenn ich mit dem Backup arbeite? Also was meinst du mit Klimmzügen?
                                          Gibt es für solch einen Umzug eine gute Anleitung an die ich mich halten kann?

                                          Thomas Braun da_Woody 2 Replies Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @philipp_lappe last edited by

                                            @philipp_lappe sagte in Wie führe ich ein sauberes Updates durch?:

                                            Welchen Vorteil genau habe ich denn dadurch, wenn ich mit dem alten Backup arbeite?

                                            Keinen. Es ist nur komplizierter, weil ein frisch neu hingezauberter ioBroker mit js-controller 5 daherkommt, aber nix mit Backups aus der 4er-Version anfangen kann. Da muss man den 5er auf 4 drücken und kann dann erst versuchen ein Backup einzuspielen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            889
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            52
                                            3309
                                            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