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 @Thomas Braun last edited by

      @thomas-braun
      ne sorry - war der Zeitversatz der ausgeführten Änderungen 🙂

      mach gerade nochmal iob diag neu...

      Dann sieht es sauber aus 🙂

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

        @thomas-braun

        ======================= SUMMARY =======================
                             v.2023-04-16
        
        
        Operatingsystem:        Debian GNU/Linux 11 (bullseye)
        Kernel:                 6.1.21-v8+
        Installation:           Native
        Timezone:               Europe/Berlin (CEST, +0200)
        User-ID:                1000
        X-Server:               false
        Boot Target:            multi-user.target
        
        Pending OS-Updates:     0
        Pending iob updates:    0
        
        Nodejs-Installation:    /usr/bin/nodejs         v18.16.0
                                /usr/bin/node           v18.16.0
                                /usr/bin/npm            9.5.1
                                /usr/bin/npx            9.5.1
        
        Recommended versions are nodejs 18.x.y and npm 9.x.y
        Your nodejs installation is correct
        
        MEMORY:
                       total        used        free      shared  buff/cache   available
        Mem:            909M        329M        142M        1.0M        437M        517M
        Swap:            99M          0B         99M
        Total:          1.0G        329M        242M
        
        Active iob-Instances:   4
        Active repo(s): stable
        
        ioBroker Core:          js-controller           4.0.24
                                admin                   6.3.5
        
        ioBroker Status:        iobroker is running on this host.
        
        
        Objects type: jsonl
        States  type: jsonl
        
        Status admin and web instance:
        + system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
        
        Objects:                142
        States:                 104
        
        Size of iob-Database:
        
        6.5M    /opt/iobroker/iobroker-data/objects.jsonl
        576K    /opt/iobroker/iobroker-data/states.jsonl
        
        
        
        =================== END OF SUMMARY ====================
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Habedere last edited by

          @habedere

          Ja, jetzt ist die Basis solide.

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

            @thomas-braun

            Sehr schön - Danke!

            Kurze Frage noch - wenn auch etwas OT.
            Die MariaDB für den SQL Adapter muss ich nochmal extra installieren oder? Damit ioBroker das SQL Backup einspielen kann...
            Oder macht der das gleich mit?!

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

              @habedere sagte in Troubleshooting NodeJS update:

              Oder macht der das gleich mit?!

              Der iobroker kann keine Software-Pakete in das Basis-System einspielen. Jedenfalls nicht via Adapter-Installation. Also muss die Datenbank zuvor installiert werden.

              1 Reply Last reply Reply Quote 0
              • H
                Habedere last edited by

                @thomas-braun
                Danke - habe die MariaDB neu installiert.

                Kurze Frage - kann es sein dass die neueste ioBroker Version + Adapter etc. mehr RAM benötigen?!
                Ich laufe komplett auf Anschlag mit meinen 1GB - wüsste nicht dass es vorher auch so krass war...

                *** MEMORY ***
                               total        used        free      shared  buff/cache   available
                Mem:            909M        745M         56M        0.0K        107M        107M
                Swap:            99M         99M        0.0K
                Total:          1.0G        844M         57M
                
                          909 M total memory
                          745 M used memory
                          525 M active memory
                          241 M inactive memory
                           56 M free memory
                            7 M buffer memory
                           99 M swap cache
                           99 M total swap
                           99 M used swap
                            0 M free swap
                
                Raspberry only:
                oom events: 0
                lifetime oom required: 0 Mbytes
                total time in oom handler: 0 ms
                max time spent in oom handler: 0 ms
                

                Oder kann es sein nachdem ich das Backup eingespielt habe, dass da was doppelt läuft?
                Hatte da heute noch diverse Probleme mit redis etc etc... Evtl. hab ich wieder gemurxt 😞

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

                  @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

                  H 1 Reply Last reply Reply Quote 0
                  • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            965
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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