Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [How-to] Node.js für ioBroker richtig updaten

    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

    [How-to] Node.js für ioBroker richtig updaten

    This topic has been deleted. Only users with topic management privileges can see it.
    • Stabilostick
      Stabilostick @zgadgeter last edited by Stabilostick

      @zgadgeter
      Woher soll er bei der neu installierten Adapterinstanz, die nicht konfiguriert ist, eine Geräteliste bekommen?

      Vielleicht musst Du alles neu pairen? Richtiger USB-Port? Irgendwelche zigbee-Fehler im Log?

      Z 1 Reply Last reply Reply Quote 1
      • Z
        zgadgeter @Stabilostick last edited by

        @Stabilostick
        Wie gesagt, sobald ich den Adapter auf mache bekomme ich den Hinweise das ich den Adapter speichern und laufen lassen muss. Wie in dem Bild oben.
        Ein Fehler im Log ist folgender:

        Error while starting zigbee-shepherd!. Error: Error: No such file or directory, cannot open /dev/ttyACM0
        

        Ist ja ziemlich eindeutig. Ich habe dann nach USB ports gesucht mit:

        ls -la /dev/serial/by-id/
        

        Dabei bekomme ich:

        ls: cannot access '/dev/serial/by-id/': No such file or directory
        
        

        Und nach pruefen fehlt tatsaechlich das "serial" Verzeichnis. Also gehe ich davon aus das irgendwie oder irgendwas dieses Geloescht hat....Egal, wie bekomme ich das zurueck so das Iobroker mein USB port und somit den Zigbee finden kann?

        Stabilostick 1 Reply Last reply Reply Quote 0
        • Stabilostick
          Stabilostick @zgadgeter last edited by Stabilostick

          @zgadgeter
          Dann wird wohl der zigbee-Stick von Deinem OS nicht richtig erkannt. Das hat aber weniger mit dem Node.js-Update zu tun. Welche HW? Welches Os? Was sagt der Befehl „lsusb“? Neuer Thread?

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zgadgeter @Stabilostick last edited by

            @Stabilostick
            Der Rechner ist ein Nuc. OS is unten.
            Frage ist, kann ich das serial Verzeichnis von einem anderem Iobroker nehmen wo ich genau den selben stick nochmals habe, und der auch funktioniert? Da habe ich nach gesehen und habe den stick gefunden im serial Verzeichnis.

            Linux ubuntu_iobroker 4.18.0-25-generic #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
            
            

            lsusb

            Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
            Bus 001 Device 008: ID 8087:0a2a Intel Corp.
            Bus 001 Device 007: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
            Bus 001 Device 006: ID 0a5c:2198 Broadcom Corp. Bluetooth 3.0 Device
            Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
            
            
            Stabilostick 1 Reply Last reply Reply Quote 0
            • Stabilostick
              Stabilostick @zgadgeter last edited by Stabilostick

              @zgadgeter sagte in [How-to] Node.js für ioBroker richtig updaten:

              anderem Iobroker nehmen

              Master-Slave iobroker-Installation.

              Oder stecke den Stick in andere USB-Ports und schaue mit lsusb nach.

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zgadgeter @Stabilostick last edited by

                @Stabilostick said in [How-to] Node.js für ioBroker richtig updaten:

                @zgadgeter sagte in [How-to] Node.js für ioBroker richtig updaten:

                anderem Iobroker nehmen

                Master-Slave iobroker-Installation.

                Oder stecke den Stick in andere USB-Ports und schaue mit lsusb nach.

                Nee, kann ich nicht...bin zur Zeit 200 km weg, login via VPN...
                Was ist mit dem Verzeichnis kopieren? Aber, in dem Verzeichnis "serial/byid" ist ein komisches file:

                ioBroker-Pi:/dev/serial/by-id $ ls -l
                insgesamt 0
                lrwxrwxrwx 1 root root 13 Jul  8 22:17 usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018E208A1-if00 -> ../../ttyACM0
                

                Laesst sich nicht kopieren?

                Stabilostick 1 Reply Last reply Reply Quote 0
                • Stabilostick
                  Stabilostick @zgadgeter last edited by

                  @zgadgeter
                  Das ist der zigbee-Stick. Und er wird nach /dev/ttyACM0 umgeleitet (siehe Ende der Zeile).

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zgadgeter @Stabilostick last edited by

                    @Stabilostick said in [How-to] Node.js für ioBroker richtig updaten:

                    @zgadgeter
                    Das ist der zigbee-Stick. Und er wird nach /dev/ttyACM0 umgeleitet (siehe Ende der Zeile).

                    ok, aber wie bekomme ich das ganze auf den anderen iobroker einfach kopiert?

                    Stabilostick 1 Reply Last reply Reply Quote 0
                    • Stabilostick
                      Stabilostick @zgadgeter last edited by Stabilostick

                      @zgadgeter
                      Du installierst auf den pi einen iobroker und machst ihn zum Slave deines NUC-ioBrokers. Stichwort „Multihost“.

                      Dann installiert du über den Admin des Masters auf dem Slave den zigbee-Adapter.

                      https://www.iobroker.net/#de/documentation/config/multihost.md

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zgadgeter @Stabilostick last edited by

                        @Stabilostick
                        Danke fuer die Hilfe, bin mir aber nicht sicher ob wir an einander vorbei reden:
                        NUC: das ist der Iobroker wo der Zigbee nicht mehr funktioniert nach dem update
                        Pi: das ist der zweite iobroker wo der zigbee (ein zweiter stick) funktioniert.
                        Ich dachte mir ich koennte das serial Verzeichnis einfach von dem Pi iobroker rubber kopieren zu dem Nuc iobroker, so das der erro (not found) nicht mehr da waere?

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

                          Nein. Alles unter /dev wird vom Betriebssystem verwaltet! Wenn der usb Stick da nicht drin ist dann stimmt was nicht. Reboot kann helfen. Ggf musst du aber auch mal Stromlos machen bzw den Stick raus und rein. Natürlich per VPN blöd.

                          Das hat aber mit dem fix Skript oder dem Adapter nix zu tun.

                          Z 1 Reply Last reply Reply Quote 0
                          • Z
                            zgadgeter @apollon77 last edited by

                            @apollon77 Hallo und danke. Versteh, danke fuer die Erklaerung...waere auch zu einfach gewesen :).
                            Ich probiere mal das jemand zuhause ein restart macht, bzw. den Stick mal raus nimmt.
                            Wenn das alles aber nicht funktioniert....gibt es da noch weitere Moeglichkeiten?
                            danke nochmals.

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

                              @zgadgeter da wird der port nicht weitergereicht wie ich es erkennen kann..
                              bzw. der iobroker user darf auf den port nicht zugreifen

                              wie währe es mit einem neuen Thread.. das hat nix mit dem Update von node zu tun

                              Z 1 Reply Last reply Reply Quote 0
                              • Z
                                zgadgeter @arteck last edited by

                                @arteck said in [How-to] Node.js für ioBroker richtig updaten:

                                @zgadgeter da wird der port nicht weitergereicht wie ich es erkennen kann..
                                bzw. der iobroker user darf auf den port nicht zugreifen

                                wie währe es mit einem neuen Thread.. das hat nix mit dem Update von node zu tun

                                Naja, das ganze ist ja passiert direkt bei dem Update von node passiert. Ob es das Resultat von dem update war kann ich nicht sagen....nur Zufall?
                                Egal, ich mache ein neues Thread auf.

                                FYI, zigbee raus/rein stecken auch nichts gebracht.

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

                                  Hallo Gemeinde, kann mir einer sagen, wie ich diese Fehlermeldungen bei Adapter aktualisierungen reduzieren kann..System läuft unauffälig. Die Fehlerliste betrifft alle npm Installationen / Adapterupdates...

                                  $ ./iobroker upgrade hm-rega
                                  Update hm-rega from @2.4.0 to @2.4.1
                                  NPM version: 6.9.0
                                  npm install iobroker.hm-rega@2.4.1 --production --save --prefix "/opt/iobroker" (System call)
                                  In file included from ../node_modules/nan/nan.h:82:0,                 from ../src/bufferutil.cc:16:
                                  ../node_modules/nan/nan_new.h: In function ‘v8::Local<T> NanIntern::To(v8::Handle<v8::Integer>) [with T = v8::Integer; v8::Handle<v8::Integer> = v8::Local<v8::Integer>]’:
                                  ../node_modules/nan/nan_new.h:29:66: warning: ‘v8::Local<v8::Integer> v8::Value::ToInteger() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                   To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
                                                                                                    ^
                                  
                                  In file included from ../src/validation.cc:7:0:/home/iobroker/.node-gyp/10.16.0/include/node/v8.h:10046:15: note: declared here
                                   Local<Object> Value::ToObject() const {
                                                 ^~~~~
                                  
                                  make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
                                  gyp
                                   
                                  ERR!
                                   build error 
                                  gyp
                                   ERR! 
                                  stack
                                   Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
                                  gyp 
                                  ERR! stack     at ChildProcess.emit (events.js:198:13)gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                  
                                  gyp ERR! System Linux 4.4.182-rockchip64
                                  gyp
                                   ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                  gyp ERR! cwd /opt/iobroker/node_modules/utf-8-validategyp 
                                  ERR! node -v v10.16.0gyp ERR! 
                                  node-gyp -v v3.8.0gyp
                                   ERR! not ok 
                                  npm
                                   
                                  WARN
                                   babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
                                  npm
                                   
                                  WARN
                                   xmlhttprequest-ts@1.0.1 requires a peer of @angular/common@>= 5.0.0 but none is installed. You must install peer dependencies yourself.
                                  npm 
                                  WARN xmlhttprequest-ts@1.0.1 requires a peer of @angular/core@>= 5.0.0 but none is installed. You must install peer dependencies yourself.
                                  npm WARN optional
                                   SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
                                  
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
                                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                                  
                                  
                                  npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.hm-rega"
                                  npm
                                   
                                  notice
                                   created a lockfile as package-lock.json. You should commit this file.
                                  got /opt/iobroker/node_modules/iobroker.hm-rega/admin
                                  upload [3] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/words.js words.js application/javascript
                                  Update "system.adapter.hm-rega.0"
                                  upload [2] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/index_m.html index_m.html text/html
                                  upload [1] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/index.html index.html text/html
                                  upload [0] hm-rega.admin /opt/iobroker/node_modules/iobroker.hm-rega/admin/homematic.png homematic.png image/png
                                  Adapter "hm-rega" updated
                                  process exited with code 0
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • marcuskl
                                    marcuskl last edited by

                                    Beimir klappt alles nur wen ich node -v eingebe kommt immernoch Node js 8.x ?

                                    root@iobroker:~# node -v
                                    v8.16.0
                                    root@iobroker:~# nodejs -v
                                    v10.16.0
                                    root@iobroker:~#
                                    
                                    
                                    Homoran 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @marcuskl last edited by Homoran

                                      @marcuskl sagte in [How-to] Node.js für ioBroker richtig updaten:

                                      Beimir klappt alles nur wen ich node -v eingebe kommt immernoch Node js 8.x ?

                                      Dann hast du -warum auch immer (einmal einen Befehl im falschen Verzeichnis ausgeführt...)- zwei node installationen parallel laufen.

                                      Das wird zu Problemen führen

                                      marcuskl 1 Reply Last reply Reply Quote 0
                                      • marcuskl
                                        marcuskl @Homoran last edited by

                                        @Homoran was mache ich nun ?

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • marcuskl
                                          marcuskl last edited by

                                          Ich habe damal die node 6 mit dem Befehl

                                          Sudo n 8.12.0
                                          

                                          geupdatet.

                                          Liegt da der Fehler ?

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

                                            @marcuskl sagte in [How-to] Node.js für ioBroker richtig updaten:

                                            was mache ich nun ?

                                            Dazu bin ich nicht fit genug.

                                            @paul53 hatte bereits mehrfach das procedere zum Auffinden der Versionen und Entfernen der falschen hier im Forum gepostet.

                                            Da musst du mal suchen

                                            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

                                            945
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            installation linux node node.js nodejs windows
                                            106
                                            1105
                                            678781
                                            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