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.
    • MathiasJ
      MathiasJ @smartboart last edited by

      @smartboart
      Ich habe mich erst mal nur die states angeschaut.
      Die Tests folgen dann am Wochenende.
      Ich muß sowieso nur mit Relais arbeiten, weil der Slave als Bewässerung draußen am Balkon arbeiten soll.
      Gruß,
      Mathias

      1 Reply Last reply Reply Quote 0
      • B
        bommel_030 last edited by

        Ich habe nach der Anleitung hier aktualisiert und habe folgenden Fehler bekommen:

        /home/bommel/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
           declarator __attribute__((deprecated(message)))
           ^~~~~~~~~~
        ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
        ../src/epoll.cc:247:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
           int err = epoll->Remove(info[0]->Int32Value());
                                                       ^
        In file included from /home/bommel/.node-gyp/10.16.0/include/node/v8.h:26:0,
                         from ../src/epoll.cc:11:
        /home/bommel/.node-gyp/10.16.0/include/node/v8.h:2478:46: note: declared here
           V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                      ^
        /home/bommel/.node-gyp/10.16.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
           declarator __attribute__((deprecated(message)))
           ^~~~~~~~~~
        epoll.target.mk:101: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
        make: *** [Release/obj.target/epoll/src/epoll.o] Error 1
        make: Leaving directory '/opt/iobroker/node_modules/epoll/build'
        gyp ERR! build error
        gyp ERR! stack Error: `make` failed with exit code: 2
        gyp 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.174-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/epoll
        gyp ERR! node -v v10.16.0
        gyp ERR! node-gyp -v v3.8.0
        gyp ERR! not ok
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! epoll@0.1.22 install: `node-gyp rebuild`
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the epoll@0.1.22 install script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        bommel@rock64:/opt/iobroker$
        

        Mehr konnte ich von dem Log nicht retten. Leider oder vielleicht zum Glück gab es kurz danach einen längeren Stromausfall. Danach ist der ioBroker normal hochgefahren und läuft bis jetzt ohne Fehler.
        Vielleicht hat einer der Fachleute ja nen Tip ob man das weiter untersuchen sollte oder einfach laufen lassen kann.

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

          @bommel_030 Kann es sein das epoll eine Abhängigkeit vom rpi2 Adapter ist? Wenn ja muss der eine Aktualisierung bekommen.

          B crunchip 2 Replies Last reply Reply Quote 0
          • B
            bommel_030 @apollon77 last edited by

            @apollon77
            Gute Frage... Der ist zwar noch installiert aber nicht mehr aktiv weil iobroker mittlerweile auf nem rock64 werkelt. Wenn ich den starte wird er so oder so meckern.
            Werde ihn Mal deinstallieren. Soll ich npm rebuild dann nochmal durchlaufen lassen? Wenn er ohne Fehler abschließt müsste es ja an dem Adapter gelegen haben.

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

              @apollon77 ja

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

                @bommel_030 versuch mal ... uninstall und dann neu rebuild

                B 1 Reply Last reply Reply Quote 0
                • B
                  bommel_030 @apollon77 last edited by

                  @apollon77
                  rpi2 deinstalliert rebuild nochmal angestossen, jetzt kommt das...


                  lib/install.js is not being run as part of an installation - skipping...

                  @serialport/bindings@2.0.8 install /opt/iobroker/node_modules/iobroker.discovery/node_modules/@serialport/bindings
                  prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

                  prebuild-install WARN install No prebuilt binaries found (target=10.16.0 runtime=node arch=arm64 libc= platform=linux)
                  gyp ERR! clean error
                  gyp ERR! stack Error: EACCES: permission denied, unlink 'build/Makefile'
                  gyp ERR! System Linux 4.4.180-rockchip64
                  gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                  gyp ERR! cwd /opt/iobroker/node_modules/iobroker.discovery/node_modules/@serialport/bindings
                  gyp ERR! node -v v10.16.0
                  gyp ERR! node-gyp -v v3.8.0
                  gyp ERR! not ok
                  npm ERR! code ELIFECYCLE
                  npm ERR! errno 1
                  npm ERR! @serialport/bindings@2.0.8 install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
                  npm ERR! Exit status 1
                  npm ERR!
                  npm ERR! Failed at the @serialport/bindings@2.0.8 install script.
                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                  iobroker läuft weiterhin unauffällig. Langsam beschleicht mich das Gefühl ich sollte den rock mal mit debian statt ubuntu neu aufsetzen...

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

                    Hast du alle Adapter aktuell die drauf sind?

                    B 1 Reply Last reply Reply Quote 0
                    • MathiasJ
                      MathiasJ @smartboart last edited by

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

                      @MathiasJ hi, danke für deine Überprüfung... wie hast du das denn getestet? Hängen da Taster oder Relais dranne und werden die weiterhin angesteuert und eingelesen. oder hast du dir nur die states angeschaut ob sie angelegt werden? Das alleine sagt nämlich nichts aus...

                      Hast recht!
                      Sorry, bin jetzt erst dazu gekommen.
                      States werden angelegt, aber das Relais schaltet nicht.
                      ich habe es zuerst nur mit einem Relais getestet. Später sollte eine 8-Kanal Relaiskarte dran, Wenn's aber net funktioniert, kann ich mir den Rest auch sparen.

                      smartboart 1 Reply Last reply Reply Quote 0
                      • B
                        bommel_030 @apollon77 last edited by

                        @apollon77 Ja, alle installierten Adapter aktuell.

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

                          Dann lass den Installation Fixer mal laufen. Irgendwas ist mit permission nicht ok.

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

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

                            Hast recht!
                            Sorry, bin jetzt erst dazu gekommen.
                            States werden angelegt, aber das Relais schaltet nicht.
                            ich habe es zuerst nur mit einem Relais getestet. Später sollte eine 8-Kanal Relaiskarte dran, Wenn's aber net funktioniert, kann ich mir den Rest auch sparen.

                            Ja das hab ich mir fast gedacht...Mit der älteren node und npm funktioniert es bei mir ja auch... Lese die Spannungsüberwachung und Klingel sowie ein paar Sammelstörungen darüber ein. Deshalb bleibe ich vorerst mit meinem Slave auf der alten Version... Aber eine Lösung wäre schon toll. Irgendwann muss ich mal updaten.. Keiner von den Profis ne Idee was dem rpi Adapter fehlt?

                            MathiasJ 1 Reply Last reply Reply Quote 0
                            • S
                              schweiger2 last edited by

                              Hallo zusammen,

                              ich bin Neuling und erhalte beim Update folgende Fehlermeldungen.

                              Was muss ich nun tun ?

                              98b72313-3b44-4b44-9c42-a0cfe2a08a91-image.png

                              Vielen Dank für Hilfe.

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

                                @schweiger2
                                Habe ich auch. beim troubleshooting bin ich darüber gestolpert...Arbeite gerade auch daran...
                                https://codeforgeek.com/make-failed-with-exit-code-2/

                                ob das die Lösung ist kann ich aber nicht sagen.. Eventuell hat einer ne bessere Idee.

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

                                  @smartboart
                                  Dann werde ich IObroker wohl nochmal aufsetzen müssen. Ist ja bei mir auch nur der Slave.
                                  Welche Node-v hast Du?
                                  Reicht es wenn ich zur 8.x zurück gehe?
                                  Gruß,
                                  Mathias

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

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

                                    Reicht es wenn ich zur 8.x zurück gehe?

                                    ja habe diese Version...siehe Foto
                                    slave.PNG

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

                                      @smartboart
                                      Nein, das troubleshooting wird nicht weiter helfen. Meine Installation lief fehlerlos also ohne errors und Warnungen durch.....

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

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

                                        Nein, das troubleshooting wird nicht weiter helfen. Meine Installation lief fehlerlos also ohne errors und Warnungen durch.....

                                        sorry das troubleshooting ging an schweiger 2 ..hat mit dem rpi nix zu tun
                                        Bekomme die selben Meldungen wie Schweiger2 beim deinstallieren eines alten Adapter noch von vor dem Update und der backupwiderherstellung.. hierbei geht es um mein master system Rock64 EMMC 64Gb / Pine 64 System diese läuft mit aktueller node und npm Version
                                        master.PNG

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

                                          Ok, gaaaaaaanz langsam!!

                                          Der rpi2 Adapter kann wohl (noch) nur bis nodejs 8 laufen. 😞 Grund https://github.com/iobroker-community-adapters/ioBroker.rpi2/issues/2 ...

                                          Eure Lösung: https://forum.iobroker.net/topic/23533/aufruf-rpi2-adapter-für-nodejs-10

                                          Apollon77 created this issue in iobroker-community-adapters/ioBroker.rpi2

                                          closed Upgrade to rpi-gpio@2 to support nodejs 10 #2

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

                                            @smartboart
                                            Ah ok.....
                                            Ich war da radikaler.
                                            Habe IObroker platt gemacht, mit Node 10.x neu aufgesetzt und das Backup eingespielt.
                                            Auch beim Rock64, allerdings 32GB eMMc.

                                            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

                                            653
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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