Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Error i2c adapter after upgrade of node.js version 22

    NEWS

    • Monatsrückblick – September 2025

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

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

    Error i2c adapter after upgrade of node.js version 22

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

      @hschief

      Warum nicht mit dem Befehl von mir?

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

        @thomas-braun Hi, der node-gyp rebuild war doch von Dir. Ich habe nur das "add i2c" nicht gemacht, da der Adapter ja schon da ist. Somit hatte ich die Hoffnung das dies reicht.

        Ich habe gerade eben den Fehler auch mal einfach ChatGPT vorgeworfen und da kam eine recht interessante Antwort zurück:

        Die SetAccessor-Funktion in v8 hat sich mit Node.js 22 stark geändert.
        nan versucht, einen alten Funktionsaufruf zu verwenden, der in Node 22 nicht mehr kompatibel ist.
        Konkret: v8::ObjectTemplate::SetAccessor akzeptiert jetzt kein v8::AccessControl mehr; nur noch PropertyAttribute und SideEffectType.

        Ich bin daher verblüft, dass dies bei Dir unter Node22 läuft. Ich suche morgen mal weiter .... Danke für deine Hilfe, hab ein tollen Abend

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

          @hschief

          node-gyp rebuild war doch von Dir.

          Das wüsste ich aber...

          iob upgrade iobroker.i2c@AKTUELLE_VERSION
          

          war von mir

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

            @thomas-braun Schau dir mal den 2ten Eintrag in dem Thread an. Da hattest du folgendes

            iobroker add i2c auto --host chet --debug
            
            NPM version: 11.6.0Installing iobroker.i2c@1.2.1... (System call)
            
            > node-gyp rebuild
            

            Aber ist eigentlich auch egal, ich habe den Adapter vor dem node-gyp rebuild mit deinem Befehl installiert:

            iob upgrade iobroker.i2c@1.2.1
            

            Hat aber nicht funktioniert. Ich finde es eher interessanter, dass dies bei Dir funktioniert. Ich mache auf jeden Fall mal ein Issue im GitHub für den Adapter auf, ich glaube zwar nicht, dass da was passiert, der ist ja schon länger nicht mehr gepflegt worden. Ich suche weiter.

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

              @hschief

              Jaaaaaaaaaa, das ist aber die Konsolenausgabe von der Eingabe auf meinem System.
              Das ist kein Kommando, das du verwendest.

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

                @hschief sagte in Error i2c adapter after upgrade of node.js version 22:

                Hat aber nicht funktioniert.

                Meldungen?

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

                  @thomas-braun Ich führe den nochmals aus und kann das gerne hier posten, was aber der normal install output, mittlerweile gibt es dazu aber im Github auch ein offenen Issue von 2 weiteren Usern die den gleichen Fehler haben.
                  Ich bleib dran, Danke für deine Rückmeldung.

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

                    @hschief

                    Du meinst den:

                    https://github.com/UncleSamSwiss/ioBroker.i2c/issues/840

                    Der eine hantiert da (warum auch immer, wird nirgendwo empfohlen...) mit n herum. Wer weiß was dabei herumkommt.
                    Der iobroker verwendet auf Debian-basierten Systemen immer die von nodesource gepackte Version.

                    MarkSau created this issue in UncleSamSwiss/ioBroker.i2c

                    open Nach Node Update auf 22 startet I2C nicht mehr. Neuinstallation des Adapters schlägt fehl #840

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

                      @thomas-braun sagte in Error i2c adapter after upgrade of node.js version 22:

                      Du meinst den:

                      ist der überhaupt noch aktiv?
                      last changes >4 Jahre

                      @mcm1957 ?

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

                        Hier wird der Adapter inkl. aller Deps sauber gebaut:

                        $ iobroker add i2c auto --host chet --debug
                        
                        NPM version: 11.6.0
                        
                        Installing iobroker.i2c@1.2.1... (System call)
                        
                        > i2c-bus@5.2.3 install> node-gyp rebuild
                        
                        gyp info it worked if it ends with okgyp info using node-gyp@11.2.0
                        
                        gyp info using node@24.9.0 | linux | arm64
                        
                        gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
                        
                        gyp info spawn /usr/bin/python3
                        
                        gyp info spawn args [gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',gyp info spawn args 'binding.gyp',gyp info spawn args '-f',gyp info spawn args 'make',gyp info spawn args '-I',gyp info spawn args '/opt/iobroker/node_modules/i2c-bus/build/config.gypi',gyp info spawn args '-I',
                        
                        gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',gyp info spawn args '-I',gyp info spawn args '/home/iobroker/.cache/node-gyp/24.9.0/include/node/common.gypi',gyp info spawn args '-Dlibrary=shared_library',gyp info spawn args '-Dvisibility=default',gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/24.9.0',gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/24.9.0/<(target_arch)/node.lib',gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/i2c-bus',gyp info spawn args '-Dnode_engine=v8',gyp info spawn args '--depth=.',gyp info spawn args '--no-parallel',gyp info spawn args '--generator-output',gyp info spawn args 'build',gyp info spawn args '-Goutput_dir=.'gyp info spawn args ]
                        
                        gyp info spawn makegyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                        
                        make: Entering directory '/opt/iobroker/node_modules/i2c-bus/build'
                        
                        CXX(target) Release/obj.target/i2c/src/i2c.o
                        
                        SOLINK_MODULE(target) Release/obj.target/i2c.node
                        
                        COPY Release/i2c.node
                        
                        make: Leaving directory '/opt/iobroker/node_modules/i2c-bus/build'
                        
                        gyp info ok
                        
                        added 14 packages in 25s
                        
                        245 packages are looking for funding run `npm fund` for details
                        
                        host.chet install adapter i2c
                        
                        upload [4] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.css build/index.css text/css
                        
                        upload [3] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.js build/index.js application/javascript
                        
                        upload [2] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/i2c.png i2c.png image/png
                        
                        upload [1] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/index_m.html index_m.html text/html
                        
                        upload [0] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/style.css style.css text/css
                        
                        host.chet object system.adapter.i2c created/updated
                        
                        Updating objects from io-package.json for adapter "i2c" with version "1.2.1"
                        
                        host.chet create instance i2c
                        
                        host.chet object system.adapter.i2c.0.alive created
                        
                        host.chet object system.adapter.i2c.0.connected created
                        
                        host.chet object system.adapter.i2c.0.compactMode created
                        
                        host.chet object system.adapter.i2c.0.cpu created
                        
                        host.chet object system.adapter.i2c.0.cputime created
                        
                        host.chet object system.adapter.i2c.0.memHeapUsed created
                        
                        host.chet object system.adapter.i2c.0.memHeapTotal created
                        
                        host.chet object system.adapter.i2c.0.memRss created
                        
                        host.chet object system.adapter.i2c.0.uptime created
                        
                        host.chet object system.adapter.i2c.0.inputCount created
                        
                        host.chet object system.adapter.i2c.0.outputCount created
                        
                        host.chet object system.adapter.i2c.0.eventLoopLag created
                        
                        host.chet object system.adapter.i2c.0.sigKill created
                        
                        host.chet object system.adapter.i2c.0.logLevel created
                        
                        host.chet object system.adapter.i2c.0 created
                        
                        Process exited with code 0
                        
                        1 Reply Last reply Reply Quote 0
                        • mcm1957
                          mcm1957 @Homoran last edited by mcm1957

                          @homoran said in Error i2c adapter after upgrade of node.js version 22:

                          @thomas-braun sagte in Error i2c adapter after upgrade of node.js version 22:

                          Du meinst den:

                          ist der überhaupt noch aktiv?
                          last changes >4 Jahre

                          @mcm1957 ?

                          EDIT:
                          Kommentar grundlegend geändert da eine Stellungname des Devs bereits existiert:

                          Siehe Info von @UncleSam hier:
                          https://github.com/UncleSamSwiss/ioBroker.i2c/issues/841#issuecomment-3288275774

                          MarkSau created this issue in UncleSamSwiss/ioBroker.i2c

                          closed Is this adapter dead? #841

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

                            Ich hab jetzt extra auch nochmal einen rebuild bedingt durch einen Wechsel von nodejs ausgelöst:

                            2025-10-06 12:10:24.232  - error: host.chet Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/i2c-bus/build/Release/i2c.node'
                            2025-10-06 12:10:24.233  - error: host.chet Caught by controller[0]: was compiled against a different Node.js version using
                            2025-10-06 12:10:24.234  - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 137. This version of Node.js requires
                            2025-10-06 12:10:24.235  - error: host.chet Caught by controller[0]: NODE_MODULE_VERSION 127. Please try re-compiling or re-installing
                            2025-10-06 12:10:24.235  - error: host.chet Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`).
                            2025-10-06 12:10:24.236  - error: host.chet Caught by controller[0]:     at Object..node (node:internal/modules/cjs/loader:1865:18)
                            2025-10-06 12:10:24.238  - error: host.chet Caught by controller[0]:     at Module.load (node:internal/modules/cjs/loader:1441:32)
                            2025-10-06 12:10:24.239  - error: host.chet Caught by controller[0]:     at Function._load (node:internal/modules/cjs/loader:1263:12)
                            2025-10-06 12:10:24.239  - error: host.chet Caught by controller[0]:     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
                            2025-10-06 12:10:24.240  - error: host.chet Caught by controller[0]:     at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
                            2025-10-06 12:10:24.240  - error: host.chet Caught by controller[0]:     at Module.require (node:internal/modules/cjs/loader:1463:12)
                            2025-10-06 12:10:24.241  - error: host.chet Caught by controller[0]:     at require (node:internal/modules/helpers:147:16)
                            2025-10-06 12:10:24.241  - error: host.chet Caught by controller[0]:     at bindings (/opt/iobroker/node_modules/bindings/bindings.js:112:48)
                            2025-10-06 12:10:24.242  - error: host.chet Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/i2c-bus/i2c-bus.js:4:32)
                            2025-10-06 12:10:24.242  - error: host.chet Caught by controller[0]:     at Module._compile (node:internal/modules/cjs/loader:1706:14) {
                            2025-10-06 12:10:24.243  - error: host.chet Caught by controller[0]:   code: 'ERR_DLOPEN_FAILED'
                            2025-10-06 12:10:24.244  - error: host.chet Caught by controller[0]: }
                            2025-10-06 12:10:24.244  - error: host.chet Caught by controller[0]: Node.js v22.20.0
                            2025-10-06 12:10:24.244  - error: host.chet instance system.adapter.i2c.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                            2025-10-06 12:10:24.246  - warn: host.chet adapter "i2c" seems to be installed for a different version of Node.js. Trying to rebuild it... 1 attempt
                            2025-10-06 12:10:26.700  - info: ws.0 (286400) starting. Version 3.0.19 in /opt/iobroker/node_modules/iobroker.ws, node: v22.20.0, js-controller: 7.0.7
                            2025-10-06 12:10:26.790  - info: ws.0 (286400) socket.io server listening on port 8084
                            2025-10-06 12:10:38.213  - info: weather-warnings.0 (286381) Refresh Interval: 15 minutes
                            2025-10-06 12:10:38.285  - info: weather-warnings.0 (286381) [whatsapp] Create notification service whatsapp adapter: whatsapp-cmb.0.
                            2025-10-06 12:10:38.361  - info: weather-warnings.0 (286381) [alexa2] Create notification service alexa2 state: alexa2.0.Echo-Devices.f11bc24f45914615a92ba00dcb
                                                   4ba9d5.Commands.speak.
                            2025-10-06 12:10:38.367  - info: weather-warnings.0 (286381) UWZ activated. Retrieve data.
                            2025-10-06 12:10:40.351  - info: tankerkoenig.0 (286299) Start first request
                            2025-10-06 12:11:12.820  - warn: host.chet instance system.adapter.parcel.0 terminated due to SIGSEGV
                            2025-10-06 12:11:53.176  - error: parcel.0 (287134) Error: getaddrinfo ENOTFOUND www.dpd.com
                            2025-10-06 12:12:00.463  - info: i2c.0 (287178) starting. Version 1.2.1 in /opt/iobroker/node_modules/iobroker.i2c, node: v22.20.0, js-controller: 7.0.7
                            2025-10-06 12:12:00.575  - info: i2c.0 (287178) Using bus number: 1
                            

                            Läuft

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

                            Support us

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

                            511
                            Online

                            32.2k
                            Users

                            80.9k
                            Topics

                            1.3m
                            Posts

                            4
                            30
                            354
                            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