Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Zigbee Adapter bleibt nach Update auf rot

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Zigbee Adapter bleibt nach Update auf rot

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

      @t0bster sagte in Zigbee Adapter bleibt nach Update auf rot:

      Node-Version:
      10.15.03
      Nodejs-Version:
      12.21.0
      NPM-Version:
      7.6.3

      Wenn das stimmt ist deine Installation verfummelt.
      Versuch das gerade zu ziehen:
      https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian/2

      npm@7 funktioniert auch noch nicht richtig zusammen mit dem ioBroker.

      T 1 Reply Last reply Reply Quote 2
      • arteck
        arteck Developer Most Active @t0bster last edited by arteck

        @t0bster sagte in Zigbee Adapter bleibt nach Update auf rot:

        /opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport

        erstmal wie @Thomas-Braun schreibt alles gerade ziehen

        dann

        rm -r /opt/iobroker/node_modules/@serialport
        rm -r /opt/iobroker/node_modules/serialport
        rm -r /opt/iobroker/node_modules/zigbee-herdsman
        rm -r /opt/iobroker/node_modules/zigbee-herdsman-converter
        

        dann adapter vom GIT installieren
        https://github.com/ioBroker/ioBroker.zigbee/wiki/GIT-install

        1 Reply Last reply Reply Quote 2
        • T
          t0bster @Thomas Braun last edited by

          @thomas-braun @arteck

          Vielen Dank euch beiden. Das hat geholfen und der Adapter funktioniert wieder, wie er soll 🙂

          D 1 Reply Last reply Reply Quote 0
          • D
            daNick @t0bster last edited by

            @t0bster @arteck @Thomas-Braun

            Ich habe diesen Thread gefunden und er hat mir viel Arbeit erspart, danke!

            Gruß daNick

            ps, Ich füge nur ein bisschen Text für Suchmaschinen hinzu, falls jemand in das gleiche Problem läuft wie ich, vielleicht findet er das hier schneller.

            iobroker - Zigbee Adapter rot / Update nodejs auf 14
            Zigbee Problem Node - NodeJs Update

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

              Darf ich mich hier auch einmal einklinken?

              Ich hatte auch auf Node 16 geupdated - jedoch läuft der Zigbee Adapter nicht (mehr).

              Habe die Verzeichnisse wie angegeben gelöscht und den Adapter über die Katze wieder installiert.

              Schaue ich mit WinSCP während der Installation in das Verzeichnis /opt/iobroker/node_modules, sehe ich, wie die Verzeichnisse wiederkommen. Nach dem das Installationsfenster geschlossen wurde, sind die Ordner jedoch wieder weg.

              Auch komisch: Auf der Konsole:

              pi@ioBroker:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
              
              

              bringt:

              npm ERR! code 1
              npm ERR! path /opt/iobroker/node_modules/@serialport/bindings
              npm ERR! command failed
              npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
              npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.16.0 runtime=node arch=arm libc= platform=linux)
              npm ERR! node:internal/modules/cjs/loader:936
              npm ERR!   throw err;
              npm ERR!   ^
              npm ERR!
              npm ERR! Error: Cannot find module 'object-assign'
              npm ERR! Require stack:
              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
              npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
              npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
              npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
              npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
              npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
              npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) {
              npm ERR!   code: 'MODULE_NOT_FOUND',
              npm ERR!   requireStack: [
              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
              npm ERR!   ]
              npm ERR! }
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/iobroker/.npm/_logs/2022-07-15T07_00_18_111Z-debug-0.log
              
              arteck Thomas Braun 2 Replies Last reply Reply Quote 0
              • arteck
                arteck Developer Most Active @SKB last edited by

                @skb welche ordner hast du gelöscht ?

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

                  @skb

                  Wie schaut die node-Umgebung da nun aus?

                  sudo ln -s /usr/bin/node /usr/bin/nodejs
                  uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                  
                  1 Reply Last reply Reply Quote 0
                  • SKB
                    SKB Developer Most Active last edited by

                    @arteck sagte in Zigbee Adapter bleibt nach Update auf rot:

                    rm -r /opt/iobroker/node_modules/@serialport
                    rm -r /opt/iobroker/node_modules/serialport
                    rm -r /opt/iobroker/node_modules/zigbee-herdsman
                    rm -r /opt/iobroker/node_modules/zigbee-herdsman-converter

                    Ich hatte diese gelöscht.

                    Die Umgebung sieht wie folgt aus:

                    pi@ioBroker:/opt/iobroker $ sudo ln -s /usr/bin/node /usr/bin/nodejs
                    ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
                    
                    pi@ioBroker:/opt/iobroker $ uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                    armv7l
                    /usr/bin/nodejs
                    /usr/bin/node
                    /usr/bin/npm
                    v16.16.0
                    v16.16.0
                    8.11.0
                    pi
                    /opt/iobroker
                    OK:1 http://archive.raspberrypi.org/debian buster InRelease
                    OK:2 https://packages.grafana.com/enterprise/deb stable InRelease
                    OK:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
                    OK:4 https://www.pivccu.de/piVCCU stable InRelease
                    OK:5 https://deb.nodesource.com/node_16.x buster InRelease
                    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.
                    nodejs:
                      Installiert:           16.16.0-deb-1nodesource1
                      Installationskandidat: 16.16.0-deb-1nodesource1
                      Versionstabelle:
                     *** 16.16.0-deb-1nodesource1 500
                            500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                            100 /var/lib/dpkg/status
                         10.24.0~dfsg-1~deb10u1 500
                            500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                    
                    arteck 1 Reply Last reply Reply Quote 0
                    • arteck
                      arteck Developer Most Active @SKB last edited by

                      @skb und dann https://github.com/ioBroker/ioBroker.zigbee/wiki/GIT-install

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

                        Dort kommt:

                        iobroker url https://github.com/ioBroker/ioBroker.zigbee --host ioBroker
                        
                        node:internal/modules/cjs/loader:936 throw err; ^Error: Cannot find module 'axios'Require stack:
                        
                        arteck 1 Reply Last reply Reply Quote 0
                        • SKB
                          SKB Developer Most Active last edited by

                          Möchte ich das Modul installieren kommt:

                          pi@ioBroker:/opt/iobroker $ sudo -H -u iobroker npm install axios
                          npm ERR! code ENOTEMPTY
                          npm ERR! syscall rename
                          npm ERR! path /opt/iobroker/node_modules/iobroker.admin/node_modules/follow-redirects
                          npm ERR! dest /opt/iobroker/node_modules/iobroker.admin/node_modules/.follow-redirects-Sy4Ytt5j
                          npm ERR! errno -39
                          npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.admin/node_modules/follow-redirects' -> '/opt/iobroker/node_modules/iobroker.admin/node_modules/.follow-redirects-Sy4Ytt5j'
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /home/iobroker/.npm/_logs/2022-07-15T07_17_02_339Z-debug-0.log
                          
                          1 Reply Last reply Reply Quote 0
                          • arteck
                            arteck Developer Most Active @SKB last edited by arteck

                            @skb da stimmt mit deiner installation was nicht

                            rm -R /opt/iobroker/node_modules/iobroker.admin/node_modules/.follow-redirects-Sy4Ytt5j
                            

                            ein npm hat nicht aufgeräumt
                            du musst alle . ordner manuell löschen

                            dann nochmal

                            sudo -H -u iobroker npm install axios
                            
                            1 Reply Last reply Reply Quote 0
                            • SKB
                              SKB Developer Most Active last edited by SKB

                              @arteck Nachdem ich nun in vielen Verzeichnissen diese Ordner gelöscht habe, kommt via Git-Cat

                              $ iobroker url https://github.com/ioBroker/ioBroker.zigbee --host ioBroker
                              install ioBroker/ioBroker.zigbee#6754927e89f94d7b395a94c3b3bbc9e9a78a2340
                              NPM version: 8.11.0
                              Installing ioBroker/ioBroker.zigbee#6754927e89f94d7b395a94c3b3bbc9e9a78a2340... (System call)
                              host.ioBroker Cannot install ioBroker/ioBroker.zigbee#6754927e89f94d7b395a94c3b3bbc9e9a78a2340: 1
                              ERROR: Process exited with code 25
                              

                              Versuche ich es via Command Prompt:

                              pi@ioBroker:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.zigbee
                              npm ERR! code 1
                              npm ERR! path /opt/iobroker/node_modules/@serialport/bindings
                              npm ERR! command failed
                              npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
                              npm ERR! prebuild-install warn install No prebuilt binaries found (target=16.16.0 runtime=node arch=arm libc= platform=linux)
                              npm ERR! node:internal/modules/cjs/loader:936
                              npm ERR!   throw err;
                              npm ERR!   ^
                              npm ERR!
                              npm ERR! Error: Cannot find module 'object-assign'
                              npm ERR! Require stack:
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                              npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                              npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
                              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
                              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
                              npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                              npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                              npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
                              npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
                              npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
                              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
                              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) {
                              npm ERR!   code: 'MODULE_NOT_FOUND',
                              npm ERR!   requireStack: [
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                              npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                              npm ERR!   ]
                              npm ERR! }
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/iobroker/.npm/_logs/2022-07-15T07_30_08_521Z-debug-0.log
                              

                              Läuft aber durch:

                              pi@ioBroker:/opt/iobroker $ sudo -H -u iobroker npm install object-assign
                              
                              changed 1 package in 9s
                              
                              61 packages are looking for funding
                                run `npm fund` for details
                              
                              arteck 1 Reply Last reply Reply Quote 0
                              • arteck
                                arteck Developer Most Active @SKB last edited by

                                @skb

                                machmal

                                iobroker url https://github.com/ioBroker/ioBroker.zigbee --host ioBroker --debug
                                
                                SKB 1 Reply Last reply Reply Quote 0
                                • SKB
                                  SKB Developer Most Active @arteck last edited by SKB

                                  @arteck

                                  Das System stört sich an "object-assign".

                                  pi@ioBroker:/opt/iobroker $ iobroker url https://github.com/ioBroker/ioBroker.zigbee --host ioBroker --debug
                                  
                                  install ioBroker/ioBroker.zigbee#6754927e89f94d7b395a94c3b3bbc9e9a78a2340
                                  NPM version: 8.11.0
                                  Installing ioBroker/ioBroker.zigbee#6754927e89f94d7b395a94c3b3bbc9e9a78a2340... (System call)
                                  npm WARN skipping integrity check for git dependency ssh://git@github.com/ioBroker/ioBroker.zigbee.git
                                  npm ERR! code 1
                                  npm ERR! path /opt/iobroker/node_modules/@serialport/bindings
                                  npm ERR! command failed
                                  npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
                                  npm ERR! prebuild-install warn install No prebuilt binaries found (target=16.16.0 runtime=node arch=arm libc= platform=linux)
                                  npm ERR! node:internal/modules/cjs/loader:936
                                  npm ERR!   throw err;
                                  npm ERR!   ^
                                  npm ERR!
                                  npm ERR! Error: Cannot find module 'object-assign'
                                  npm ERR! Require stack:
                                  npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                                  npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                                  npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                                  npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                                  npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                                  npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                                  npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
                                  npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
                                  npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
                                  npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                                  npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                                  npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
                                  npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
                                  npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
                                  npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
                                  npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) {
                                  npm ERR!   code: 'MODULE_NOT_FOUND',
                                  npm ERR!   requireStack: [
                                  npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                                  npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                                  npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                                  npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                                  npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                                  npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                                  npm ERR!   ]
                                  npm ERR! }
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /home/iobroker/.npm/_logs/2022-07-15T07_46_19_129Z-debug-0.log
                                  host.ioBroker Cannot install ioBroker/ioBroker.zigbee#6754927e89f94d7b395a94c3b3bbc9e9a78a2340: 1
                                  

                                  Obwohl der Ordner unter /opt/iobroker/node_modules/ vorhanden ist:

                                  2022-07-15 09_50_42-node_modules - Pi - WinSCP.png

                                  arteck 1 Reply Last reply Reply Quote 0
                                  • arteck
                                    arteck Developer Most Active @SKB last edited by

                                    @skb

                                    iob fix
                                    

                                    mal laufen lassen

                                    SKB 1 Reply Last reply Reply Quote 0
                                    • SKB
                                      SKB Developer Most Active @arteck last edited by

                                      @arteck Gerade mal geschaut. Im iob Verzeichnis ist es da.

                                      Im NPM Verzeichnis aber nicht:
                                      2022-07-15 09_55_38-object-assign - Pi - WinSCP.png

                                      Eine Idee, wie man es dort verfügbar macht? Vielleicht liegt hier das Problem?

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

                                        @skb

                                        Keine Ahnung wer oder was das Modul dort sucht, aber in meinem System ist es dort auch nicht:

                                        echad@chet:~ $ locate object-assign
                                        /opt/iobroker/node_modules/appium-logger/node_modules/core-js/library/modules/$.object-assign.js
                                        /opt/iobroker/node_modules/appium-logger/node_modules/core-js/modules/$.object-assign.js
                                        /opt/iobroker/node_modules/core-js/library/modules/_object-assign.js
                                        /opt/iobroker/node_modules/core-js/modules/_object-assign.js
                                        /opt/iobroker/node_modules/object-assign
                                        /opt/iobroker/node_modules/object-assign/index.js
                                        /opt/iobroker/node_modules/object-assign/license
                                        /opt/iobroker/node_modules/object-assign/package.json
                                        /opt/iobroker/node_modules/object-assign/readme.md
                                        echad@chet:~ $
                                        
                                        SKB 1 Reply Last reply Reply Quote 0
                                        • SKB
                                          SKB Developer Most Active @Thomas Braun last edited by

                                          @thomas-braun Das ist schonma gut 🙂

                                          Wie könnte ich nun weitermachen?

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

                                            Habe jetzt das Module object-assign nochmal installiert, jedoch kommt beim nächsten Versuch, Zigbee via Git zu installieren erneut der Fehler, dass das Modul nicht gefunden wurde.

                                            Aktuell bin ich etwas ratlos ...

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            430
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            51
                                            2641
                                            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