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.
    • Thomas Braun
      Thomas Braun Most Active @toki1973 last edited by

      @toki1973
      Nee du musst nur den Eintrag 'stretch' auf 'buster' in der
      /etc/apt/sources.list.d/pve-install-repo.list
      ändern.
      Dann

      wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
      

      Und dann

      sudo apt update
      sudo apt dist-upgrade
      
      T 1 Reply Last reply Reply Quote 0
      • T
        toki1973 @Thomas Braun last edited by

        @Thomas-Braun
        Hört sich schon besser an. Und dabei kann ich nichts abschießen?

        1. in der Datei stretch auf buster ändern

        Bekomme ich beim 2. Punkt eine neu Proxmox Release in der node-js in Version 12 enthalten ist?

        werden im 3. Punkt die sourcen installiert?

        harrym Thomas Braun 2 Replies Last reply Reply Quote 0
        • harrym
          harrym @toki1973 last edited by

          @toki1973 was hat proxmox mit node.js zu tun?

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

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

            @Thomas-Braun
            Hört sich schon besser an. Und dabei kann ich nichts abschießen?

            1. in der Datei stretch auf buster ändern

            Bekomme ich beim 2. Punkt eine neu Proxmox Release in der node-js in Version 12 enthalten ist?

            werden im 3. Punkt die sourcen installiert?

            Irgendwie recht wirr...
            Nee, du korrigierst nur deine verfummelten sources.lists und dann ziehst du das ganze System hoch. Mit proxmox hat das zunächst mal nix zu tun.

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

              in DEINER VM musste dann es node aktualisieren oder was auch immer ......

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

                @All

                [HowTo] Nodejs-Installation und Upgrades unter Debian

                von @Thomas-Braun

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

                  Hi zusammen,
                  ich wollte gerade auf das neueste Node/Nodejs updaten,
                  sobald ich

                  sudo apt-get update && sudo apt-get upgrade
                  

                  mache, ist der Raspberry nicht mehr erreichbar.
                  Das gilt im übrigen auch, wenn ich IObrokjer neu aufsetzen will.
                  das eigenartige daran, beim PI3 B+ (Slave) gehts, beim PI4 (Master) gibt's die Probleme.

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

                    @MathiasJ Zweite Konsole mitlaufen lassen und dann mit

                    tail -f /var/log/messages
                    

                    schauen was da passiert.

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

                      @Thomas-Braun
                      Danke, mache ich morgen.
                      Muß den PI4 mal wieder ausstrecken, weil der nach dem Reboot nicht mehr erreichbar ist und deshalb nicht sauber herunter gefahren werden kann.

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

                        @MathiasJ Das ist natürlich Gift für das System.

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

                          @Thomas-Braun
                          Das ist mir durchaus bewußt.
                          Aber wie soll ich das Teil ordentlich herunter fahren, wenn ich weder per ssh oder Web darauf zugreifen kann?
                          Ich werde das Teil heute Abend über den Monitor laufen lassen. Dann sehe ich auch, was er nach dem Neustart so treibt.

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

                            also, wenn man bei einer neuinstallation

                            sudo apt-get update && sudo apt-get upgrade
                            

                            weg läßt, geht es eigenartiger weise.

                            Bei

                            curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                            sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
                            

                            wird ein Update angestoßen. Ich möchte nur wissen, was dabei anders ist. Bei einem Reboot ist der Raspberry auch wieder erreichbar. Es scheint sich tatsächlich um einen Bug zu handeln? 😰

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

                              @MathiasJ
                              Neuinstallation von was? Nodejs? Betriebssystem?
                              Wenn bei dem

                              sudo apt-get update && sudo apt-get upgrade
                              

                              noch kein Repo von nodesource angelegt war, dann passiert da auch bezüglich nodejs nichts. Wobei das nicht den Absturz erklärt. Sollte eigentlich nicht passieren.
                              Ich würde das aber ohnehin in zwei Schritten (und per apt) durchführen:

                              sudo apt update
                              sudo apt upgrade
                              

                              Mit

                              curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                              

                              wird per skript das nodesource-Repository angelegt, dann kommt auch per apt ein entsprechendes Update/Upgrade rein.

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

                                ich habe zuerst
                                per

                                sudo apt-get update && sudo apt-get upgrade
                                

                                Node auf die neueste Version bringen wollen. System nicht erreichbar.

                                Dann Linux komplett neu aufgesetzt, wieder mit

                                sudo apt-get update && sudo apt-get upgrade
                                

                                ein Update angestoßen. Wieder nicht erreichbar.
                                Dann ohne Update

                                curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                                

                                IObroker neu aufgesetzt. Dann ging es.

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

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

                                  sudo apt-get update && sudo apt-get upgrade

                                  Bringt nicht ohne Vorbereitung ein aktuelles node auf das System.

                                  Was passiert denn nun, wenn du

                                  sudo apt update
                                  sudo apt dist-upgrade
                                  

                                  aufrufst?

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

                                    Könnte ich das nächste mal versuchen.
                                    ich habe jetzt ein laufendes System ohne Update und Upgrade hinbekommen.
                                    Als ich

                                    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                                    

                                    aufgeführt habe, hat das System sich ein Update gezogen. ich bin jetzt auf der 12.18.3.
                                    ich wollte auch nur 12.18.2 ----->12.18.3
                                    Gruß,
                                    Mathias

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

                                      @MathiasJ
                                      Willst du jetzt dein Gesamtsystem nie updaten?

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

                                        es geht ja wohl nicht, ohne dass das system dann nicht mehr erreichbar ist.
                                        Ich warte immer noch auf den HDMI-HDMI micro-Adapter, damit ich sehen kann, was das system so treibt.

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

                                          @MathiasJ
                                          Klar geht das.

                                          Ist jetzt node wenigstens gerade im System?

                                          which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                          

                                          Und was meldet denn das System zurück, wenn du

                                          apt update
                                          

                                          aufrufst? Irgendwas muss da ja kommen.

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

                                            Ja, ist es:

                                            which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                            /usr/bin/nodejs
                                            v12.18.3
                                            /usr/bin/node
                                            v12.18.3
                                            /usr/bin/npm
                                            6.14.6
                                            nodejs:
                                              Installiert:           12.18.3-1nodesource1
                                              Installationskandidat: 12.18.3-1nodesource1
                                              Versionstabelle:
                                             *** 12.18.3-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                                    100 /var/lib/dpkg/status
                                                 10.21.0~dfsg-1~deb10u1+rpi1 500
                                                    500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                            

                                            IObroker läuft jetzt ja.
                                            Sorry, habe jetzt keine Zeit, das System wieder neu aufzusetzen, nachdem ich

                                            apt update
                                            

                                            aufgerufen habe.
                                            Gruß,
                                            Mathias

                                            Thomas Braun 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

                                            711
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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