Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. NodeRed fkt. nicht nach Node.js Update auf 18.20.2

    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

    NodeRed fkt. nicht nach Node.js Update auf 18.20.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @surfer09 last edited by

      @surfer09 sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

      Der Adapter für den IOBroker bekommt jetzt auch noch ein Update? Da bin ich auf Version 5.2.0. Wie bekomme ich denn da jetzt die aktuellste Version?

      Installier ggfls. einfach den node-red-Adapter nochmal in gleicher Version drüber. Der zieht sich dann die Abhängigkeit 'node-red' in Version 3.1.9 rein. Siehe mein Posting etwas weiter oben.

      1 Reply Last reply Reply Quote 0
      • haus-automatisierung
        haus-automatisierung Developer Most Active @surfer09 last edited by haus-automatisierung

        @surfer09 sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

        @haus-automatisierung Nochmal eine blöde Frage... Der Adapter für den IOBroker bekommt jetzt auch noch ein Update? Da bin ich auf Version 5.2.0. Wie bekomme ich denn da jetzt die aktuellste Version?

        Mh, da die Abgängigkeit die neue Version mit einschließt, müsste man nur ein npm install anstoßen (bitte nicht manuell). Am einfachsten geht das wahrscheinlich mit einem Downgrade des Node-RED Adapters und dann wieder ein Upgrade auf die aktuelle Version zurück. Dann müsste das aktuellste Node-RED (mit dem Patch) installiert werden.

        Eventuell geht das auch über einen iobroker Befehl direkt, aber da wüsste ich spontan keine Lösung. Eventuell @apollon77 ?

        Thomas Braun Marc Berg 2 Replies Last reply Reply Quote 1
        • Thomas Braun
          Thomas Braun Most Active @haus-automatisierung last edited by Thomas Braun

          @haus-automatisierung

          iob upgrade node-red@5.2.0
          

          sollte doch auch die Deps nochmal abklappern.

          haus-automatisierung 1 Reply Last reply Reply Quote 0
          • haus-automatisierung
            haus-automatisierung Developer Most Active @Thomas Braun last edited by

            @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

            sollte doch auch die Deps nochmal abklappern.

            Da war ich mir nicht sicher (weil ja die gleiche Version schon installiert ist) und konnte es gerade nicht testen.

            1 Reply Last reply Reply Quote 0
            • Marc Berg
              Marc Berg Most Active @haus-automatisierung last edited by

              @haus-automatisierung sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

              Am einfachsten geht das wahrscheinlich mit einem Downgrade des Node-RED Adapters und dann wieder ein Upgrade auf die aktuelle Version zurück. Dann müsste das aktuellste Node-RED (mit dem Patch) installiert werden.

              @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

              iob upgrade node-red@5.2.0

              sollte doch auch die Deps nochmal abklappern.

              Geht beides auf einem Linux System nicht. Node-Red bleibt bei 3.1.5

              Thomas Braun 1 Reply Last reply Reply Quote 1
              • Thomas Braun
                Thomas Braun Most Active @Marc Berg last edited by Thomas Braun

                @marc-berg

                The right way is to execute npm update. It's a really powerful command, it updates the missing packages and also checks if a newer version of package already installed can be used.

                Read Intro to NPM to understand what you can do with npm.

                Also müsste ein

                iob upgrade node-red@5.2.0
                

                das eigentlich alles hochziehen. Es wird dann gefragt, ob die Version wirklich reinstalliert werden soll.

                Edit: Kommando geändert - upgrade statt update muss das lauten. Und das es so funktioniert: Siehe unten.

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

                  @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                  iob update node-red@5.2.0

                  Computer sagt: Nö!

                  iobroker@iobroker:~$ iob upgrade node-red@5.2.0
                  Would you like to reinstall version 5.2.0 of node-red now? [(y)es, (n)o]: y
                  Update node-red from @5.2.0 to @5.2.0
                  host.iobroker Adapter "system.adapter.node-red.0" is stopped.
                  NPM version: 10.5.2
                  Installing iobroker.node-red@5.2.0... (System call)
                  
                  up to date in 3s
                  
                  109 packages are looking for funding
                    run `npm fund` for details
                  upload [13] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/de/translations.json i18n/de/translations.json application/json
                  upload [12] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/en/translations.json i18n/en/translations.json application/json
                  upload [11] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/es/translations.json i18n/es/translations.json application/json
                  upload [10] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                  upload [9] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/it/translations.json i18n/it/translations.json application/json
                  upload [8] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                  upload [7] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
                  upload [6] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                  upload [5] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                  upload [4] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
                  upload [3] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
                  upload [2] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/jsonConfig.json jsonConfig.json application/json
                  upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
                  upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/words.js words.js application/javascript
                  host.iobroker Adapter "system.adapter.node-red.0" is started
                  
                  iobroker@iobroker:~$ npm ls node-red
                  iobroker.inst@3.0.0 /opt/iobroker
                  └─┬ iobroker.node-red@5.2.0
                    └── node-red@3.1.5
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Marc Berg last edited by Thomas Braun

                    @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                    iobroker@iobroker:~$ npm ls node-red

                    Du stehst aber auch nicht im Installationsverzeichnis vom ioBroker sondern in dessen home.

                    cd /opt/iobroker
                    npm ls node-red
                    

                    Es sei denn, du hast das bei der Installation auf ~ umgebogen.

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

                      @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                      Du stehst aber auch nicht im Installationsverzeichnis vom ioBroker sondern in dessen home.

                      Zumindest im Container ist das home Verzeichnis des Users "iobroker" = /opt/iobroker. Nichts umgebogen.

                      Thomas Braun 1 Reply Last reply Reply Quote 1
                      • Thomas Braun
                        Thomas Braun Most Active @Marc Berg last edited by

                        @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                        Zumindest im Container ist das home Verzeichnis des Users "iobroker" = /opt/iobroker. Nichts umgebogen.

                        Ist mir neu. Wird im iob diag nämlich auch nicht berücksichtigt und das funktioniert da mit cwd /opt/iobroker

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

                          @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                          Ist mir neu.

                          Steht aber so im Dockerfile

                              # Setting up iobroker-user
                              && chsh -s /bin/bash iobroker \
                              && usermod --home /opt/iobroker iobroker \
                              && usermod -u 1000 iobroker \
                              && groupmod -g 1000 iobroker \
                              && chown root:iobroker /usr/sbin/gosu \
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Marc Berg last edited by

                            @marc-berg

                            Ach, docker? Die Dinger interessieren mich nicht.
                            Bei LXCs hast du aber definitv /opt/iobroker als Installationsverzeichnis als Default.

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

                              @thomas-braun sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                              Ach, docker? Die Dinger interessieren mich nicht.
                              Bei LXCs hast du aber definitv /opt/iobroker als Installationsverzeichnis als Default.

                              Welche Relevanz hat das jetzt gerade für das aktuelle Problem? Unter einer VM habe ich das gleiche Verhalten, dass ich Node-Red nicht auf die 3.19 gehoben bekomme. Es sei denn, ich deinstalliere komplett.

                              Homoran Thomas Braun 2 Replies Last reply Reply Quote 1
                              • Homoran
                                Homoran Global Moderator Administrators @Marc Berg last edited by

                                @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                                Welche Relevanz hat das jetzt gerade für das aktuelle Problem?

                                nur dass Thomas sichergestellt haben möchte, dass der Versuch korrekt gelaufen ist, und das frustrane Ergebnis nicht aufgrund falscher Durchführung existiert

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

                                  @marc-berg sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                                  Welche Relevanz hat das jetzt gerade für das aktuelle Problem?

                                  Nur insofern, dass ich in Unkenntnis der Docker-Situation davon ausgehen muss, dass ~ nach /home/USER führt und nicht nach /opt/iobroker.

                                  mcm1957 1 Reply Last reply Reply Quote 0
                                  • mcm1957
                                    mcm1957 @Thomas Braun last edited by

                                    Ich habe das Thema REINSTALLATION vor Kurzem getestet. Und nein, node / iobroker reinstalliert definitiv zumindest den Adapter nicht nochmals , wenn schon was in der selben Version installiert ist.

                                    Siehe: https://github.com/ioBroker/ioBroker.js-controller/issues/2667

                                    Ob dependencies aktualisiert werden hab ich da nicht getestet.

                                    mcm1957 created this issue in ioBroker/ioBroker.js-controller

                                    closed [enhancement]: improve reinstall of existing adapter release #2667

                                    Thomas Braun 1 Reply Last reply Reply Quote 2
                                    • Thomas Braun
                                      Thomas Braun Most Active @mcm1957 last edited by Thomas Braun

                                      @mcm57 sagte in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                                      Ob dependencies aktualisiert werden hab ich da nicht getestet.

                                      Werden sie. Zumindest auf meinem System...

                                      echad@chet:/opt/iobroker $ npm ls node-red
                                      iobroker.inst@3.0.0 /opt/iobroker
                                      `-- iobroker.node-red@5.2.0
                                        `-- node-red@3.1.2
                                      
                                      echad@chet:/opt/iobroker $ iob upgrade node-red@5.2.0
                                      Would you like to reinstall version 5.2.0 of node-red now? [(y)es, (n)o]: y
                                      Update node-red from @5.2.0 to @5.2.0
                                      host.chet Adapter "system.adapter.node-red.0" is stopped.
                                      NPM version: 10.5.0
                                      Installing iobroker.node-red@5.2.0... (System call)
                                      
                                      removed 722 packages, and changed 13 packages in 13s
                                      
                                      143 packages are looking for funding
                                        run `npm fund` for details
                                      upload [13] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/de/translations.json i18n/de/translations.json application/json
                                      upload [12] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/en/translations.json i18n/en/translations.json application/json
                                      upload [11] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/es/translations.json i18n/es/translations.json application/json
                                      upload [10] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                                      upload [9] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/it/translations.json i18n/it/translations.json application/json
                                      upload [8] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                                      upload [7] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
                                      upload [6] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                                      upload [5] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                                      upload [4] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
                                      upload [3] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
                                      upload [2] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/jsonConfig.json jsonConfig.json application/json
                                      upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
                                      upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/words.js words.js application/javascript
                                      host.chet Adapter "system.adapter.node-red.0" is started
                                      echad@chet:/opt/iobroker $ npm ls node-red
                                      iobroker.inst@3.0.0 /opt/iobroker
                                      `-- iobroker.node-red@5.2.0
                                        `-- node-red@3.1.9
                                      
                                      echad@chet:/opt/iobroker $ 
                                      
                                      
                                      mcm1957 1 Reply Last reply Reply Quote 1
                                      • mcm1957
                                        mcm1957 @Thomas Braun last edited by

                                        @thomas-braun
                                        OK danke,
                                        Dann optimiert node nur die Installation identer Versionen weg.

                                        Hintergrund (bei mir):
                                        Nach ein wenig direkter Pfusch in den Scripts wg. Debugging wollte ich alle Datein wieder auf den offiziellen Stand bringen - daher reinstallationd erselben Versione - neda, das geht so nicht 😞

                                        haus-automatisierung 1 Reply Last reply Reply Quote 0
                                        • haus-automatisierung
                                          haus-automatisierung Developer Most Active @mcm1957 last edited by

                                          @mcm57 Ne, dann wird ja auch nix gemacht, weil npm denkt es ist immer alles so wie installiert. Es wird ja nicht jede Datei geprüft (ob die zur noch Version passt).

                                          mcm1957 1 Reply Last reply Reply Quote 0
                                          • mcm1957
                                            mcm1957 @haus-automatisierung last edited by mcm1957

                                            @haus-automatisierung said in NodeRed fkt. nicht nach Node.js Update auf 18.20.2:

                                            @mcm57 Ne, dann wird ja auch nix gemacht, weil npm denkt es ist immer alles so wie installiert. Es wird ja nicht jede Datei geprüft (ob die zur noch Version passt).

                                            Ja - das weiß ich jetzt auch. Nur versteh zumindest ich unter REINSTALLATION was anderes. Reinstallation bedeutet für mich, dass der Stand wie nach einer Installation hergestellt wird - zumindest was Code & Libraries betrifft - nicht den Datenbestand. Daher auch das Issue. Minimal ist der Text irreführend. Aber es spricht m.E. auch nichts dagegen npm deinstall und install zu machen und damit wirklich alles zu erneuern. Derzeit geht das nur über downgrade / upgrade oder manuell mit npm. Beides eindeutig zweite Wahl Lösungen.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            872
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            11
                                            49
                                            2362
                                            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