Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Troubleshooting NodeJS update

    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

    Troubleshooting NodeJS update

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

      @spexx sagte in Troubleshooting NodeJS update:

      Ich mach sowas nur alle paar Jahre und muss mich dann jedes Mal wieder einlesen, meine ioBroker-Installation läuft schon relativ lange und bisher gab es keinen Grund, großartig etwas zu aktualisieren...

      Alle paar Jahre ist deutlich zu selten. Die Installationen kippen dir weg, wie du siehst.

      1 Reply Last reply Reply Quote 1
      • W
        Wildbill @Spexx last edited by

        @spexx Wenn Du USB-Geräte direkt an iobroker weiterreichen willst, tust Du Dir mit einer VM leichter, da Du das direkt über die GUI machen kannst. Bei LXC ist es etwas komplizierter.
        Wenn iobroker aber nur für sich läuft und nichts direkt durchgereicht wird, dann würde ich einen LXC nehmen. Benötigt etwas weniger overhead, wobei das, je nach verwendetem Proxmox-Host (Hardware) allenfalls akademisch messbare Unterschiede hätte.
        Wichtig ist, dass Du Debian ohne Desktop installierst, egal ob VM oder LXC. Das ist auf einem Server kontraproduktiv und benötigt nur unnötig Ressourcen.

        Gruss, Jürgen

        S 1 Reply Last reply Reply Quote 0
        • S
          Spexx @Wildbill last edited by

          @wildbill
          Alles klar danke, dann nehm ich einen LXC.

          @Thomas-Braun
          Ja mag sein, das ist aber einfach nur lästig und wie heißt es doch so schön "never touch a running system" 🙂

          W DJMarc75 Thomas Braun 3 Replies Last reply Reply Quote 0
          • W
            Wildbill @Spexx last edited by

            @spexx Das ist so ziemlich der dümmste Spruch, den es nur geben kann. Ergebnis davon siehst Du ja...
            Regelmäßige Updates (so einmal im Monat spätestens das Betriebssystem) sorgen halt erst gar nicht für einen Update-Stau und halten das System aktuell und sicher.

            Gruss, Jürgen

            1 Reply Last reply Reply Quote 1
            • DJMarc75
              DJMarc75 @Spexx last edited by

              @spexx sagte in Troubleshooting NodeJS update:

              und wie heißt es doch so schön "never touch a running system"

              und wenn der TÜV vom Auto abgelaufen ist unternimmst Du auch nichts ? 😉
              Irgendwann bekommst Du Besuch und Dir wird Dein Auto stillgelegt 😉 😉

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

                @spexx sagte in Troubleshooting NodeJS update:

                Ja mag sein, das ist aber einfach nur lästig und wie heißt es doch so schön "never touch a running system"

                Die dämliche "Weisheit" funktioniert nur nicht. Wer auch immer so einen Schwachsinn erzählt...

                1 Reply Last reply Reply Quote 0
                • A
                  Arni_Banone last edited by

                  Moin allerseits,
                  ich habe auf einem Raspberry Pi 4 laufen:
                  ioBroker, InfluxDB, Grafana

                  Habe eine Sicherung auf SD-Karte mittels SD Card Copier, sowie ein Back(it)up von ioBroker, JavaScript, InfluxDB.
                  Ich kann nun also einigermaßen sicher Dinge ausprobieren, bin aber wahrlich kein Profi auf diesem Gebiet.

                  Da ich einige Instanzen nicht mehr aktualisieren kann, möchte ich gerne Node.JS aktualisieren. Dies habe ich entsprechend der Anleitung mehrfach versucht.

                  Hier der Code im Spoiler

                  ioBroker nodejs fixer 2024-05-23
                  
                  Recommended nodejs-version is: 18.20.3
                  Checking your installation now. Please be patient!
                  
                  Your current setup is:
                  /usr/bin/node 		v16.19.0
                  /usr/bin/npm 		8.19.3
                  /usr/bin/npx 		8.19.3
                  /usr/bin/corepack 	0.15.1
                  
                  We found these nodejs versions available for installation:
                  
                  nodejs:
                   Installed: 16.19.0-deb-1nodesource1
                   Candidate: 20.14.0-1nodesource1
                   Version table:
                      20.14.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.13.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.13.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.12.2-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.12.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.12.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.11.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.11.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.10.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.9.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.8.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.8.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.7.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.6.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.6.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.5.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.5.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.4.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.3.1-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.3.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.2.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.1.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                      20.0.0-1nodesource1 1001
                         500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages
                  *** 16.19.0-deb-1nodesource1 100
                         100 /var/lib/dpkg/status
                      12.22.12~dfsg-1~deb11u4 500
                         500 http://deb.debian.org/debian bullseye/main arm64 Packages
                         500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                  
                  
                  
                  Nothing to do - Your installation is using the correct paths.
                  
                  You are running nodejs v16.19.0. Do you want to install recommended version 18.20.3? 
                  
                  Press <y> to continue or any other key to quit
                  Trying to fix your installation now. Please be patient.
                  Waiting for ioBroker to shut down - Give me a minute...
                  ############################################################
                  
                  *** These repos are active on your system:
                  Hit:1 http://deb.debian.org/debian bullseye InRelease
                  Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                                                                
                  Hit:3 http://security.debian.org/debian-security bullseye-security InRelease                                                 
                  Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease                                                               
                  Get:5 https://repos.influxdata.com/debian bullseye InRelease [12.9 kB]                                                       
                  Get:6 https://packages.grafana.com/oss/deb stable InRelease [7661 B]                                       
                  Err:5 https://repos.influxdata.com/debian bullseye InRelease
                   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
                  Err:6 https://packages.grafana.com/oss/deb stable InRelease
                   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545
                  Reading package lists... Done
                  W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
                  E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
                  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.
                  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.grafana.com/oss/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545
                  
                  *** 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_20.x nodistro main
                  Package: nodejs
                  Pin: origin deb.nodesource.com
                  Pin-Priority: 1001
                  
                  *** These repos are active after the adjustments:
                  Hit:1 http://deb.debian.org/debian bullseye InRelease
                  Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                                                                
                  Hit:3 http://security.debian.org/debian-security bullseye-security InRelease                                                 
                  Get:4 https://repos.influxdata.com/debian bullseye InRelease [12.9 kB]                                                       
                  Hit:5 http://archive.raspberrypi.org/debian bullseye InRelease                                                               
                  Get:6 https://packages.grafana.com/oss/deb stable InRelease [7661 B]                                                         
                  Hit:7 https://deb.nodesource.com/node_20.x nodistro InRelease                                            
                  Err:4 https://repos.influxdata.com/debian bullseye InRelease
                   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
                  Err:6 https://packages.grafana.com/oss/deb stable InRelease
                   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545
                  Reading package lists... Done
                  W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
                  E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
                  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.
                  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.grafana.com/oss/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545
                  
                  Installing nodejs now!
                  
                  /home/iobroker/.nodejs-update.sh: line 370: [: : integer expression expected
                  /home/iobroker/.nodejs-update.sh: line 387: [: : integer expression expected
                  Installing the nodejs!
                  W: GPG error: https://repos.influxdata.com/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
                  E: The repository 'https://repos.influxdata.com/debian bullseye InRelease' is not signed.
                  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.grafana.com/oss/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545
                  E: Failed to fetch https://packages.grafana.com/oss/deb/pool/main/g/grafana/grafana_10.1.0_arm64.deb  404  Not Found [IP: 146.75.118.217 443]
                  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
                  
                  We tried our best to fix your nodejs. Please run iob diag again to verify.
                  
                  *** RESTARTING ioBroker NOW! *** 
                  Please refresh or restart your browser in a few moments.
                  
                  

                  Ich sehe einige Fehlermeldungen mit fehlenden Key und Signaturen. Das sagt mir allerdings nichts.
                  Es scheint mit Grafana und InfluxDB zusammenzuhängen.

                  Mögt ihr mir ein paar Tipps geben, was ich als nächstes machen kann, um das Update doch noch zu installieren?

                  Vielen Dank!

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

                    @arni_banone

                    Mach es mittels

                    iob nodejs-update 20 
                    

                    Und zuvor die Grafana und Influxdb Repos auf einen aktuellen Stand bringen. Such meinen Thread 'Phantastische Repos und wo sie zu finden sind ' und leg die jeweils neu an.

                    A 1 Reply Last reply Reply Quote 2
                    • Thomas Braun
                      Thomas Braun Most Active @Arni_Banone last edited by

                      @arni_banone

                      https://forum.iobroker.net/topic/59231/phantastische-repositories-und-wo-sie-zu-finden-sind

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

                        @thomas-braun said in Troubleshooting NodeJS update:

                        iob nodejs-update 20

                        Wunderbar, vielen Dank für die wahnsinnig schnelle Hilfe!!!

                        Hat auf Anhieb geklappt.

                        1. Grafana Update
                        2. Influx update
                        3. Node.js update, jedoch mit Befehl
                        iob nodejs-update 20
                        

                        Neuer Stand:

                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        /usr/bin/npx
                        v20.14.0
                        v20.14.0
                        10.7.0
                        10.7.0
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Arni_Banone last edited by

                          @arni_banone

                          Dann halt dein System künftig regelmäßiger (alle paar Wochen minimum!) auf Stand. Das Thema mit den abgelaufenen Zertifikaten ist steinalt, mindestens seitdem hast du kein Update mehr fahren können.

                          1 Reply Last reply Reply Quote 2
                          • M
                            markusk1407 last edited by

                            Moin!
                            Irgendwie bin ich zu doof zum Updaten!
                            Das Update als root soll man ja nicht machen und funktioniert auch so nicht. Nun habe ich einen anderen Nutzer angelegt und bei diesem wird mir angezeigt:

                            Sorry, user iob is not allowed to execute '/usr/bin/curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh' as iobroker on iobroker.fritz.box.
                            

                            mache ich ein Sudo davor bekomme ich

                            Sorry, user iob is not allowed to execute '/usr/bin/iob nodejs-update' as root on iobroker.fritz.box.
                            

                            Wo liegt denn da nun mein Fehler?

                            LG
                            Markus

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

                              @markusk1407 sagte in Troubleshooting NodeJS update:

                              Wo liegt denn da nun mein Fehler?

                              An den falschen Gruppenzugehörigkeiten, vermutlich.

                              groups
                              

                              als iob ausgeführt? Und warum nimmst du nicht deinen Vornamen oder deinen Forumsnick als user name sondern 'iob', was gleichzeitig auch ein Kommando ist. Ungünstig.

                              Das Update als root soll man ja nicht machen und funktioniert auch so nicht.

                              Vollkommen korrekt, weil man auch nie direkt als root angemeldet durch das System stolpert.

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

                                @thomas-braun
                                Erstmal Danke für die schnelle Antwort.
                                Ich habe auch meinen Vornamen als User angelegt, aber auch da bekomme ich die selben Meldungen

                                uid=1001(markus) gid=1001(markus) groups=1001(markus),0(root),100(users)
                                
                                Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @markusk1407 last edited by

                                  @markusk1407 sagte in Troubleshooting NodeJS update:

                                  Ich habe auch meinen Vornamen als User angelegt, aber auch da bekomme ich die selben Meldungen

                                  Dann fehlen auch diesem user die notwendigen Gruppenzugehörigkeiten...

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

                                    @thomas-braun
                                    In welchen Gruppen muss man denn sein, um update zu dürfen? Der User markus ist doch schon in der root-gruppe (siehe oben)

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

                                      @markusk1407 sagte in Troubleshooting NodeJS update:

                                      da bekomme ich die selben Meldungen

                                      hast du mal mit root gearbeitet?
                                      dann könnten die Rechte so verbogen sein, dass niemand anders mehr zugreifen darf

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        markusk1407 @Homoran last edited by

                                        @homoran eigentlich nicht. Ich weiß ja, das man mit root nichts machen soll

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

                                          @markusk1407 sagte in Troubleshooting NodeJS update:

                                          Der User markus ist doch schon in der root-gruppe (siehe oben)

                                          Ihr immer mit dem root... Der markus gehört da gar nicht rein!
                                          Als root (letzmalig!)

                                          usermod -r -G root markus
                                          usermod -a -G adm,dialout,plugdev,sudo,iobroker markus
                                          reboot
                                          

                                          Und dann IMMER als markus einloggen NIE NIE NIE NIE als root.

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

                                            @markusk1407 sagte in Troubleshooting NodeJS update:

                                            Der User markus ist doch schon in der root-gruppe (siehe oben)

                                            das hat sich überschnitten!
                                            du hast aber auch editiert! ohne Kennzeichnung!
                                            und genau das darf er nicht!

                                            sudo ja, root nein

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            848
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs 18 nodejs update
                                            60
                                            504
                                            87021
                                            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