Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] Adapter lassen sich nicht updaten/installieren

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    [gelöst] Adapter lassen sich nicht updaten/installieren

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

      Hallo Forum,

      ich nutze den IOB schon seit Jahren und konnte mir eigentlich immer selber helfen. Jetzt stehe ich aber vor einem Problem, zu dem ich nicht wirklich was finden kann.

      Ja, es gibt ähnlich Threads (https://forum.iobroker.net/topic/57337/fehler-25-217-oder-enotempty-bei-adapter-install-update), aber die haben leider nicht geholfen. Ich kann weder Adapter installieren noch updaten, der Fehler ist identisch:

      /opt/iobroker# iobroker upgrade web --debug
      
      This upgrade of "web" will introduce the following changes:
      ==========================================================================
      -> 6.2.3:
      update websocket library to increase maximum file size from 100 MB to 500 MB
      
      -> 6.2.2:
      Corrected the crash if authentication is enabled
      
      -> 6.2.1:
      Added the user access list option
      ==========================================================================
      
      Would you like to upgrade web from @6.1.10 to @6.2.3 now? [(y)es, (n)o]: y
      Update web from @6.1.10 to @6.2.3
      host.iobroker01 Adapter "system.adapter.web.0" is stopped.
      NPM version: 10.2.3
      Installing iobroker.web@6.2.3... (System call)
      npm ERR! code 1
      npm ERR! The git reference could not be found
      npm ERR! command git --no-replace-objects checkout dev
      npm ERR! error: pathspec 'dev' did not match any file(s) known to git
      
      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-02T15_07_31_504Z-debug-0.log
      npm ERR! code 1
      npm ERR! The git reference could not be found
      npm ERR! command git --no-replace-objects checkout dev
      npm ERR! error: pathspec 'dev' did not match any file(s) known to git
      
      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-02T15_07_31_504Z-debug-0.log
      host.iobroker01 Cannot install iobroker.web@6.2.3: 1
      

      Platz auf der Platte ist genug, npm (v10.2.3) und nodejs (v18.19.0) habe ich schon einmal neu installiert, den Fixer hab ich schon mehrfach drüber laufen lassen.

      Ich sehe auch, dass er eine Verbindung aufbaut:

      tcp        0      0 192.168.xx.yy:51094     140.82.121.9:443        ESTABLISHED 1000       30074      2234/npm install
      tcp        0      0 192.168.xx.yy:53730     140.82.121.9:443        ESTABLISHED 1000       29624      2211/npm install io
      

      Dann dauerts etwa 1 Minute bis er abbricht.

      Was könnte ich hier noch prüfen, wo kommt "dev" als pathspec her und in was muss das ggf geändert werden?
      Geändert habe ich am ioBroker selber nichts, auf dem gleichen Host läuft noch eine influxDB, die habe ich von v1 auf V2 aktualisiert, kann aber nicht sagen, ob das Problem erst damit entstanden ist.

      Das Log ist leider auch nicht sehr aussagekräftig:

      0 verbose cli /usr/bin/node /usr/bin/npm
      1 info using npm@10.2.3
      2 info using node@v18.19.0
      3 timing npm:load:whichnode Completed in 1ms
      4 timing config:load:defaults Completed in 2ms
      5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
      6 timing config:load:builtin Completed in 1ms
      7 timing config:load:cli Completed in 5ms
      8 timing config:load:env Completed in 1ms
      9 timing config:load:file:/home/iobroker/.npm/_cacache/tmp/git-clonegpfXaZ/.npmrc Completed in 0ms
      10 timing config:load:project Completed in 7ms
      11 timing config:load:file:/home/iobroker/.npmrc Completed in 0ms
      12 timing config:load:user Completed in 0ms
      13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
      14 timing config:load:global Completed in 1ms
      15 timing config:load:setEnvs Completed in 0ms
      16 timing config:load Completed in 17ms
      17 timing npm:load:configload Completed in 17ms
      18 timing config:load:flatten Completed in 2ms
      19 timing npm:load:mkdirpcache Completed in 1ms
      20 timing npm:load:mkdirplogs Completed in 0ms
      21 verbose title npm run build
      22 verbose argv "run" "build"
      23 timing npm:load:setTitle Completed in 1ms
      24 timing npm:load:display Completed in 0ms
      25 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs/2024-02-02T15_32_49_323Z-
      26 verbose logfile /home/iobroker/.npm/_logs/2024-02-02T15_32_49_323Z-debug-0.log
      27 timing npm:load:logFile Completed in 8ms
      28 timing npm:load:timers Completed in 0ms
      29 timing npm:load:configScope Completed in 0ms
      30 warn using --force Recommended protections disabled.
      31 timing npm:load Completed in 45ms
      32 silly logfile start cleaning logs, removing 1 files
      33 silly logfile done cleaning log files
      34 timing command:run Completed in 7931ms
      35 verbose exit 0
      36 timing npm Completed in 8035ms
      37 info ok
      
      Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @KoMa666 last edited by

        @koma666 poste mal die full version v8n iob diag in code-tags.

        das einzige interessante was ich sehe ist

        @koma666 sagte in Adapter lassen sich nicht updaten/installieren:

        The git reference could not be found

        was immer das bedeutet.

        @koma666 sagte in Adapter lassen sich nicht updaten/installieren:

        , es gibt ähnlich Threads (https://forum.iobroker.net/topic/57337/fehler-25-217-oder-enotempty-bei-adapter-install-update), aber die haben leider nicht geholfen

        das ist auch ein anderes Fehlerbild

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

          @koma666

          Versuch es mal ordentlich als User und nicht als root.

          Und schau dir

          iob diag 
          

          an. Ich vermute da steht was drin.

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

            @thomas-braun
            als "User" kommt noch, der Host muss eh neu aufgesetzt werden und dann fliegt da auch die influxDB und grafana runter. Aber bis dahin würde ich das System gerne weiter updaten können. An sich laufen tut es ja, es ist nur das Updaten/Installieren von github.

            ======================= SUMMARY =======================
                                    v.2023-10-10
            
            
               Static hostname: iobroker01
                     Icon name: computer-vm
                       Chassis: vm
                Virtualization: vmware
              Operating System: Debian GNU/Linux 10 (buster)
                        Kernel: Linux 4.19.0-26-amd64
                  Architecture: x86-64
            
            Installation:           vmware
            Kernel:                 x86_64
            Userland:               amd64
            Timezone:               Europe/Berlin (CET, +0100)
            User-ID:                1001
            X-Server:               false
            Boot Target:            graphical.target
            
            Pending OS-Updates:     0
            Pending iob updates:    2
            
            Nodejs-Installation:    /usr/bin/nodejs         v18.19.0
                                    /usr/bin/node           v18.19.0
                                    /usr/bin/npm            10.2.3
                                    /usr/bin/npx            10.2.3
                                    /usr/bin/corepack       0.22.0
            
            Recommended versions are nodejs 18.19.0 and npm 10.2.3
            Your nodejs installation is correct
            
            MEMORY: 
                          total        used        free      shared  buff/cache   available
            Mem:           3.9G        2.2G        708M        1.0M        1.1G        1.5G
            Swap:          4.1G        262M        3.8G
            Total:         8.0G        2.4G        4.5G
            
            Active iob-Instances:   23
            Active repo(s): Stable (default)
            
            ioBroker Core:          js-controller           5.0.17
                                    admin                   6.12.0
            
            ioBroker Status:        iobroker is running on this host.
            
            
            Objects type: jsonl
            States  type: jsonl
            
            Status admin and web instance:
            + system.adapter.admin.0                  : admin                 : iobroker01                               -  enabled, port: 8081, bind: 127.0.0.1 (SSL), run as: admin
            + system.adapter.web.0                    : web                   : iobroker01                               -  enabled, port: 8082, bind: 0.0.0.0 (SSL), run as: admin
            
            Objects:                9309
            States:                 7991
            
            Size of iob-Database:
            
            67M     /opt/iobroker/iobroker-data/objects.jsonl
            13M     /opt/iobroker/iobroker-data/states.jsonl
            
            
            
            =================== END OF SUMMARY ====================
            

            Es sieht mir auch nach einem "Fehler" im NPM aus, alles andere sieht (für mich) gut aus und diese Fehler betreffen nur "manuell installierte" Adapter, haben aber eben auch Auswirkungen auf andere beim Update/Install:

            Temp directories causing npm8 problem: 0
            No problems detected
            
            Errors in npm tree:
            npm ERR! code ELSPROBLEMS
            npm ERR! extraneous: https@1.0.0 /opt/iobroker/node_modules/https
            npm ERR! invalid: iobroker.elgato-key-light@0.2.0 /opt/iobroker/node_modules/iobroker.elgato-key-light
            npm ERR! invalid: iobroker.husqvarna-automower@0.4.0 /opt/iobroker/node_modules/iobroker.husqvarna-automower
            npm ERR! invalid: iobroker.plenticore@2.3.2 /opt/iobroker/node_modules/iobroker.plenticore
            npm ERR! invalid: iobroker.roborock@0.5.1 /opt/iobroker/node_modules/iobroker.roborock
            npm ERR! invalid: xmlbuilder@0.4.2 /opt/iobroker/node_modules/homematic-xmlrpc/node_modules/xmlbuilder
            
            npm ERR! Log files were not written due to an error writing to the directory: /home/marco/.npm/_logs
            npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
            
            *** ioBroker-Installation ***
            
            ioBroker Status
            iobroker is running on this host.
            
            
            Objects type: jsonl
            States  type: jsonl
            
            Core adapters versions
            js-controller:  5.0.17
            admin:          6.12.0
            javascript:     7.1.6
            
            npm ERR! code ELSPROBLEMS
            npm ERR! extraneous: https@1.0.0 /opt/iobroker/node_modules/https
            npm ERR! invalid: iobroker.elgato-key-light@0.2.0 /opt/iobroker/node_modules/iobroker.elgato-key-light
            npm ERR! invalid: iobroker.husqvarna-automower@0.4.0 /opt/iobroker/node_modules/iobroker.husqvarna-automower
            npm ERR! invalid: iobroker.plenticore@2.3.2 /opt/iobroker/node_modules/iobroker.plenticore
            npm ERR! invalid: iobroker.roborock@0.5.1 /opt/iobroker/node_modules/iobroker.roborock
            
            npm ERR! Log files were not written due to an error writing to the directory: /home/marco/.npm/_logs
            npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
            Adapters from github:   4
            

            und

            root@iobroker01:/opt/iobroker# npm list --loglevel=verbose
            npm verb cli /usr/bin/node /usr/bin/npm
            npm info using npm@10.2.3
            npm info using node@v18.19.0
            npm verb title npm list
            npm verb argv "list" "--loglevel" "verbose"
            npm verb logfile logs-max:10 dir:/home/iobroker/.npm/_logs/2024-02-02T16_06_36_391Z-
            npm verb logfile /home/iobroker/.npm/_logs/2024-02-02T16_06_36_391Z-debug-0.log
            npm verb stack Error: extraneous: https@1.0.0 /opt/iobroker/node_modules/https
            npm verb stack invalid: iobroker.elgato-key-light@0.2.0 /opt/iobroker/node_modules/iobroker.elgato-key-light
            npm verb stack invalid: iobroker.husqvarna-automower@0.4.0 /opt/iobroker/node_modules/iobroker.husqvarna-automower
            npm verb stack invalid: iobroker.plenticore@2.3.2 /opt/iobroker/node_modules/iobroker.plenticore
            npm verb stack invalid: iobroker.roborock@0.5.1 /opt/iobroker/node_modules/iobroker.roborock
            npm verb stack     at LS.exec (/usr/lib/node_modules/npm/lib/commands/ls.js:203:9)
            npm verb stack     at async module.exports (/usr/lib/node_modules/npm/lib/cli-entry.js:61:5)
            npm verb cwd /opt/iobroker
            npm verb Linux 4.19.0-26-amd64
            npm verb node v18.19.0
            npm verb npm  v10.2.3
            npm ERR! code ELSPROBLEMS
            npm ERR! extraneous: https@1.0.0 /opt/iobroker/node_modules/https
            npm ERR! invalid: iobroker.elgato-key-light@0.2.0 /opt/iobroker/node_modules/iobroker.elgato-key-light
            npm ERR! invalid: iobroker.husqvarna-automower@0.4.0 /opt/iobroker/node_modules/iobroker.husqvarna-automower
            npm ERR! invalid: iobroker.plenticore@2.3.2 /opt/iobroker/node_modules/iobroker.plenticore
            npm ERR! invalid: iobroker.roborock@0.5.1 /opt/iobroker/node_modules/iobroker.roborock
            iobroker.inst@2.0.3 /opt/iobroker
            ├── colors@1.4.0
            ├── fs-extra@7.0.1
            ├── https@1.0.0 extraneous
            ├── iobroker.admin@6.12.0
            ├── iobroker.backitup@2.9.8
            ├── iobroker.daikin@1.4.2
            ├── iobroker.dwd@2.8.5
            ├── iobroker.elgato-key-light@0.2.0 invalid: "github:xXBJXx/ioBroker.elgato-key-light#43315a3a6059ddea5c83e4583205195bcc4a6816" from the root project
            ├── iobroker.hm-rega@4.0.0
            ├── iobroker.hm-rpc@1.16.0
            ├── iobroker.husqvarna-automower@0.4.0 invalid: "github:ice987987/ioBroker.husqvarna-automower#78eebd11f89260ba344fda484aa87f2de678ffd3" from the root project
            ├── iobroker.ical@1.13.3
            ├── iobroker.influxdb@3.2.0
            ├── iobroker.javascript@7.1.6
            ├── iobroker.js-controller@5.0.17
            ├── iobroker.mbus@2.6.1
            ├── iobroker.modbus@6.1.0
            ├── iobroker.phantomjs@1.1.3
            ├── iobroker.plenticore@2.3.2 invalid: "github:StrathCole/ioBroker.plenticore#master" from the root project
            ├── iobroker.pushover@3.0.6
            ├── iobroker.roborock@0.5.1 invalid: "github:copystring/ioBroker.roborock#dev" from the root project
            ├── iobroker.simple-api@2.7.2
            ├── iobroker.smartmeter@3.4.0
            ├── iobroker.socketio@6.6.0
            ├── iobroker.vis-inventwo@3.3.3
            ├── iobroker.vis-timeandweather@1.2.2
            ├── iobroker.vis@1.5.4
            ├── iobroker.web@6.1.10
            ├── iobroker.ws@2.5.10
            ├── iobroker@2.0.3
            ├── semver@5.7.2
            └── yargs@7.1.2
            
            npm verb exit 1
            npm verb code 1
            
            npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-02T16_06_36_391Z-debug-0.log
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @KoMa666 last edited by

              @koma666 sagte in Adapter lassen sich nicht updaten/installieren:

              als "User" kommt noch

              Dann mach das als erstes...

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

                @thomas-braun Hehe ... leichter gesagt als getan. Ich habe einen anderen User drauf den ich nutzen kann, und der IOB läuft ja unter "iobroker". Aber frisch aufsetzen geht zeitlich grad nicht.

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

                  @koma666 sagte in Adapter lassen sich nicht updaten/installieren:

                  Ich habe einen anderen User drauf den ich nutzen kann, und der IOB läuft ja unter "iobroker"

                  Dann verwende den...

                  Hier wird es primär klemmen:

                  npm ERR! invalid: iobroker.elgato-key-light@0.2.0 /opt/iobroker/node_modules/iobroker.elgato-key-light
                  npm ERR! invalid: iobroker.husqvarna-automower@0.4.0 /opt/iobroker/node_modules/iobroker.husqvarna-automower
                  npm ERR! invalid: iobroker.plenticore@2.3.2 /opt/iobroker/node_modules/iobroker.plenticore
                  npm ERR! invalid: iobroker.roborock@0.5.1 /opt/iobroker/node_modules/iobroker.roboroc
                  

                  Die sind vermutlich alle vier aus dem GitHub geangelt, oder?

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

                    @thomas-braun
                    Richtig. Allerdings lässt sich ja auch WEB oder ADMIN nicht aktualisieren.

                    Die Frage ist, wo bekommt er die Info her:

                    npm ERR! The git reference could not be found
                    npm ERR! command git --no-replace-objects checkout dev
                    npm ERR! error: pathspec 'dev' did not match any file(s) known to git
                    

                    Ich hab die packages-lock schon gelöscht, ohne Erfolg.

                    Thomas Braun 2 Replies Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @KoMa666 last edited by

                      @koma666

                      Der ist wohl der 'Übeltäter':

                      iobroker.roborock@0.5.1 invalid: "github:copystring/ioBroker.roborock#dev" from the root project

                      Installier den nochmal drüber:

                      iobroker url copystring/ioBroker.roborock --host iobroker01 --debug
                      
                      K 1 Reply Last reply Reply Quote 0
                      • K
                        KoMa666 @Thomas Braun last edited by

                        @thomas-braun
                        Da hat sich das Editieren überschnitten ...

                        Der war es ... na Klasse. Den nutze ich nichtmal mehr und den DEV - Tree hatte ich nur mal zum Testen drin ...
                        Ich hab ihn deinstalliert und das Updaten klappt nun auch wieder.

                        Vielen Dank!

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

                          @koma666

                          Warum fischst du den Adapter aus dem GitHub?

                          roborock
                          github:	0.5.4
                          latest:	0.5.4 for 0 days
                          stable:	0.4.4 for 4 months
                          

                          Der ist doch über reguläre Repos verfügbar.

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

                            @thomas-braun
                            Weil der Sauger mit dem regulären Paket Fehler hatte. Da hatten wir getestet und deshalb DEV ...

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

                              @koma666

                              Dann kannst du ja jetzt dein Betriebssytem in die Gegenwart holen.

                              Debian GNU/Linux 10 (buster)

                              ist tot.

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

                                @thomas-braun
                                Ich weiß ... hab schon die ersten einfachen Systeme auf Debian 12 ... aber hier hängen soooo viele Abhängigkeiten dran. Noch 2 VMs, dann ist dieser Host dran 😉

                                Danke Dir nochmal!

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate
                                FAQ Cloud / IOT
                                HowTo: Node.js-Update
                                HowTo: Backup/Restore
                                Downloads
                                BLOG

                                869
                                Online

                                32.1k
                                Users

                                80.7k
                                Topics

                                1.3m
                                Posts

                                3
                                14
                                699
                                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