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.
    • M
      maik150 @sigi234 last edited by

      @sigi234 hab ich gelesen, was soll ich dem entnehmen?

      1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown @maik150 last edited by

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

        der installationsfixer muss der im iobroker ordner ausgeführt werden?

        nein

        1 Reply Last reply Reply Quote 0
        • AlCalzone
          AlCalzone Developer @maik150 last edited by

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

          permission denied, rmdir 'build'

          Wenn du root bist und ioBroker gestoppt hast, dürfte das gar nicht passieren. Bist du 100% sicher, dass nicht doch noch ein ioBroker-Prozess läuft?

          M 1 Reply Last reply Reply Quote 0
          • M
            maik150 @AlCalzone last edited by

            @AlCalzone so sieht es aus wenn ich den iobroker stoppe.

            root@raspberrypi2:/opt/iobroker# iobroker stop
            root@raspberrypi2:/opt/iobroker# ps auxww|grep io
            root         9  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/0]
            root        13  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/1]
            root        18  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/2]
            root        23  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/3]
            root        34  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        38  0.0  0.0      0     0 ?        S<   00:39   0:00 [rpciod]
            root        39  0.0  0.0      0     0 ?        S<   00:39   0:00 [xprtiod]
            root        42  0.0  0.0      0     0 ?        S<   00:39   0:00 [nfsiod]
            root        53  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        54  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        55  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        56  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        57  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        58  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        59  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        60  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        61  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        62  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        63  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        64  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        65  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        66  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        67  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        68  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        69  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        70  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        71  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        72  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        73  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        74  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        75  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        76  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            root        80  0.0  0.0      0     0 ?        S<   00:39   0:00 [DWC Notificatio]
            root        88  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
            message+   277  0.0  0.3   6588  3600 ?        Ss   00:39   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
            root       499  0.0  0.8  32184  7744 ?        Sl   00:39   0:00 lightdm --session-child 14 17
            pi         515  0.0  1.3  52832 13112 ?        Ssl  00:39   0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE
            pi         524  0.0  0.3   6512  3036 ?        Ss   00:39   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation
            pi         590  0.0  0.0   3792   232 ?        Ss   00:39   0:00 /usr/bin/ssh-agent x-session-manager
            root      2137  0.0  0.0   4372   532 pts/0    S+   13:53   0:00 grep io
            

            ich muss dazu sagen mein iobroker läuft so ansich und es werden auch alle versionsnummern richtig angezeigt, sei es jetzt node oder js-controller. aber mein eigentliches problem mit meiner alexa besteht leider weiterhin, aber das gehört hier glaube ich nicht hin oder?

            oberfragger 1 Reply Last reply Reply Quote 0
            • oberfragger
              oberfragger @maik150 last edited by oberfragger

              Ich hoffe das Schwarmwissen kann mir helfen. Ich bekomme Node einfach nicht geupdated. Der Info-Adapter sagt immer- es gibt eine aktuellere Version.
              e67adf31-b144-488b-bcd2-11b2eade2c5a-image.png

              pi@raspberrypi4:/opt/iobroker $ node -v
              v10.17.0
              pi@raspberrypi4:/opt/iobroker $ nodejs -v
              v10.18.1
              pi@raspberrypi4:/opt/iobroker $ npm -v
              6.11.3
              

              Ich habe bereits folgendes gemacht:

              sudo apt-get update && sudo apt-get upgrade
              detecting old npm-client removing
              Vorbereitung zum Entpacken von .../10-nodejs_10.18.1-1nodesource1_armhf.deb ...
              Detected old npm client, removing...
              Entpacken von nodejs (10.18.1-1nodesource1) über (10.18.0-1nodesource1) ...
              nodejs (10.18.1-1nodesource1) wird eingerichtet ...
              Systeminformations:
              Node.js
              v10.17.0 (Es gibt eine neuere Version: v10.18.1)
              
              pi@raspberrypi4:~ $ node -v
              v10.17.0
              pi@raspberrypi4:/opt/iobroker $ sudo apt-get install -y nodejs
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              nodejs ist schon die neueste Version (10.18.1-1nodesource1).
              

              Wo ist der Denkfehler bzw. wie bekomme ich das ganze aktualisiert?

              Deinstallation von Node klappt auch nicht...

              pi@raspberrypi4:~ $ sudo apt-get --purge remove node
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Paket »node« ist nicht installiert, wird also auch nicht entfernt.
              Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
                libva-drm2 libva-x11-2 libva2 libvdpau-va-gl1 libvdpau1 mesa-va-drivers
                mesa-vdpau-drivers va-driver-all vdpau-driver-all
              Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
              0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
              

              Nachdem ich
              Die existierenden node & node.js Versionen deinstallieren
              sudo apt-get --purge remove node
              sudo apt-get --purge remove nodejs
              sudo apt-get autoremove
              sudo reboot

              und curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - ausgeführt und neu gestartet habe, kam leider immer noch:

              
              pi@raspberrypi4:~ $ node -v
              v10.17.0
              pi@raspberrypi4:~ $ nodejs -v
              v10.18.1
              
              
              oberfragger 1 Reply Last reply Reply Quote 0
              • oberfragger
                oberfragger @oberfragger last edited by

                Ich habs hinbekommen. Der Eintrag von @Stabilostick recht weit oben war die Lösung!

                sudo apt-get purge -y nodejs npm nodejs-legacy
                sudo apt -y autoremove
                 
                sudo rm /etc/sources.list.d/nodesource.list
                sudo apt-get update
                 
                sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules 
                 
                sudo rm -rf /usr/local/lib/node*
                sudo rm -rf /usr/local/include/node*
                sudo rm -rf /usr/local/bin/node*
                

                Danach reboot und von vorn installiert. Puuh. Endlich...

                1 Reply Last reply Reply Quote 0
                • X
                  xADDRx last edited by

                  Hallo zusammen,

                  nach dem update auf node 10 wollte mein zigbee adapter nicht mehr starten. Ich habe daraufhin den Adapter gelöscht und wieder neu installiert. seit dem zeigt er mir alle geräte als undefined an.
                  node.jpg
                  jemand eine idee?

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

                    @xADDRx welche Adapter version hast du installiert.. ich vermute die alte und nicht die aus dem GIT.. wen ja dan ist da was schief gelaufen..

                    X 1 Reply Last reply Reply Quote 0
                    • X
                      xADDRx @arteck last edited by

                      @arteck hallo Arteck, Version ist 1.0.0.c

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

                        @xADDRx was steht in der Datei

                        tail /opt/iobroker/iobroker-data/zigbee.0/shepherd.db
                        
                        X 1 Reply Last reply Reply Quote 0
                        • X
                          xADDRx @arteck last edited by

                          @arteck ich habe heute morgen erstmal über proxmox alles zurückgespielt, sonst bringt mich meine Frau um :D. Übrigens hatte ich schon 3 mal versucht den zigbee Adapter zum starten zu bekommen nach Update auf Node 10.

                          Zwave, sql, yahka und zigbee funktionierten nach dem Update nicht.

                          Ich habe alle zum laufen bekommen außer den zigbee Adapter.

                          Ich werde heute Abend nochmal von vorne beginnen und dir nochmal hier genau den Fehler posten.

                          Vielen Dank für deine Hilfe

                          1 Reply Last reply Reply Quote 0
                          • X
                            xADDRx last edited by

                            Hallo arteck,

                            hier die Fehlermeldung:

                            zigbee.jpg

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

                              npm rebuild hattest Du ausgeführt oder so?

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

                                @apollon77 ja auch ohne fehler

                                1 Reply Last reply Reply Quote 0
                                • T
                                  TDCroPower last edited by

                                  Kann mir jemand einen Tipp geben woran rpm rebuild scheitert?

                                  Ich habe meinen OrangePi mit Armbian laut Anleitung erst einmal NodeJS von 8 auf 10 updaten wollen.

                                  Nach dem Nodejs habe ich zunächst die fix.sh durch laufen lassen.
                                  Danach habe ich mit rpm rebuild versucht die Module zu korrigieren und erhalte am Ende folgende Fehler...

                                  ...
                                  ...
                                  ../src/unix_dgram.cc:361:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                    fd = info[0]->Int32Value();
                                                             ^
                                  In file included from /root/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                                                  from /root/.cache/node-gyp/10.18.1/include/node/node.h:63,
                                                  from ../node_modules/nan/nan.h:47,
                                                  from ../src/unix_dgram.cc:5:
                                  /root/.cache/node-gyp/10.18.1/include/node/v8.h:2478:46: note: declared here
                                    V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                               ^
                                  /root/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                                    declarator __attribute__((deprecated(message)))
                                    ^~~~~~~~~~
                                  unix_dgram.target.mk:101: recipe for target 'Release/obj.target/unix_dgram/src/unix_dgram.o' failed
                                  make: *** [Release/obj.target/unix_dgram/src/unix_dgram.o] Error 1
                                  make: Leaving directory '/opt/iobroker/node_modules/unix-dgram/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:191: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.19.62-sunxi
                                  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/unix-dgram
                                  gyp ERR! node -v v10.18.1
                                  gyp ERR! node-gyp -v v5.0.5
                                  gyp ERR! not ok
                                  npm ERR! code ELIFECYCLE
                                  npm ERR! errno 1
                                  npm ERR! unix-dgram@0.2.3 install: `node-gyp rebuild`
                                  npm ERR! Exit status 1
                                  npm ERR!
                                  npm ERR! Failed at the unix-dgram@0.2.3 install script.
                                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /root/.npm/_logs/2020-01-29T22_59_58_436Z-debug.log
                                  root@OrangePi:/opt/iobroker#
                                  

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

                                    @TDCroPower Unix dgram ist ok das das als Fehler kommt.

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

                                      komisch...
                                      ich mache meine updates mit

                                      apt update && apt upgrade
                                      

                                      und sonst nichts. Hier wird die neueste Node bzw NodeJS gleich mit installiert.
                                      manchmal noch den Installations-Fixer hinterher jagen.
                                      Bisher Null Problemo.
                                      Gruß,
                                      Mathias

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

                                        @MathiasJ naja das ist einfach: dabei bleibst du üblicherweise (wenn du das Repo von nodesource nutzt wie üblich) immer auf einer Major Version. Dabei gibts auch keine Probleme. Welche nodejs Version hast du denn?

                                        Wenn du aber von zb node 8 auf 10 willst musst du ein anderes Repo einstellen von nodesource und dann bist du genau beim Thema von diesem thread. Alles hier diskutierte ist nur bei Major versions Änderungen relevant.

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

                                          ok, ok dann bin ich hier wohl falsch.
                                          Bin seit meiner Neuinstallation gleich auf die 10.

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            TDCroPower last edited by

                                            leider hat es meine iobroker Installation irgendwie nicht überlebt nach dem Update von NodeJS.
                                            Habe daher das fehlerhafte iobroker Verzeichnis unter /opt einfach umbenannt und iobroker von neu installiert.
                                            Danach mein iobroker Backup vor dem Update eingespielt und soweit habe ich wieder fast alles am laufen.

                                            Leider haben alle meine ZigBee Geräte wohl keine Verbindung...
                                            zigbee_netzwerkkarte.png zigbee_geraete.png

                                            weiß jemand wie ich das fixen kann ohne alle Geräte erneut anmelden zu müssen?

                                            Falls alternativ jemand eine Idee hat wie ich meine defekte Instanz checken kann nehme ich auch die Tipps an 😜
                                            Habe ja das komplette Verzeichnis gesichert.

                                            apollon77 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

                                            733
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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