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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      saeft_2003 Most Active @Glasfaser last edited by

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

      @saeft_2003

      und nach dem Reboot ein Rebuild !?

      ja dann kommt auch wieder am schluss der oben genannte fehler. jetzt wollte ich den js-controller updaten. ein update wird mir auch angezeigt unter host. aber dann kommt das

      pi@raspberrypi:~ $ iobroker upgrade self
      Host    "raspberrypi"    is up to date.
      
      
      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @saeft_2003 last edited by

        @saeft_2003

        Installiere den Zigbee über die Katze neu und dann ein upload

        S 1 Reply Last reply Reply Quote 0
        • S
          saeft_2003 Most Active @Glasfaser last edited by

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

          @saeft_2003

          Installiere den Zigbee über die Katze neu und dann ein upload

          Hab ich gemacht bringt, aber nichts.. mal zigbee löschen und neuinstallieren?

          Glasfaser 1 Reply Last reply Reply Quote 0
          • Glasfaser
            Glasfaser @saeft_2003 last edited by

            @saeft_2003

            Wenn du ein Backup hast ... dann ja !

            S 1 Reply Last reply Reply Quote 0
            • S
              saeft_2003 Most Active @Glasfaser last edited by

              @Glasfaser

              Wie ein zigbee backup? Die Geräte sind auf dem stick und wenn die einstellungen wieder passen sollte doch alles wieder gehen, oder?

              Glasfaser 1 Reply Last reply Reply Quote 0
              • Glasfaser
                Glasfaser @saeft_2003 last edited by Glasfaser

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

                Die Geräte sind auf dem stick

                Der Stick ist nur ein Sende/Empfangs Bauteil .. er hat keine Daten von den einzelnen Aktoren gespeichert !

                S 1 Reply Last reply Reply Quote 0
                • S
                  saeft_2003 Most Active @Glasfaser last edited by

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

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

                  Die Geräte sind auf dem stick

                  Der Stick ist nur ein Sende/Empfangs Bauteil .. er hat keine Daten von den einzelnen Aktoren gespichert !

                  ahh so ein mist aber auch... dann habe ich falsch gedacht. Für mich stellt sich die frage ob schon der fehler beim npm rebuild schuld ist? wenn ich die kommandos für das reinstall skript eingebe passiert rein gar nichts...

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

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

                    wenn ich die kommandos für das reinstall skript eingebe

                    Was für Kommandos?

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

                      @Thomas-Braun

                      c) reinstall-Skript
                      Sollte das nicht klappen, beinhaltet der js-Controller ein reinstall-Skript ("reinstall.sh" bzw. ab js-controller 1.5.x "reinstall.js"). Dieses Skript erkennt alle installierten ioBroker-Adapter, löscht diese dann aus dem node_modules-Verzeichnis und installiert sie neu. Dieser Ansatz ist etwas aufwändiger als "npm rebuild", erfüllt aber den gleichen Zweck. Das funktioniert generell gut, man sollte den Prozess aber nicht abbrechen. Falls es doch passiert oder es Probleme beim Starten nach dieser Prozedur gibt, dann am besten den Weg im nächsten Punkt wählen.
                      Das reinstall.sh-Skript welches im js-controller 1.4 mitgeliefert wurde hat ein Formatierungsproblem und muss vorher noch für Linux mit den Befehlen

                      cd /opt/iobroker

                      sudo mv reinstall.sh reinstall.dos

                      sudo tr -d '\r' < reinstall.dos > reinstall.sh

                      sudo chmod +x reinstall.sh

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

                        @saeft_2003 Du meinst die letzten drei Kommandos?
                        Das ist klar, die Datei heißt mit Sicherheit auf deinem System auch
                        reinstall.js

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

                          @Thomas-Braun

                          ja die mein ich das muss man erstmal wissen, soll ich das ausführen?

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

                            @saeft_2003
                            Ich würde erstmal die Optionen a) und b) versuchen.

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

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

                              @saeft_2003
                              Ich würde erstmal die Optionen a) und b) versuchen.

                              a würde ich gerne aber wenn ich updaten will auf js controller 3.x dann kommt das obwohl es mir in der host übersicht angezeigt wird

                              pi@raspberrypi:~ $ iobroker upgrade self
                              
                              Host    "raspberrypi"    is up to date.
                              
                               
                              
                              1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 last edited by

                                Wo steht Ihr denn? Aber das allerwichtigste: Welche zigbee Version ist im Einsatz?

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  saeft_2003 Most Active @apollon77 last edited by

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

                                  Wo steht Ihr denn? Aber das allerwichtigste: Welche zigbee Version ist im Einsatz?

                                  zigbee adapter 1.1.1

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

                                    Auf der Konsole

                                    cd /opt/iobroker/node_modules/@serialport/bindings/
                                    und dort

                                    npm rebuild

                                    Bitte mal versuchen

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      saeft_2003 Most Active @apollon77 last edited by

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

                                      npm rebuild

                                      hab ich gemacht bringt nichts fehler noch vorhanden. ich habe auf einem slave auch den adapter mit node 12 laufen es muss irgendwie gehen...

                                      root@iobroker:~# iobroker stop
                                      root@iobroker:~# cd /opt/iobroker/node_modules/@serialport/bindings/
                                      root@iobroker:/opt/iobroker/node_modules/@serialport/bindings# npm rebuild
                                      @serialport/parser-readline@8.0.6 /opt/iobroker/node_modules/@serialport/binding                                                                                                                                                             s/node_modules/@serialport/parser-readline
                                      @serialport/parser-delimiter@8.0.6 /opt/iobroker/node_modules/@serialport/bindin                                                                                                                                                             gs/node_modules/@serialport/parser-delimiter
                                      bindings@1.5.0 /opt/iobroker/node_modules/@serialport/bindings/node_modules/bind                                                                                                                                                             ings
                                      debug@4.1.1 /opt/iobroker/node_modules/@serialport/bindings/node_modules/debug
                                      ms@2.1.2 /opt/iobroker/node_modules/@serialport/bindings/node_modules/ms
                                      nan@2.14.1 /opt/iobroker/node_modules/@serialport/bindings/node_modules/nan
                                      prebuild-install@5.3.3 /opt/iobroker/node_modules/@serialport/bindings/node_modu                                                                                                                                                             les/prebuild-install
                                      expand-template@2.0.3 /opt/iobroker/node_modules/@serialport/bindings/node_modul                                                                                                                                                             es/expand-template
                                      pump@3.0.0 /opt/iobroker/node_modules/@serialport/bindings/node_modules/pump
                                      root@iobroker:/opt/iobroker/node_modules/@serialport/bindings#
                                      
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        saeft_2003 Most Active @saeft_2003 last edited by saeft_2003

                                        zum glück habe ich voher von der vm ein backup gemacht ist jetzt wieder eingespielt und läuft wieder alles mit node 10. Ich kann die andere vm mit node 12 aber wieder starten, da ich sehr gerne dieses problem lösen würde... Was hast du noch für eine idee @apollon77?

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

                                          Anstelle "npm rebuild" mach mal ein "npm install --production" in dem Ordner

                                          S 2 Replies Last reply Reply Quote 0
                                          • S
                                            saeft_2003 Most Active @apollon77 last edited by

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

                                            Anstelle "npm rebuild" mach mal ein "npm install --production" in dem Ordner

                                            Alles klar probiere ich morgen und melde mich dann. Vielen Dank soweit. Gute Nacht 😴

                                            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

                                            890
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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