Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iob node fix - Skript

    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

    iob node fix - Skript

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

      @sissiwup sagte in iob node fix - Skript:

      Wer doch als root arbeiten möchte

      Es gibt keinen Grund dafür.

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

        @sissiwup sagte in iob node fix - Skript:

        Wer doch als root arbeiten möchte

        die gibt es nicht!

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

          @sissiwup sagte in iob node fix - Skript:

          Vlt. ist es hier sinnvoller eine positiv-Liste anzugeben?

          Nein, beide Codepassagen sind genauso richtig und bedürfen keiner Anpassung.

          AlexAtHome 1 Reply Last reply Reply Quote 1
          • AlexAtHome
            AlexAtHome @Thomas Braun last edited by

            @thomas-braun Vielen Dank für das Script, es hat mir gerade das Leben sehr einfach gemacht (Upgrade von NodeJS 16.20.2 auf 18.18.0). Worked like a charm 🙂

            1 Reply Last reply Reply Quote 1
            • ofri2607
              ofri2607 last edited by

              @Thomas-Braun
              auch von meiner Seite einen herzlichen Dank; war wirklich easy und problemlos.
              Beide Systeme 1x master und 1x slave (beides Raspi 4 mit bullseye) von v18.17.1 auf 18.18.0

              Den master hatte ich vor einiger Zeit entsprechend deinem HowTo gemacht, aber die notwendigen Änderungen (31.08.2023) noch nicht; hier script laufen lassen und danach sudo apt update && sudo apt upgrade.

              Der slave ist relativ neu frisch aufgesetzt, hier hatte das script ein downgrade auf 18.17.0 gemacht und anschließend selbstständig die 18.18.0 installiert.
              Ich denke, alles genauso, wie von dir geplant und gewollt.

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

                @ofri2607 sagte in iob node fix - Skript:

                Ich denke, alles genauso, wie von dir geplant und gewollt.

                Ja, so soll das.

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

                  @thomas-braun
                  Hi,

                  bei mir kommt under debian:

                  N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird übersprungen, da das Depot »https://deb.nodesource.com/node_18.x nodistro InRelease« die Architektur »i386« nicht unterstützt.
                  

                  Das kann man lösen durch:

                  deb [arch=amd64 signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
                  

                  Also konkrete Angabe der Architektur. Vlt. hat ja auch ein anderer das Problem...

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

                    @sissiwup wie passt denn

                    @sissiwup sagte in iob node fix - Skript:

                    arch=amd64

                    zu

                    @sissiwup sagte in iob node fix - Skript:

                    Architektur »i386«

                    ?

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

                      @sissiwup

                      Die Meldung fängt man sich nur ein, wenn (in der Vergangenheit) falsche Pakete (für die falsche Architektur) installiert wurden. Bei 'ordentlichen' Installationen passiert das nicht.

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

                        @thomas-braun sagte in iob node fix - Skript:

                        @sissiwup

                        Die Meldung fängt man sich nur ein, wenn (in der Vergangenheit) falsche Pakete (für die falsche Architektur) installiert wurden. Bei 'ordentlichen' Installationen passiert das nicht.

                        Hi,

                        oder wenn man multi-arch support aktiviert hat (für nicht 64-bit Softwarepakete)

                        dpkg --print-foreign-architectures
                        i386
                        

                        Wer das nicht braucht:

                        dpkg --remove-architecture i386
                        
                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @sissiwup last edited by

                          @sissiwup gib mal die Langfassung von iob diag

                          1 Reply Last reply Reply Quote 0
                          • R
                            reutli @Thomas Braun last edited by reutli

                            @thomas-braun

                            warum kommt denn nach erfolgreichem update auf 18.18.0 und erneutem Aufruf trotzdem nochmals die Abfrage ob man auf 18.18.0 updaten möchte?

                            ioBroker nodejs fixer 2023-09-24
                            No recommendation for nodejs version found on your system. We recommend to install latest version from nodejs v18 tree.
                            
                            Your current setup is:
                            /usr/bin/nodejs 	v18.18.0
                            /usr/bin/node 		v18.18.0
                            /usr/bin/npm 		9.8.1
                            /usr/bin/npx 		9.8.1
                            /usr/bin/corepack 	0.19.0
                            
                            We found these nodejs versions available for installation:
                            
                            nodejs:
                              Installed: 18.18.0-1nodesource1
                              Candidate: 18.18.0-1nodesource1
                              Version table:
                             *** 18.18.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                    100 /var/lib/dpkg/status
                                 18.17.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.17.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.16.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.16.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.15.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.14.2-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.14.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.14.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.13.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.12.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.11.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.10.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.9.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.9.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.8.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.7.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.6.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.5.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.4.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.3.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.2.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.1.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.0.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 12.22.12~dfsg-1~deb11u4 500
                                    500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                                 12.22.12~dfsg-1~deb11u3 500
                                    500 http://deb.debian.org/debian bullseye/main arm64 Packages
                            
                            
                            
                            Nothing to do - Your installation is using the correct paths.
                            
                            You are running nodejs v18.18.0. Do you want to install recommended version v.18 ? 
                            
                            Press <y> to continue or any other key to quit
                            We are not fixing your installation. Exiting.
                            pi@iobroker:/opt/iobroker $ 
                            

                            es kommt zwar die Meldung

                            We are not fixing your installation. Exiting.
                            

                            aber eins drüber meint er, er könnte von .18 auf .18 updaten...

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

                              @reutli sagte in iob node fix - Skript:

                              Weil für dein System keine empfohlene Version ausgelesen werden kann und daher kein Abgleich dagegen möglich ist.

                              Ist das z. B. ein Multihost-Slave?

                              R 1 Reply Last reply Reply Quote 0
                              • F
                                firebowl last edited by

                                Sehr geile Sache das Script. 🙂
                                Leider aktualisiert es bei mir die Version nicht auf 18.18.0
                                Es wird erkannt, dass sie vorhanden ist und installiert werde soll.
                                Nach dem Lauf ist aber weiterhin die 18.17.1 installiert. 😞

                                R Thomas Braun 2 Replies Last reply Reply Quote 0
                                • R
                                  reutli @firebowl last edited by

                                  @firebowl

                                  Die Ausgabe zeigen hilft, damit einem geholfen wird...

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    reutli @Thomas Braun last edited by

                                    @thomas-braun sagte in iob node fix - Skript:

                                    Ist das z. B. ein Multihost-Slave?

                                    Ja exakt, ist ein Slave

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

                                      @firebowl

                                      Dann lass mal sehen was da ausgespuckt wird. Vollständig.

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        firebowl @Thomas Braun last edited by firebowl

                                        @thomas-braun Sorry, musste meinen kleinen schnell in die Krippe bringen.

                                        Hier der Output:

                                        ioBroker nodejs fixer 2023-09-24
                                        
                                        Recommended nodejs-version is: 18.18.0
                                        Checking your installation now. Please be patient!
                                        
                                        Your current setup is:
                                        /usr/bin/nodejs         v18.17.1
                                        /usr/bin/node           v18.17.1
                                        /usr/bin/npm            9.6.7
                                        /usr/bin/npx            9.6.7
                                        /usr/bin/corepack       0.18.0
                                        
                                        We found these nodejs versions available for installation:
                                        
                                        nodejs:
                                          Installed: 18.17.1-deb-1nodesource1
                                          Candidate: 18.18.0-1nodesource1
                                          Version table:
                                             18.18.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                         *** 18.17.1-deb-1nodesource1 100
                                                100 /var/lib/dpkg/status
                                             18.17.1-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.17.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.16.1-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.16.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.15.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.14.2-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.14.1-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.14.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.13.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.12.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.11.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.10.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.9.1-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.9.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.8.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.7.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.6.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.5.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.4.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.3.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.2.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.1.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             18.0.0-1nodesource1 1001
                                                500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                                             12.22.9~dfsg-1ubuntu3 500
                                                500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                                        
                                        
                                        
                                        Nothing to do - Your installation is using the correct paths.
                                        
                                        You are running nodejs v18.17.1. Do you want to install recommended version 18.18.0?
                                        
                                        Press <y> to continue or any other key to quit
                                        Trying to fix your installation now. Please be patient.
                                        [sudo] password for mike:
                                        kvm
                                        Waiting for ioBroker to shut down - Give me a minute...
                                        ############################################################
                                        
                                        *** These repos are active on your system:
                                        Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
                                        Hit:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
                                        Hit:3 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
                                        Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-security InRelease
                                        Reading package lists... Done
                                        
                                        *** Installing ca-certificates, curl and gnupg, just in case they are missing.
                                        
                                        *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source
                                        deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
                                        Package: nodejs
                                        Pin: origin deb.nodesource.com
                                        Pin-Priority: 1001
                                        
                                        *** These repos are active after the adjustments:
                                        Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
                                        Hit:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
                                        Hit:3 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
                                        Get:4 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
                                        Hit:5 http://de.archive.ubuntu.com/ubuntu jammy-security InRelease
                                        Get:6 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages [5247 B]
                                        Fetched 17.4 kB in 0s (36.4 kB/s)
                                        Reading package lists... Done
                                        
                                        Installing the recommended nodejs version now!
                                        
                                        *** You need to manually restart your container/virtual machine now! ***
                                        
                                        We tried our best to fix your nodejs. Please run 'iob diag' again to verify.
                                        

                                        Öhm Http error 500? Seh ich das richtig?

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

                                          @firebowl sagte in iob node fix - Skript:

                                          Öhm Http error 500? Seh ich das richtig?

                                          Wo siehst du das?

                                          sudo apt full-upgrade
                                          

                                          sagt?

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            firebowl @Thomas Braun last edited by

                                            @thomas-braun sagte in iob node fix - Skript:

                                            sagt?

                                            Mit apt hat es sich jetzt aktualisieren lassen, vorher wurden keine Updates gefunden.

                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            858
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            34
                                            198
                                            27359
                                            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