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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Troubleshooting NodeJS update

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @bfelizardo last edited by

      @bfelizardo sagte in Troubleshooting NodeJS update:

      ist das die Ursache für mein Problem?

      hast du tatsächlich von

      @bfelizardo sagte in Troubleshooting NodeJS update:

      node.js 12.x

      direkt auf 18 hochgezogen?

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

        @homoran @crunchip

        sorry mit den Ports, war mir unsicher was ich hier alles öffentlich machen soll.

        @Homoran ich habe von 14.x auf 18.x hochgezogen.

        crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
        • crunchip
          crunchip Forum Testing Most Active @bfelizardo last edited by

          @bfelizardo ok, sollte an und für sich funktionieren von 14 auf 18
          allerdings aufgrund deiner ungepflegten updates wohl nicht

          aktuelles OS neu installieren und backup vom iobroker zurückspielen würde ich vorschlagen

          bfelizardo 1 Reply Last reply Reply Quote 0
          • bfelizardo
            bfelizardo @crunchip last edited by

            @crunchip said in Troubleshooting NodeJS update:

            aktuelles OS neu installieren und backup vom iobroker zurückspielen würde ich vorschlagen

            ok danke. Werde ich ausprobieren!

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

              @bfelizardo sagte in Troubleshooting NodeJS update:

              sorry mit den Ports, war mir unsicher was ich hier alles öffentlich machen soll.

              Alles.

              Zumindest bei npm hast du aber noch händisch herumgefummelt. Die Version passt nicht zum nodejs.

              iob stop
              sudo install --reinstall nodejs
              iob start
              

              ausführen.

              Besser aber das System kompett neu aufsetzen, auf 'Bullseye' 64bit 'Lite'.

              1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @bfelizardo last edited by

                @bfelizardo sagte in Troubleshooting NodeJS update:

                npm ERR! notsup Required: {"node":"^12.16.1 || ^10.15.2 || ^8.15.1","npm":"^6.4.1"}npm ERR! notsup Actual: {"npm":"9.7.2","node":"v18.16.1"}npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-07-05T08_46_11_943Z-debug-0.log

                liess ggf mal in dem genannten Logfile - vllt steht da welches paket es bei dir auslöst

                1 Reply Last reply Reply Quote 0
                • S
                  Stadtschloss last edited by Stadtschloss

                  Hallo,

                  ich kann leider kein apt-get update machen. Ich erhalte folgenden Fehler:

                  apt-get update
                  Err:1 https://deb.nodesource.com/node_18.x bullseye InRelease
                    Could not connect to deb.nodesource.com:443 (0.0.0.0). - connect (111: Connection refused) Could not connect to deb.nodesource.com:443 (::). - connect (111: Connection refused)
                  Hit:2 http://ftp.debian.org/debian bullseye InRelease
                  Hit:3 http://security.debian.org bullseye-security InRelease
                  Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
                  Reading package lists... Done
                  W: Failed to fetch https://deb.nodesource.com/node_18.x/dists/bullseye/InRelease  Could not connect to deb.nodesource.com:443 (0.0.0.0). - connect (111: Connection refused) Could not connect to deb.nodesource.com:443 (::). - connect (111: Connection refused)
                  W: Some index files failed to download. They have been ignored, or old ones used instead.
                  
                  node --version
                  v18.15.0
                  

                  Was kann ich hier tun?
                  Danke!

                  EDIT:
                  Mein Adblocker blockiert die URL. Problem gelöst 🙂

                  1 Reply Last reply Reply Quote 0
                  • C
                    centrofly last edited by centrofly

                    Post gelöscht, hat sich auf wundersame Weise selbst geheilt...

                    1 Reply Last reply Reply Quote 0
                    • C
                      Creatorhs last edited by Creatorhs

                      Hallo zusammen,

                      ich habe leider Probleme nodejs upzudaten.

                      Ich konnte noch iob stop eingeben und - vermutlich - die alte nodejs Version löschen. Wobei auch schon hier nicht genau die Ausgabe kam, wie im best practice Artikel.

                      Ich habe dann noch versucht das Repository herunterzuladen und erscheint dann folgende Fehlermeldung:

                      + apt-get update
                      OK:1 http://archive.raspberrypi.org/debian buster InRelease
                      OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                      Ign:3 https://packages.grafana.com/oss/deb stable InRelease
                      OK:4 https://deb.nodesource.com/node_12.x buster InRelease
                      Fehl:5 https://packages.grafana.com/oss/deb stable Release
                        Certificate verification failed: The certificate is NOT trusted. The certifica                                                                             te chain uses expired certificate.  Could not handshake: Error in the certificat                                                                             e verification. [IP: 2a04:4e42:6f::729 443]
                      Paketlisten werden gelesen... Fertig
                      E: Das Depot »https://packages.grafana.com/oss/deb stable Release« enthält keine                                                                              Release-Datei mehr.
                      N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art dur                                                                             chgeführt werden, daher ist es standardmäßig deaktiviert.
                      N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfigur                                                                             ation finden Sie in der Handbuchseite apt-secure(8).
                      Error executing command, exiting
                      
                      

                      Danach geht nichts mehr mit der bisher aufgespielten Version 14, da diese ja weg ich.

                      Ich habe dann noch versucht "irgendeine" Nodejs zu installieren, was vermutlich der Fehler war:

                      sudo apt install -y nodejs
                      

                      jetzt ist die ganz alte Version 12 drauf und zB Javaskript startet nicht mehr.

                      Kann mir jemand helfen? Ich hab keine Ahnung, wie ich weitermachen soll. Backups sind auf googledrive vorhanden. Wenn ich ganz ehrlich bin bräuchte ich hier auch Hilfe um die wieder einzuspielen.

                      edit: auch weitere Instanzen, wie zB shelly, tankerkönig, fb-checkpresence, gehen nicht mehr. Ich vermute, da die V12 zu alt ist?!

                      Danke
                      Creator

                      crunchip 1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @Creatorhs last edited by crunchip

                        @creatorhs sagte in Troubleshooting NodeJS update:

                        mit der bisher aufgespielten Version 14, da diese ja weg ich

                        und wie hast du die da rein gebracht, denn in deinem repo steht noch

                        @creatorhs sagte in Troubleshooting NodeJS update:

                        https://deb.nodesource.com/node_12.x buster InRelease

                        @creatorhs sagte in Troubleshooting NodeJS update:

                        Certificate verification failed: The certificate is NOT trusted.

                        grafana korrigieren

                        @creatorhs sagte in Troubleshooting NodeJS update:

                        debian buster

                        https://www.debian.org/releases/

                        um deine probleme zu beseitigen, findest du die Lösungen hier https://forum.iobroker.net/user/thomas-braun

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          Creatorhs @crunchip last edited by Creatorhs

                          @crunchip sagte in Troubleshooting NodeJS update:

                          @creatorhs sagte in Troubleshooting NodeJS update:

                          mit der bisher aufgespielten Version 14, da diese ja weg ich

                          und wie hast du die da rein gebracht, denn in deinem repo steht noch

                          @creatorhs sagte in Troubleshooting NodeJS update:

                          https://deb.nodesource.com/node_12.x buster InRelease

                          @creatorhs sagte in Troubleshooting NodeJS update:

                          Certificate verification failed: The certificate is NOT trusted.

                          grafana korrigieren

                          @creatorhs sagte in Troubleshooting NodeJS update:

                          debian buster

                          https://www.debian.org/releases/

                          Danke für deine schnelle Antwort!

                          Wie ich die reingebracht habe?! Durch das letzte Update, habe mich an die Artikel hier gehalten. Hatte nur vorhin unter "Hosts" die V14 gesehen, daher meine Aussage. Weiß nicht mehr sicher, welches das letzte Update war, ist schon etwas her...

                          Grafana korrigieren: Wie?

                          mit dem letzten Link, den du geschrieben hattest: Was möchtest du mir dort zeigen?

                          Danke für die Hilfe.

                          EDIT: Danke, lese mir die links durch...

                          crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
                          • crunchip
                            crunchip Forum Testing Most Active @Creatorhs last edited by

                            @creatorhs sagte in Troubleshooting NodeJS update:

                            Was möchtest du mir dort zeigen?

                            da stehn alle Threads( die oberen) zu deinen Problemen

                            @creatorhs sagte in Troubleshooting NodeJS update:

                            habe mich an die Artikel hier gehalten

                            an welche? dann würde ja keine v12 drin stehen

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

                              @creatorhs

                              Bzgl. nodejs kannst du auch probieren mit der aktuellen Beta vom iob_diag-Skript das gerade ziehen zu lassen.

                              Nutzt dir aber nix bei den anderen Dingen, die da bei dir im Argen liegen.

                              1 Reply Last reply Reply Quote 0
                              • C
                                Chu last edited by Chu

                                Hallo,

                                ich hab eben das Update von nodeJS 14 auf 18 gemacht. Nach dieser Anleitung: https://forum.iobroker.net/topic/64032/update-nodejs-best-practise-supported-16-und-18

                                type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v
                                /usr/bin/nodejs
                                /usr/bin/node
                                /usr/bin/npm
                                /usr/bin/npx
                                v18.17.1
                                v18.17.1
                                9.6.7
                                9.6.7
                                

                                Jedoch erkennt der ioBroker die Version nicht:
                                iobroker_nodeJS.png

                                und das update für den Admin Adapter kann ebenfalls nicht durchgeführt werden wegen zu geringer nodeJS Version.

                                Hat jemand eine Idee wie ich den ioBroker die neue Version nutzen lasse?

                                Danke

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

                                  @chu sagte in Troubleshooting NodeJS update:

                                  Hat jemand eine Idee wie ich den ioBroker die neue Version nutzen lasse?

                                  Starte den neu.

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Chu @Chu last edited by

                                    @chu

                                    NPM war noch outdated:

                                    npm install -g npm@9.8.1
                                    

                                    danach noch ein reboot und ioBroker hat die aktuelle Version erkannt.

                                    mcm1957 Thomas Braun 2 Replies Last reply Reply Quote 0
                                    • mcm1957
                                      mcm1957 @Chu last edited by mcm1957

                                      @chu
                                      Klingt komisch.
                                      Erstens sollte npm nur mit node zusammen aktualisisert werden (wenn nicht besondere Gründe existieren) und zwitens hängt npm nicht mit der Erkennung der Node version zusammen ...

                                      Schätze eher dass der Reboot gehoöfen hat.

                                      Ansonsten - wenns jetzt geht solls recht sein ...

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

                                        @chu

                                        Lass die Finger von einer globalen Installation von 'npm'. Das kommt immer in passender Version beim Paket 'nodejs' mit.

                                        f80e321a-762e-49a3-bcde-ef6851504306-image.png

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

                                          @mcm57 sagte in Troubleshooting NodeJS update:

                                          Schätze eher dass der Reboot gehoöfen hat.

                                          Ja.
                                          Den iobroker stoppt man ja auch eigentlich, bevor man da die Laufzeitumgebung anpackt. Hier ist das augenscheinlich nicht passiert, sonst würde keine Uptime von 14 Tagen angezeigt.

                                          Wäre der 2 Punkt aus der Anleitung gewesen...

                                          mcm1957 C 2 Replies Last reply Reply Quote 0
                                          • mcm1957
                                            mcm1957 @Thomas Braun last edited by

                                            @thomas-braun
                                            OK - hab ich nicht gesehen.
                                            Wundert mich, dass er sich nicht selbst "gestoppt" hat (= gecrashed ist).

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            826
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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