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.
    • 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

                              829
                              Online

                              32.1k
                              Users

                              80.7k
                              Topics

                              1.3m
                              Posts

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