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.
    • 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
                                        • arteck
                                          arteck Developer Most Active last edited by

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

                                          /opt/iobroker/node_modules/@serialport

                                          läche das ding mit

                                          rm -R /opt/iobroker/node_modules/@serialport
                                          

                                          adapter stoppen nicht vergessen

                                          und installiere den Zigbee Adapter neu vom GIT dann werden die abhängigkeiten alle neu aufgebaut

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

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

                                            npm install --production

                                            hab ich gemacht bringt den selben Fehler...

                                            root@iobroker:~# iobroker stop
                                            root@iobroker:~# cd /opt/iobroker
                                            root@iobroker:/opt/iobroker# npm install --production
                                            
                                            > iobroker.inst@2.0.2 install /opt/iobroker
                                            > node lib/checkVersions.js
                                            
                                            NPM version: 6.14.4
                                            
                                            > iobroker.inst@2.0.2 postinstall /opt/iobroker
                                            > node lib/install.js
                                            
                                            
                                            
                                            ╭─────────────────────────────────────────────────────────╮
                                            │                                                         │
                                            │ Manual installation of ioBroker is no longer supported  │
                                            │ on Linux, OSX and FreeBSD!                              │
                                            │ Please refer to the documentation on how to install it! │
                                            │ https://github.com/ioBroker/ioBroker/wiki/Installation  │
                                            │                                                         │
                                            ╰─────────────────────────────────────────────────────────╯
                                            
                                            
                                            npm ERR! code ELIFECYCLE
                                            npm ERR! errno 100
                                            npm ERR! iobroker.inst@2.0.2 postinstall: `node lib/install.js`
                                            npm ERR! Exit status 100
                                            npm ERR!
                                            npm ERR! Failed at the iobroker.inst@2.0.2 postinstall 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!     /home/iobroker/.npm/_logs/2020-05-31T07_23_43_761Z-debug.log
                                            root@iobroker:/opt/iobroker#
                                            
                                            

                                            und das log gibt es nicht im iobroker ordner sind nur dateien von mir aber kein Ordner .npm. Und jetzt?

                                            Unbenannt.jpg

                                            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

                                            814
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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