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.
    • Mic
      Mic Developer @Stabilostick last edited by

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

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

      Ah, Du bist einer welcher, der die Sicherheit seines Systems täglich aufs neue herausfordert, indem Du als root-User arbeitest. 😈

      npm i acme-dns-01-cli

      Hattest Du das im ioBroker-Ordner (z.B. /opt/iobroker) ausgeführt?

      Wegen root-User: Versuche es ggf. einmal mit dem ioBroker-Fixer, der einige Berechtigungen und Einstellungen korrigiert:

      curl -sL https://iobroker.net/fix.sh | bash -
      

      😱
      Danke für Deine Antwort. ☺
      Hat nichts gebracht, ich werde wohl mal gelegentlich eine Neuinstallation durchlaufen lassen. Geht ja relativ fix, außerhalt der Wartezeit nach Einspielen ioBroker-Backup.

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

        @Mic mich hat er auch schon bekehrt😉

        1 Reply Last reply Reply Quote 1
        • Stabilostick
          Stabilostick @smartboart last edited by Stabilostick

          @smartboart

          Hi, bin gerade nicht am Rechner. rpi-gpio hat als Abhängigkeit epoll. Ich meine, dass bei epoll eine neuere Version für Node 10 benötigt wird. Gibt es nicht ein rpi-gpio@2.0.0 oder neuer? Der rpi2-Adapter müsste auch mit einem neueren rpi-gpio umgehen können.

          apollon77 MathiasJ 2 Replies Last reply Reply Quote 0
          • apollon77
            apollon77 @Stabilostick last edited by

            @Stabilostick macht doch mal ein GitHub issue auf?‘

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

              Wollte es nur nochmal erwähnt haben, der sma-em Adapter funktioniert nicht mit node 10.x, was sehr schade ist, weil dieser Adapter extrem nützlich ist, sofern man ein sma engerymeter hat, siehe:

              https://forum.iobroker.net/topic/23121/problem-mit-iobroker-sma-em-adapter-nach-node-update

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

                @Winni dann GitHub issue auf machen. Mit dem Link am besten 😉

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

                  @Stabilostick
                  ich habe gerade rein geschaut.
                  Mit rpi2 funktionieren alle meine GPIO's
                  Meine IObroker-Installation ist auf dem neuesten Stand.

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

                    @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...

                    MathiasJ 2 Replies Last reply Reply Quote 0
                    • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            782
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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