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.
    • H
      Habedere @crunchip last edited by

      @crunchip sagte in Troubleshooting NodeJS update:

      @habedere natürlich können neuere Versionen auch mehr verbrauchen, alles in allem wird ja auch stehts verbessert und Leistungsstärker
      1GB ist halt nun mal begrenzt geeignet

      schlecht - hab nur 10 Adapter laufen und einige sonstige noch aus 🙂
      Kann ich die SSD 1:1 an nen größeren Raspi hängen ohne den ganzen Mist von vorn installieren zu müssen?

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

        @habedere Anzahl Adapter ist zweitrangig, kommt ja drauf an welche und wie viel dann der jeweilige Adapter verbrät.

        Theoretisch sollte es klappen mit der SSD, bin mir da aber nicht 100% sicher.

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

          Ich habe gerade unter Ubuntu 22.04 von NodeJS Version 16 auf 18 geupgraded ...

          Öhm, das war ja mal ganz schrecklich unspektakulär ... beim Wechsel von 14 auf 16 hat er jede Menge Adapter rebuilded - das fällt diesmal weg?

          Gerade beim ZigBee-Adapter waren es letztes mal 2 Anläufe, jetzt startet der einfach wieder ...

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

            @bananajoe sagte in Troubleshooting NodeJS update:

            Öhm, das war ja mal ganz schrecklich unspektakulär ...

            Ist es das nicht in den überwiegenden Fällen eigentlich immer?

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

              Ha, doch was gefunden:

              2023-05-03 20:54:58.621  - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
              was compiled against a different Node.js version using
              NODE_MODULE_VERSION 93. This version of Node.js requires
              NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
              the module (for instance, using `npm rebuild` or `npm install`).
              2023-05-03 20:55:40.504  - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
              was compiled against a different Node.js version using
              NODE_MODULE_VERSION 93. This version of Node.js requires
              NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
              the module (for instance, using `npm rebuild` or `npm install`).
              2023-05-03 20:55:42.236  - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
              was compiled against a different Node.js version using
              NODE_MODULE_VERSION 93. This version of Node.js requires
              NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
              the module (for instance, using `npm rebuild` or `npm install`).
              2023-05-03 20:55:52.262  - info: javascript.0 (10419) script.js.001_Routinen.Solaranlage.Ertragsrechnung: exec: wget --output-document /tmp/Cam225Solaranlage.jpg 'http://192.168.1.225/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=IchbineingeilerTypp&user=admin&password=znil2001'
              2023-05-03 20:55:52.274  - error: echarts.0 (12715) Cannot find required modules: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
              was compiled against a different Node.js version using
              NODE_MODULE_VERSION 93. This version of Node.js requires
              NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
              the module (for instance, using `npm rebuild` or `npm install`).
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @BananaJoe last edited by

                @bananajoe

                Canvas sollte sich aber auch selber richten. Geduld...

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

                  @thomas-braun ah, danke, war schon am suchen.
                  Hatte schon beim Einrichten damals etwas suchen müssen bis canvas lief.

                  Installiert sieht es richtig aus (meiner Bescheidenen Meinung nach)

                  iobroker@iobroker:/opt/iobroker$ npm list canvas
                  iobroker.inst@2.0.3 /opt/iobroker
                  ├── canvas@2.11.2
                  ├─┬ iobroker.echarts@1.4.14
                  │ ├── canvas@2.11.2 deduped
                  │ └─┬ jsdom@21.1.1
                  │   └── canvas@2.11.2 deduped
                  ├─┬ iobroker.energiefluss@3.6.0 (git+ssh://git@github.com/SKB-CGN/ioBroker.energiefluss.git#1b2f62380b39ac21b8a94853d76b4acf6c395111)
                  │ └── canvas@2.11.2 deduped
                  └─┬ iobroker.iot@1.14.5
                    └── canvas@2.11.2 deduped
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • BananaJoe
                    BananaJoe Most Active last edited by

                    Man bin ich ungeduldig. Aber wie @Thomas-Braun geschrieben hat - Geduld.

                    Der eCharts-Adapter ist einmal "abgestürzt" als ich versucht habe ein Diagramm zu senden, danach ging wieder,
                    Ich hatte auf eine Log-Meldung zum Rebuild gehofft.

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

                      @bananajoe

                      Eigentlich sollten in der obersten Ebene des npm tree nur iobroker.adapter liegen.

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

                        @thomas-braun Hab einen Moment gebraucht bis ich wusste was du meinst.

                        Ja, da ist eine "Leiche" von damals als ich versucht habe Canvas für den eChart-Adapter zum laufen zu bekommen.
                        Die meisten anderen Adapter gab es da noch nicht. Wenn wir beide mal suchen werden wir irgendwo einen Thema finden wo wir beide schon einmal darüber geschrieben hatten. Ich hatte zwischendurch meine ich lauter Einzelinstallation und am Ende diese deduped Variante.

                        Irgendwelche Korrekturvorschläge? Oder kann es so bleiben?

                        Hab doch mal gesucht, hier haben wir uns schon einmal darüber unterhalten:
                        https://forum.iobroker.net/topic/44566/how-to-node-js-iobroker-richtig-updaten-2021-22-edition/516 (nach oben scrollen)

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

                          @bananajoe

                          Ich denke das kann weg.

                          cd /opt/iobroker
                          npm u canvas
                          

                          Bei mir liegt das auch erst in der zweiten Ebene:

                          echad@chet:~ $ cd /opt/iobroker/
                          echad@chet:/opt/iobroker $ npm ls canvas
                          iobroker.inst@3.0.0 /opt/iobroker
                          ├─┬ iobroker.echarts@1.4.14
                          │ ├── canvas@2.11.2
                          │ └─┬ jsdom@21.1.1
                          │   └── canvas@2.11.2 deduped
                          ├─┬ iobroker.iot@1.14.5 (git+ssh://git@github.com/ioBroker/ioBroker.iot.git#3125ef0f84dc12bb0efecf31be08f1448ae62187)
                          │ └── canvas@2.11.2 deduped
                          └─┬ iobroker.mihome-vacuum@3.10.1
                            └── canvas@2.11.2 deduped
                          
                          echad@chet:/opt/iobroker $
                          
                          BananaJoe 1 Reply Last reply Reply Quote 0
                          • BananaJoe
                            BananaJoe Most Active @Thomas Braun last edited by

                            @thomas-braun sagte in Troubleshooting NodeJS update:

                            npm u canvas

                            ich nehme an das stand für

                            npm uninstall canvas
                            

                            sieht jetzt so bei mir aus:

                            iobroker@iobroker:/opt/iobroker$ npm ls canvas
                            iobroker.inst@2.0.3 /opt/iobroker
                            ├─┬ iobroker.echarts@1.4.14
                            │ ├── canvas@2.11.2
                            │ └─┬ jsdom@21.1.1
                            │   └── canvas@2.11.2 deduped
                            ├─┬ iobroker.energiefluss@3.6.0 (git+ssh://git@github.com/SKB-CGN/ioBroker.energiefluss.git#1b2f62380b39ac21b8a94853d76b4acf6c395111)
                            │ └── canvas@2.11.2 deduped
                            └─┬ iobroker.iot@1.14.5
                              └── canvas@2.11.2 deduped
                            

                            Also so wie bei dir?!
                            eCharts funktioniert noch (das Senden von Diagrammen per Telegram), also sollte es passen.

                            Danke!

                            1 Reply Last reply Reply Quote 0
                            • MeinzIsAs
                              MeinzIsAs last edited by

                              Hi!

                              Ich wollte gerade auf das aktuelle Node.js V18 updaten und bekomme folgenden Fehler

                              meinz@iobroker:~$ sudo apt-get install -y nodejs
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
                              Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
                              Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
                              nicht erstellt wurden oder Incoming noch nicht verlassen haben.
                              Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
                              
                              Die folgenden Pakete haben unerfüllte Abhängigkeiten:
                               nodejs : Hängt ab von: libc6 (>= 2.28) aber 2.27-3ubuntu1.6 soll installiert werden
                              E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
                              
                              
                              apt policy libc6 libc6-dbg libc6-dev
                              

                              bring folgende Ausgabe

                              meinz@iobroker:~$ apt policy libc6 libc6-dbg libc6-dev
                              libc6:
                                Installiert:           2.27-3ubuntu1.6
                                Installationskandidat: 2.27-3ubuntu1.6
                                Versionstabelle:
                               *** 2.27-3ubuntu1.6 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                                      100 /var/lib/dpkg/status
                                   2.27-3ubuntu1.5 500
                                      500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
                                   2.27-3ubuntu1 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
                              libc6-dbg:
                                Installiert:           2.27-3ubuntu1.6
                                Installationskandidat: 2.27-3ubuntu1.6
                                Versionstabelle:
                               *** 2.27-3ubuntu1.6 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                                      100 /var/lib/dpkg/status
                                   2.27-3ubuntu1.5 500
                                      500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
                                   2.27-3ubuntu1 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
                              libc6-dev:
                                Installiert:           2.27-3ubuntu1.6
                                Installationskandidat: 2.27-3ubuntu1.6
                                Versionstabelle:
                               *** 2.27-3ubuntu1.6 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                                      100 /var/lib/dpkg/status
                                   2.27-3ubuntu1.5 500
                                      500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
                                   2.27-3ubuntu1 500
                                      500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
                              
                              
                              sudo apt update
                              

                              ergibt

                              OK:1 http://at.archive.ubuntu.com/ubuntu bionic InRelease
                              OK:2 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
                              OK:3 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
                              OK:4 https://deb.nodesource.com/node_18.x bionic InRelease
                              Holen:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
                              Es wurden 88,7 kB in 2 s geholt (41,9 kB/s).
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.
                              Statusinformationen werden eingelesen.... Fertig
                              Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
                              
                              
                              apt list --upgradable
                              

                              bring dann

                               apt list --upgradable
                              Auflistung... Fertig
                              nodejs/unbekannt 18.16.0-deb-1nodesource1 amd64 [aktualisierbar von: 16.20.0-deb-1nodesource1]
                              N: Es gibt 4 zusätzliche Versionen. Bitte verwenden Sie die Option »-a«, um sie anzuzeigen.
                              
                              
                              iobroker stop
                              sudo apt update
                              sudo apt full-upgrade
                              sudo reboot
                              

                              Hab ich auch durchlaufen lassen. Danach noch immer das gleiche Problem.

                              Vielen Dank für Eure Hilfe.

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

                                @meinzisas

                                Dein Betriebssystem ist zu alt. Bring das auf Ubuntu 22.04.

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

                                  @thomas-braun

                                  Das würde wohl eine Neuinstallation bedeuten, oder?

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

                                    @meinzisas

                                    Nicht unbedingt. Zwischen den LTS-Versionen sollte das auch im laufenden Betrieb gehen. Für Details dazu musste mal im Netz suchen.

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

                                      @thomas-braun said in Troubleshooting NodeJS update:

                                      @meinzisas

                                      Nicht unbedingt. Zwischen den LTS-Versionen sollte das auch im laufenden Betrieb gehen. Für Details dazu musste mal im Netz suchen.

                                      Ok. Vielen Dank für die schnelle Hilfe.

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        reini last edited by

                                        Hallo, wollte nodejs von 14 auf 18 updaten - wie kann ich das fixen? thx

                                        sudo apt update
                                        Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
                                        Fehl:2 http://security.debian.org/debian-security stretch/updates Release
                                          404  Not Found [IP: 199.232.18.132 80]
                                        Ign:3 http://ftp.de.debian.org/debian stretch InRelease
                                        Ign:4 http://ftp.de.debian.org/debian stretch-updates InRelease
                                        Fehl:5 http://ftp.de.debian.org/debian stretch Release
                                          404  Not Found
                                        Fehl:6 http://ftp.de.debian.org/debian stretch-updates Release
                                          404  Not Found
                                        OK:7 https://deb.nodesource.com/node_18.x bullseye InRelease
                                        Paketlisten werden gelesen... Fertig
                                        E: The repository 'http://security.debian.org/debian-security stretch/updates 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.
                                        E: The repository 'http://ftp.de.debian.org/debian 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.
                                        E: The repository 'http://ftp.de.debian.org/debian stretch-updates 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 @reini last edited by Thomas Braun

                                          @reini

                                          Dein Betriebssystem ist hoffnungslos veraltet.
                                          Bring das zunächst auf das 'Bullseye'-Release.

                                          Der Sprung ist aber so groß, installier es neu.

                                          Wieder diese 'never tatsch a ranning süstäm'-Mär geglaubt?

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User last edited by

                                            mir wird angezeigt, dass es ein Punkt-Update gibt. Wenn ich aber nach Anleitung nodejs erst de- und dann installiere bleibt es bei 18.16.0

                                            das steht in Info beim ioBroker, und wird letztlich auch bei unten stehendem Terminalbefehl angezeigt.
                                            Node.js: v18.16.0(18.16.1)

                                            pi@HomeServer01:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                                            pi@HomeServer01:~ $ 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.16.0
                                            v18.16.0
                                            9.5.1
                                            9.5.1
                                            

                                            einfach noch ein paar Tage warten?
                                            das ganze ist kein "Problem", freu mich nur, wenn ich überall immer "Vorne" bin.
                                            Danke Euch schon mal

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            455
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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