Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Wir empfehlen: Node.js 22.x

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Wir empfehlen: Node.js 22.x

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

      @thomas-braun
      Linux smarthome 6.12.34+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26) aarch64

      The programs included with the Debian GNU/Linux system are free software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      Last login: Wed Aug 27 20:28:57 2025 from 192.168.178.31
      andreas@smarthome:~ $ iob update
      Used repository: stable
      Adapter "admin" : 7.6.17 , installed 7.6.17
      Adapter "alexa2" : 3.27.3 , installed 3.27.3
      Adapter "backitup" : 3.3.5 , installed 3.3.5
      Adapter "ble" : 0.14.0 , installed 0.14.0
      Adapter "broadlink2" : 2.3.0 , installed 2.3.0
      Adapter "discovery" : 5.0.0 , installed 5.0.0
      Adapter "feiertage" : 1.2.1 , installed 1.2.1
      Adapter "harmony" : 1.5.0 , installed 1.5.0
      Adapter "hs100" : 3.0.5 , installed 2.2.2 [Updatable]
      Adapter "hue" : 3.16.2 , installed 3.16.2
      Adapter "iot" : 3.3.0 , installed 3.3.0
      Adapter "javascript" : 8.9.2 , installed 8.9.2
      Controller "js-controller": 7.0.7 , installed 7.0.7
      Adapter "lgtv" : 2.4.0 , installed 2.4.0
      Adapter "pushover" : 4.1.0 , installed 4.1.0
      Adapter "socketio" : 6.7.1 , installed 7.0.8
      Adapter "sonos" : 3.0.0 , installed 3.0.0
      Adapter "tado" : 0.7.10 , installed 0.7.10
      Adapter "tr-064" : 4.3.0 , installed 4.3.0
      Adapter "web" : 7.0.8 , installed 7.0.8
      Adapter "ws" : 2.6.2 , installed 3.0.19
      Adapter "zigbee" : 2.0.5 , installed 1.10.14 [Updatable]
      andreas@smarthome:~ $

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

        @thomas-braun
        Der hs100 Adapter wird gar nicht mehr benötigt, denn sollt ich mal komplett entfernen und die neue zigbee Version bereitet bei mir nur Schwierigkeiten. Aus dem Grund läuft dort noch eine alte Version.

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

          @siragus

          Schmeiß raus was nicht benötigt wird. Und zu zigbee gibt es bestimmt auch was gescheiteres als da uralte Versionen zu fahren...

          Kann man die Eins nicht anklicken?

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

            @thomas-braun
            Ach Thomas, Du bist mir wirklich bei jedem Problem behilflich.
            Ja, ich konnte die 1 anklicken und bekam den Hinweis, dass der Sonos Adapter zu häufig abgestürzt ist.
            Nun ist die 1 weg und Sonos läuft auch wieder.

            Ich würde mich gerne für Deine Hilfestellungen bei Dir mal anderweitig bedanken und mich mittels einer kleinen Finanzspritze erkenntlich zeigen.
            Wie kann ich das machen?

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

              @siragus sagte in Wir empfehlen: Node.js 22.x:

              Wie kann ich das machen?

              Brauchst du nicht.

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

                @thomas-braun
                Würde ich aber wirklich sehr gerne. Denn Du hast mir wirklich bisher in jeder Situation geholfen.

                1 Reply Last reply Reply Quote 0
                • P
                  Pitpilot @Pitpilot last edited by

                  @pitpilot Zur Info:
                  nach dem heutigen Ausführen des scripts: iob nodejs-update 22 auf meinem Produktiv System
                  konnte ich den Siemens Simatic S7 Adapter 1.4.3
                  nach einer Adapter Reinstallation unter 22 mit
                  iob upgrade s7@1.4.3 --debug
                  zum Laufen bringen.

                  mcm1957 1 Reply Last reply Reply Quote 0
                  • mcm1957
                    mcm1957 @Pitpilot last edited by

                    @pitpilot nur zur Info
                    Die aktuelle version des s7 adapters ist bereits 1.5.0

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      Pitpilot @mcm1957 last edited by

                      @mcm1957
                      Vielen Dank ! Ich teste das mal auf meinem Clone System. Scheint noch nicht released zu sein ?
                      Mein Produktiv System läuft unter 22 stabil mit dem Siemens Adapter 1.4.3.
                      0452f273-24fe-425f-a9c4-ee3fb54b5566-image.png

                      P mcm1957 2 Replies Last reply Reply Quote 0
                      • P
                        Pitpilot @Pitpilot last edited by

                        @pitpilot Siemens Adapter 1.5.0 läuft unter 22. Ich teste das zunächst und warte noch etwas mit dem Produktiv System.👍

                        1 Reply Last reply Reply Quote 1
                        • mcm1957
                          mcm1957 @Pitpilot last edited by mcm1957

                          @pitpilot said in Wir empfehlen: Node.js 22.x:

                          @mcm1957
                          Vielen Dank ! Ich teste das mal auf meinem Clone System. Scheint noch nicht released zu sein ?

                          1.5.0 IST released - aber wie jede neue Release zunächst für ca 14 Tage im LATEST Repository und noch nicht im STABLE..

                          EDIT: Wie ich sehe hast du sie eh gefunden.

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            Pitpilot @mcm1957 last edited by

                            @mcm1957 Danke für die gute Arbeit. Den Kaffee gebe ich gerne aus. Bin jetzt aktuell auf meinem Produktivsystem.

                            1 Reply Last reply Reply Quote 0
                            • K
                              KoMa666 last edited by

                              Hallo zusammen,

                              mein IOB System ist auf aktuellem Stand auf Debian 12, allerdings noch auf nodeJS v20.19.5.
                              Wenn ich jetzt mittels "iob nodejs-update 22" ein Update auf die 22.19.0 mache, dann klappt das, aber der iob startet nicht mehr. Mache ich ein downgrade (iob nodejs-update 20), ist wieder alles OK.

                              Die Fehlermeldung bei mir ist:

                              Sep 16 14:51:49 iobroker01 bash[197699]:     at Module._compile (node:internal/modules/cjs/loader:1706:14)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at Object.<anonymous> (/opt/iobroker/node_modules/unix-dgram/lib/unix_dgram.js:4:34)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at bindings (/opt/iobroker/node_modules/bindings/bindings.js:112:48)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at require (node:internal/modules/helpers:147:16)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at Module.require (node:internal/modules/cjs/loader:1463:12)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at Function._load (node:internal/modules/cjs/loader:1263:12)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at Module.load (node:internal/modules/cjs/loader:1441:32)
                              Sep 16 14:51:49 iobroker01 bash[197699]:     at Object..node (node:internal/modules/cjs/loader:1865:18)
                              Sep 16 14:51:49 iobroker01 bash[197699]: the module (for instance, using `npm rebuild` or `npm install`).
                              Sep 16 14:51:49 iobroker01 bash[197699]: NODE_MODULE_VERSION 127. Please try re-compiling or re-installing
                              Sep 16 14:51:49 iobroker01 bash[197699]: NODE_MODULE_VERSION 115. This version of Node.js requires
                              Sep 16 14:51:49 iobroker01 bash[197699]: was compiled against a different Node.js version using
                              Sep 16 14:51:49 iobroker01 bash[197699]: Uncaught Rejection: Error: The module '/opt/iobroker/node_modules/unix-dgram/build/Release/unix_dgram.node'
                              

                              Wenn ich nach dem Update nochmal "iob fix", "iob update", "iob upgrade", "apt update" (als root) oder "apt upgrade" (also root) ausführe, findet er nichts neues.

                              Ist das ein bekannter Fehler? Wie bekomme ich den am saubersten weg?

                              Besten Dank,
                              KoMa

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

                                @koma666 sagte in Wir empfehlen: Node.js 22.x:

                                Ist das ein bekannter Fehler? Wie bekomme ich den am saubersten weg?

                                Dazu müsstest du schauen, wo genau der Rebuild scheitert. Dein Log hat ja nur Fragmente. (Und ist auch chronologisch falsch herum...)
                                So wird was sinnvolleres draus:

                                Sep 16 14:51:49 iobroker01 bash[197699]: Uncaught Rejection: Error: The module '/opt/iobroker/node_modules/unix-dgram/build/Release/unix_dgram.node'
                                Sep 16 14:51:49 iobroker01 bash[197699]: was compiled against a different Node.js version using
                                Sep 16 14:51:49 iobroker01 bash[197699]: NODE_MODULE_VERSION 115. This version of Node.js requires
                                Sep 16 14:51:49 iobroker01 bash[197699]: NODE_MODULE_VERSION 127. Please try re-compiling or re-installing
                                Sep 16 14:51:49 iobroker01 bash[197699]: the module (for instance, using `npm rebuild` or `npm install`).
                                

                                Du musst also schauen, wo unix-dgram verwendet wird und den Adapter neubauen oder neuinstallieren.

                                cd /opt/iobroker && npm ls unix-dgram
                                

                                anschauen.

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

                                  @thomas-braun said in Wir empfehlen: Node.js 22.x:
                                  Ja, das lag an "journalctl -r", aber ich denke die Fehler wurden ersichtlich 😉

                                  Mit nodejs 20 sieht es so aus:

                                  iobroker.inst@3.0.0 /opt/iobroker
                                  └─┬ iobroker.js-controller@7.0.7
                                    └─┬ @iobroker/js-controller-common-db@7.0.7
                                      └─┬ winston-syslog@2.7.1
                                        └── unix-dgram@2.0.6
                                  

                                  Dann habe ich ein Update von nodeJS gemacht:

                                  iob stop
                                  iob fix
                                  iob nodejs-update 22
                                  iob fix
                                  

                                  Danach sieht es (genau)so aus:

                                  iobroker.inst@3.0.0 /opt/iobroker
                                  └─┬ iobroker.js-controller@7.0.7
                                    └─┬ @iobroker/js-controller-common-db@7.0.7
                                      └─┬ winston-syslog@2.7.1
                                        └── unix-dgram@2.0.6
                                  
                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    KoMa666 @KoMa666 last edited by

                                    @thomas-braun said in Wir empfehlen: Node.js 22.x:
                                    Ich habe jetzt mal testweise " npm install unix-dgram" in /opt/iobroker gemacht und nun startet iob wieder, aber es sieht so aus:

                                    iobroker.inst@3.0.0 /opt/iobroker
                                    ├─┬ iobroker.js-controller@7.0.7
                                    │ └─┬ @iobroker/js-controller-common-db@7.0.7
                                    │   └─┬ winston-syslog@2.7.1
                                    │     └── unix-dgram@2.0.6
                                    └── unix-dgram@2.0.7
                                    

                                    Ich vermute mal das löst zwar mein Problem, ist aber unsauber, da unix-dgram@207 ja vermutlich besser unterhalb von winston-syslog sein sollte, oder?

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

                                      @koma666 sagte in Wir empfehlen: Node.js 22.x:

                                      da unix-dgram@207 ja vermutlich besser unterhalb von winston-syslog sein sollte, oder?

                                      Ja, richtig. Auf meinem System ist das auch so.

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        KoMa666 @KoMa666 last edited by

                                        @thomas-braun said in Wir empfehlen: Node.js 22.x:

                                        Nächstes Update ... js-controller auf 7.0.6 mittels "npm install iobroker.js-controller@7.0.6" downgegraded und der ioBroker startet auch mit nodeJS 22:

                                        iobroker.inst@3.0.0 /opt/iobroker
                                        └─┬ iobroker.js-controller@7.0.6
                                          └─┬ @iobroker/js-controller-common-db@7.0.6
                                            └─┬ winston-syslog@2.7.1
                                              └── unix-dgram@2.0.6
                                        

                                        Danach wieder upgedated mit "iob upgrade self" und "iob fix" und es sieht wieder so aus:

                                        iobroker.inst@3.0.0 /opt/iobroker
                                        └─┬ iobroker.js-controller@7.0.7
                                          └─┬ @iobroker/js-controller-common-db@7.0.7
                                            └─┬ winston-syslog@2.7.1
                                              └── unix-dgram@2.0.6
                                        

                                        Und der IOB läuft!

                                        Jetzt ist mein System auf nodeJS 22.19.0, NPM 10.9.3 und js-controller 7.0.7.

                                        Das Problem scheint also zu bestehen, wenn der js-controller schon vor dem nodeJS Update auf 7.0.7 ist. Ist er noch auf 7.0.6 und wird erst danach aktualisiert sieht alles gut aus.

                                        Auf jeden Fall vielen Dank! Deine Tips mit dem "npm ls unix-dgram" haben mich auf jeden Fall in die richtige Richtung geschubst ...

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

                                        Support us

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

                                        934
                                        Online

                                        32.1k
                                        Users

                                        80.7k
                                        Topics

                                        1.3m
                                        Posts

                                        31
                                        189
                                        17350
                                        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