Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. IoBroker lässt kein update zu

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IoBroker lässt kein update zu

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      worxweis last edited by

      @jan1 Hallo Leute!

      Ich habe folgendes Problem: Ich habe ein Multihost System mit einem Master und einem Slave. (Beides Raspery Pi's).
      Auf der Übersichtseite wird beim Master ein NODEJS mit V14.19.1 angezeigt, beim Slave V14.16.0. Alle Adapter aktuell! Beide iobroker laufen mit js-controller 4.0.21.

      PlatformBetriebssystem:linux
      Architektur:arm
      CPUs:4
      Geschwindigkeit:600 MHz
      Modell:ARMv7 Processor rev 4 (v7l)
      RAM:926 MB
      System-Betriebszeit:00:05:15
      Node.js:v14.16.0
      time:1651388230789
      timeOffset:-120
      Adapter-Anzahl:407
      NPM:v6.14.11
      Datenträgergröße:14.4 GB
      freier Festplattenspeicher:8.2 GB
      Betriebszeit:00:03:10
      Aktive Instanzen:1
      Pfad:/opt/iobroker/
      

      Wollte nun ein Update des js-controllers durchführen.

      Beim Backup kam dann der Fehler:

      pi@ioBroker-RasPi:~ $ iob backup
      host.ioBroker-RasPi 15639 states saved
      host.ioBroker-RasPi 17623 objects saved
      
      <--- Last few GCs --->
      
      [1006:0x3fa5e78]    91924 ms: Mark-sweep (reduce) 231.7 (233.4) -> 231.7 (233.9) MB, 142.2 / 0.0 ms  (average mu = 0.298, current mu = 0.001) last resort GC in old space requested
      [1006:0x3fa5e78]    92069 ms: Mark-sweep (reduce) 231.7 (233.4) -> 231.7 (233.9) MB, 144.5 / 0.1 ms  (average mu = 0.182, current mu = 0.001) last resort GC in old space requested
      
      <--- JS stacktrace --->
      
      FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
      /usr/bin/iob: Zeile 8:  1002 Abgebrochen             sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
      
      

      Bei der Versionsabfrage kommt folgende Meldung:

      pi@ioBroker-RasPi:~ $ nodejs -v
      -bash: nodejs: Kommando nicht gefunden.
      pi@ioBroker-RasPi:~ $ nodejs
      -bash: nodejs: Kommando nicht gefunden.
      

      Neustart hat nichts gebracht!
      Kann mir hier jemand weiterhelfen?

      Danke schon mal!

      J crunchip 2 Replies Last reply Reply Quote 0
      • J
        Jan1 @worxweis last edited by

        @worxweis sagte in IoBroker lässt kein update zu:

        nodejs -v

        Wolltest nicht mich direkt fragen, oder?
        Multi Host habe ich keinen und somit auch nicht wirklich Plan wie das zu handhaben ist, aber wenn Die Node Abfrage schon nicht funktioniert, dann dürfte das wohl schon schlecht sein und Du solltest hier das Problem suchen. Backup manuell geht, aber warum wenn man dafür ein Adapter hat?

        W 1 Reply Last reply Reply Quote 0
        • W
          worxweis @Jan1 last edited by

          @jan1 Sorry, wollte allgemein Fragen!

          Backup manuell, weil es in der Updatebeschreibung des js-controllers so drinnensteht!

          Aber was ich auch noch immer nicht verstehe: was ist der Unterschied zwischen Node.js und Nodejs? Oder ist das dass gleiche?

          crunchip J 2 Replies Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @worxweis last edited by

            @worxweis sagte in IoBroker lässt kein update zu:

            was ist der Unterschied zwischen Node.js und Nodejs

            die Schreibweise, es heisst node.js
            https://nodejs.org/en/docs/

            1 Reply Last reply Reply Quote 0
            • J
              Jan1 @worxweis last edited by Jan1

              @worxweis
              Auch so, das steht nur drin, damit die Kandidaten die Backups nur machen wenn sie sie benötigen auch endlich mal eins machen. Normal hat man eh jeden Tag ein aktuelles vom Backitup Adapter.

              Node ist Node und wird so eben nur geprüft, ob die Installation richtig ist 😉

              1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @worxweis last edited by

                @worxweis sagte in IoBroker lässt kein update zu:

                FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

                mal eine Erklärung
                https://sebhastian.com/javascript-heap-out-of-memory/

                W 1 Reply Last reply Reply Quote 0
                • W
                  worxweis @crunchip last edited by

                  @crunchip Danke für die Info!

                  Aber wie hilft mir das weiter? Warum findet er den Befehl nodejs -v nicht?

                  J Homoran 2 Replies Last reply Reply Quote 0
                  • J
                    Jan1 @worxweis last edited by Jan1

                    @worxweis
                    zeig mal was er mit dem Befehle ausspuckt:

                    uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                    
                    W 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @worxweis last edited by

                      @worxweis sagte in IoBroker lässt kein update zu:

                      Warum findet er den Befehl nodejs -v nicht?

                      weil neuere Installationen diesen symlink nicht mehr besitzen.
                      Wenn du ihn nich nach Anleitung erstellt hast, hast du ihn nicht

                      Aus der Doku:

                      In neueren Installationen kann es sein, dass der Befehl nodejs -v eine Fehlermeldung wie “nicht gefunden” erzeugt. Dies ist prinzipiell unbedenklich, da der Befehl nodejs schon länger nicht mehr verwendet wird, kann aber über einen Symlink mit dem Befehl sudo ln -s /usr/bin/node /usr/bin/nodejs "repariert" werden.

                      1 Reply Last reply Reply Quote 0
                      • W
                        worxweis @Jan1 last edited by

                        @jan1 Hallo Jan!

                        armv7l
                        /usr/local/bin/node
                        /usr/local/bin/npm
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @worxweis last edited by Thomas Braun

                          @worxweis

                          nodeJS ist falsch installiert.
                          Schau in meiner Signatur, da steht drin wie es richtig geht.

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

                            @thomas-braun

                            Deine Signatur ist Goldes Wert. Hab jetzt alles entfernt und nodejs neu installiert!
                            Perfekt! Alles funktioniert jetzt wie es soll!

                            Sehr schön beschrieben!

                            Danke!

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

                              @worxweis
                              Kontrolle... 🙂

                              uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                              

                              sagt jetzt?

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              626
                              Online

                              31.7k
                              Users

                              79.8k
                              Topics

                              1.3m
                              Posts

                              6
                              18
                              765
                              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