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.
    • wierer-sigi
      wierer-sigi last edited by

      Hallo,
      versuche Gerate die Adapter im iobroker zu aktualisieren.

      Erst über die Benutzerobfläche aber auch über SSH.

      Aktuelle Versionen:

      pi@raspberrypi4:/home/iobroker/.npm/_logs $ iob update
      Used repository: stable
      hash unchanged, use cached sources
      update done
      Adapter "admin" : 5.3.1 , installed 5.2.3 [Updateable]
      Adapter "backitup" : 2.3.3 , installed 2.2.3 [Updateable]
      Adapter "bmw" : 2.5.1 , installed 2.5.1
      Adapter "discovery" : 2.7.5 , installed 2.7.3 [Updateable]
      Adapter "go-e" : 1.0.18 , installed 1.0.18
      Adapter "javascript" : 5.2.21 , installed 5.2.13 [Updateable]
      Controller "js-controller" : 4.0.15 , installed 3.3.22 [Updateable]
      Adapter "parser" : 1.0.7 , installed 1.0.7
      Adapter "rpi2" : 1.3.1 , installed 1.3.1
      Adapter "shelly" : 4.0.7 , installed 4.1.2
      Adapter "telegram" : 1.11.1 , installed 1.10.0 [Updateable]
      Adapter "whatsapp-cmb" : 0.1.6 , installed 0.1.6
      Adapter "yahka" : 0.13.1 , installed 0.13.1

      beim ausführen des: iob upgrade self
      bekomme ich folgende Fehlermeldung:

      0 verbose cli [
      0 verbose cli   '/usr/local/bin/node',
      0 verbose cli   '/usr/local/bin/npm',
      0 verbose cli   'install',
      0 verbose cli   'iobroker.js-controller@4.0.15',
      0 verbose cli   '--loglevel',
      0 verbose cli   'error',
      0 verbose cli   '--unsafe-perm',
      0 verbose cli   '--prefix',
      0 verbose cli   '/opt/iobroker'
      0 verbose cli ]
      1 info using npm@8.1.2
      2 info using node@v16.13.2
      3 timing npm:load:whichnode Completed in 0ms
      4 timing config:load:defaults Completed in 4ms
      5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms
      6 timing config:load:builtin Completed in 2ms
      7 timing config:load:cli Completed in 6ms
      8 timing config:load:env Completed in 0ms
      9 timing config:load:file:/opt/iobroker/.npmrc Completed in 3ms
      10 timing config:load:project Completed in 3ms
      11 timing config:load:file:/home/iobroker/.npmrc Completed in 1ms
      12 timing config:load:user Completed in 1ms
      13 timing config:load:file:/opt/iobroker/etc/npmrc Completed in 1ms
      14 timing config:load:global Completed in 1ms
      15 timing config:load:validate Completed in 0ms
      16 timing config:load:credentials Completed in 3ms
      17 timing config:load:setEnvs Completed in 2ms
      18 timing config:load Completed in 23ms
      19 timing npm:load:configload Completed in 24ms
      20 timing npm:load:setTitle Completed in 0ms
      21 timing npm:load:setupLog Completed in 1ms
      22 timing config:load:flatten Completed in 7ms
      23 timing npm:load:cleanupLog Completed in 6ms
      24 timing npm:load:configScope Completed in 0ms
      25 timing npm:load:projectScope Completed in 1ms
      26 timing npm:load Completed in 42ms
      27 verbose stack Error: Cannot find module 'asap'
      27 verbose stack Require stack:
      27 verbose stack - /usr/local/lib/node_modules/npm/node_modules/dezalgo/dezalgo.js
      27 verbose stack - /usr/local/lib/node_modules/npm/node_modules/readdir-scoped-modules/readdir.js
      27 verbose stack - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js
      27 verbose stack - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/index.js
      27 verbose stack - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/index.js
      27 verbose stack - /usr/local/lib/node_modules/npm/node_modules/libnpmfund/index.js
      27 verbose stack - /usr/local/lib/node_modules/npm/lib/utils/reify-output.js
      27 verbose stack - /usr/local/lib/node_modules/npm/lib/utils/reify-finish.js
      27 verbose stack - /usr/local/lib/node_modules/npm/lib/install.js
      27 verbose stack - /usr/local/lib/node_modules/npm/lib/npm.js
      27 verbose stack - /usr/local/lib/node_modules/npm/lib/cli.js
      27 verbose stack - /usr/local/lib/node_modules/npm/bin/npm-cli.js
      27 verbose stack     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
      27 verbose stack     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
      27 verbose stack     at Module.require (node:internal/modules/cjs/loader:1005:19)
      27 verbose stack     at require (node:internal/modules/cjs/helpers:102:18)
      27 verbose stack     at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/dezalgo/dezalgo.js:4:12)
      27 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1101:14)
      27 verbose stack     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
      27 verbose stack     at Module.load (node:internal/modules/cjs/loader:981:32)
      27 verbose stack     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
      27 verbose stack     at Module.require (node:internal/modules/cjs/loader:1005:19)
      28 verbose cwd /opt/iobroker
      29 verbose Linux 5.10.92-v7l+
      30 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker.js-controller@4.0.15" "--loglevel" "error">
      31 verbose node v16.13.2
      32 verbose npm  v8.1.2
      33 error code MODULE_NOT_FOUND
      

      Kann bis auf die Meldung: 27 verbose stack Error: Cannot find module 'asap'
      nichts finden

      Habe natürlich auch schon einen:
      Sudo apt-update
      sudo apt-upgrade
      gefahren

      und auch nodejs / NBM de- / installiert.

      Hat jemand noch einen Tipp für mich?

      Danke vorab.
      Sigi

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @wierer-sigi last edited by Thomas Braun

        @wierer-sigi

        NodeJS falsch installiert.
        Schau in meiner Signatur wie es richtig gemacht wird.

        wierer-sigi 1 Reply Last reply Reply Quote 0
        • wierer-sigi
          wierer-sigi @Thomas Braun last edited by

          @thomas-braun sagte in IoBroker lässt kein update zu:

          @wierer-sigi

          NodeJS falsch installiert.
          Schau in meiner Signatur wie es richtig gemacht wird.

          Danke für den Tipp, hat aber leider nicht direkt zum Erfolg geführt.

          Nach ein paar versuchen, habe ich mir nodejs heruntergeladen, entpackt und installiert.

          https://nodejs.org/en/download/

          Gruß
          Sigi

          crunchip Thomas Braun 2 Replies Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @wierer-sigi last edited by

            @wierer-sigi sagte in IoBroker lässt kein update zu:

            hat aber leider nicht direkt zum Erfolg geführt.

            weil?

            @wierer-sigi sagte in IoBroker lässt kein update zu:

            Nach ein paar versuchen, habe ich mir nodejs heruntergeladen, entpackt und installiert.

            und jetzt doppelt vorhanden?

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @wierer-sigi last edited by Thomas Braun

              @wierer-sigi sagte in IoBroker lässt kein update zu:

              Nach ein paar versuchen, habe ich mir nodejs heruntergeladen, entpackt und installiert.

              Und GENAU SO macht man das NICHT unter Linux/Debian.
              Man nutzt seinen Paketmanager. Wie steht in dem HowTo aus meiner Signatur.

              Über die Tour haste dir auch den krummen Kram in

              0 verbose cli   '/usr/local/bin/node',
              0 verbose cli   '/usr/local/bin/npm',
              

              eingehandelt.

              1 Reply Last reply Reply Quote 0
              • 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

                                        861
                                        Online

                                        31.7k
                                        Users

                                        79.7k
                                        Topics

                                        1.3m
                                        Posts

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