Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. gelöst: Admin läßt sich nicht auf 6.2.20 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

    gelöst: Admin läßt sich nicht auf 6.2.20 updaten

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nic f. last edited by nic f.

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Pi4
      Arbeitsspeicher: 8GB
      Festplattenart: SD-Karte 32 GB
      Betriebssystem: Raspbian
      Node-Version: v16.17.0
      Nodejs-Version: v16.17.0
      NPM-Version: 8.15.0
      Installationsart: Skript/Manuell
      Image genutzt: Ja/Nein
      Ort/Name der Imagedatei: Link

      Hallo Zusammen,
      ich wollte von Admin 6.2.19 auf 6.2.20 über den Admin-Adapter updaten. Das hat nicht geklappt und hat irgendwas kaputt gemacht. Ich habe dann über die Konsole die Version 6.2.15 installiert und musste aber den Admin-Adapter manuell starten.

      Grundsätzlich läuft er jetzt, aber er läßt sich nicht updaten, weder über Console noch über den Admin Adapter. Er bringt folgende Fehler im LOG. (gleicher Fehler, wenn ich gleich auf 6.2.20 gehe).

      2022-09-04 14:47:20.142  - info: host.raspberrypi iobroker Update admin from @6.2.15 to @6.2.19
      2022-09-04 14:47:20.225  - info: host.raspberrypi iobroker host.raspberrypi Adapter "system.adapter.admin.0" is stopped.
      2022-09-04 14:47:20.308  - info: admin.0 (21173) Adapter is disabled => stop
      2022-09-04 14:47:20.310  - info: admin.0 (21173) terminating http server on port 8081
      2022-09-04 14:47:20.333  - info: host.raspberrypi "system.adapter.admin.0" disabled
      2022-09-04 14:47:20.335  - info: host.raspberrypi stopInstance system.adapter.admin.0 (force=false, process=true)
      2022-09-04 14:47:20.359  - info: admin.0 (21173) Got terminate signal TERMINATE_YOURSELF
      2022-09-04 14:47:20.364  - info: admin.0 (21173) terminating
      2022-09-04 14:47:20.368  - info: host.raspberrypi stopInstance system.adapter.admin.0 send kill signal
      2022-09-04 14:47:20.368  - info: admin.0 (21173) Terminated (NO_ERROR): Without reason
      2022-09-04 14:47:21.085  - info: host.raspberrypi instance system.adapter.admin.0 terminated with code 0 (NO_ERROR)
      2022-09-04 14:47:22.380  - info: host.raspberrypi iobroker NPM version: 8.15.0
      2022-09-04 14:47:22.390  - info: host.raspberrypi iobroker Installing iobroker.admin@6.2.19... (System call)
      2022-09-04 14:47:34.453  - info: host.raspberrypi iobroker npm ERR! code ENOTEMPTY
      2022-09-04 14:47:34.457  - info: host.raspberrypi iobroker npm ERR! syscall rename
      2022-09-04 14:47:34.460  - info: host.raspberrypi iobroker npm ERR! path /opt/iobroker/node_modules/iobroker.adminnpm ERR! dest /opt/iobroker/node_modules/.iobroker.admin-TtUA2igknpm ERR! errno -39
      2022-09-04 14:47:34.476  - info: host.raspberrypi iobroker npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.admin' -> '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk'npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2022-09-04T12_47_24_104Z-debug-0.log
      2022-09-04 14:47:34.517  - error: host.raspberrypi iobroker host.raspberrypi Cannot install iobroker.admin@6.2.19: 217
      2022-09-04 14:47:35.555  - info: host.raspberrypi iobroker exit 25
      

      Ich hab mir dann /home/iobroker/.npm/_logs/2022-09-04T12_47_24_104Z-debug-0.log auch angeschaut. Aber da stehen nicht wirklich mehr Infos.

      0 verbose cli /usr/bin/node /usr/bin/npm
      1 info using npm@8.15.0
      2 info using node@v16.17.0
      3 timing npm:load:whichnode Completed in 0ms
      4 timing config:load:defaults Completed in 8ms
      5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 3ms
      6 timing config:load:builtin Completed in 5ms
      7 timing config:load:cli Completed in 11ms
      8 timing config:load:env Completed in 1ms
      9 timing config:load:file:/opt/iobroker/.npmrc Completed in 3ms
      10 timing config:load:project Completed in 6ms
      11 timing config:load:file:/home/iobroker/.npmrc Completed in 0ms
      12 timing config:load:user Completed in 1ms
      13 timing config:load:file:/usr/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 2ms
      17 timing config:load:setEnvs Completed in 2ms
      18 timing config:load Completed in 42ms
      19 timing npm:load:configload Completed in 42ms
      20 timing npm:load:mkdirpcache Completed in 2ms
      21 timing npm:load:mkdirplogs Completed in 1ms
      22 verbose title npm install iobroker.admin@6.2.19
      23 verbose argv "install" "--save-exact" "iobroker.admin@6.2.19"
      24 timing npm:load:setTitle Completed in 4ms
      25 timing config:load:flatten Completed in 18ms
      26 timing npm:load:display Completed in 21ms
      27 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs
      28 verbose logfile /home/iobroker/.npm/_logs/2022-09-04T12_47_24_104Z-debug-0.log
      29 timing npm:load:logFile Completed in 22ms
      30 timing npm:load:timers Completed in 0ms
      31 timing npm:load:configScope Completed in 1ms
      32 timing npm:load Completed in 98ms
      33 timing arborist:ctor Completed in 3ms
      34 silly logfile start cleaning logs, removing 6 files
      35 silly logfile done cleaning log files
      36 timing idealTree:init Completed in 4756ms
      37 timing idealTree:userRequests Completed in 50ms
      38 silly idealTree buildDeps
      39 silly fetch manifest iobroker.admin@6.2.19
      40 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules/iobroker.js-controller
      41 http fetch GET 200 https://registry.npmjs.org/iobroker.admin 3249ms (cache hit)
      42 silly placeDep ROOT iobroker.admin@6.2.19 REPLACE for: iobroker.inst@3.0.0 want: 6.2.19
      43 silly fetch manifest @iobroker/socket-classes@^0.5.3
      44 http fetch GET 200 https://registry.npmjs.org/@iobroker%2fsocket-classes 1435ms (cache hit)
      45 timing idealTree:#root Completed in 4779ms
      46 silly placeDep ROOT @iobroker/socket-classes@0.5.3 OK for: iobroker.admin@6.2.19 want: ^0.5.3
      47 silly fetch manifest passport@^0.6.0
      48 silly fetch manifest axios@^0.27.2
      49 http fetch GET 200 https://registry.npmjs.org/passport 24ms (cache hit)
      50 http fetch GET 200 https://registry.npmjs.org/axios 27ms (cache hit)
      51 timing idealTree:node_modules/iobroker.admin Completed in 40ms
      52 silly placeDep node_modules/@iobroker/socket-classes axios@0.27.2 OK for: @iobroker/socket-classes@0.5.3 want: ^0.27.2
      53 silly placeDep node_modules/@iobroker/socket-classes passport@0.6.0 OK for: @iobroker/socket-classes@0.5.3 want: ^0.6.0
      54 silly fetch manifest form-data@^4.0.0
      55 http fetch GET 200 https://registry.npmjs.org/form-data 12ms (cache hit)
      56 timing idealTree:node_modules/@iobroker/socket-classes Completed in 23ms
      57 silly placeDep node_modules/@iobroker/socket-classes form-data@4.0.0 OK for: axios@0.27.2 want: ^4.0.0
      58 timing idealTree:node_modules/@iobroker/socket-classes/node_modules/axios Completed in 5ms
      59 timing idealTree:node_modules/@iobroker/socket-classes/node_modules/form-data Completed in 0ms
      60 timing idealTree:node_modules/@iobroker/socket-classes/node_modules/passport Completed in 0ms
      61 timing idealTree:buildDeps Completed in 4854ms
      62 timing idealTree:fixDepFlags Completed in 32ms
      63 timing idealTree Completed in 9745ms
      64 timing reify:loadTrees Completed in 9748ms
      65 timing reify:diffTrees Completed in 106ms
      66 silly reify mark retired [ '/opt/iobroker/node_modules/iobroker.admin' ]
      67 silly reify mark retired [ '/opt/iobroker/node_modules/@iobroker/socket-classes' ]
      68 silly reify moves {
      68 silly reify   '/opt/iobroker/node_modules/iobroker.admin': '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk',
      68 silly reify   '/opt/iobroker/node_modules/@iobroker/socket-classes': '/opt/iobroker/node_modules/@iobroker/.socket-classes-bdAChYMK'
      68 silly reify }
      69 timing reify:rollback:retireShallow Completed in 1ms
      70 timing command:install Completed in 9924ms
      71 verbose stack Error: ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.admin' -> '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk'
      72 verbose cwd /opt/iobroker
      73 verbose Linux 5.10.103-v7l+
      74 verbose node v16.17.0
      75 verbose npm  v8.15.0
      76 error code ENOTEMPTY
      77 error syscall rename
      78 error path /opt/iobroker/node_modules/iobroker.admin
      79 error dest /opt/iobroker/node_modules/.iobroker.admin-TtUA2igk
      80 error errno -39
      81 error ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.admin' -> '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk'
      82 verbose exit -39
      83 timing npm Completed in 10359ms
      84 verbose unfinished npm timer reify 1662295644522
      85 verbose unfinished npm timer reify:retireShallow 1662295654419
      86 verbose code -39
      87 error A complete log of this run can be found in:
      87 error     /home/iobroker/.npm/_logs/2022-09-04T12_47_24_104Z-debug-0.log
      

      Jemand eine Idee wie ich das repariert bekomme?

      Danke und Gruß

      mickym Thomas Braun 2 Replies Last reply Reply Quote 1
      • mickym
        mickym Most Active @nic f. last edited by mickym

        @nic-f sagte in Admin läßt sich nicht auf 6.2.20 updaten:

        rename '/opt/iobroker/node_modules/iobroker.admin' -> '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk'

        Hast Du denn die Anweisungen aus dem Protokoll befolgt?

        81 error ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.admin' -> '/opt/iobroker/node_modules/.iobroker.admin-TtUA2igk'
        
        N 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @nic f. last edited by

          @nic-f

          https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

          Und auch mal über das System schauen:

          iob stop
          sudo apt update
          sudo apt full-upgrade
          sudo reboot
          
          N 1 Reply Last reply Reply Quote 0
          • N
            nic f. @mickym last edited by

            @mickym hi, ja das habe ich gemacht, sonst hätte ich den Downgrade gar nicht hinbekommen. Beim Update auf 6.2.20 bringt er die Meldung wieder (wenn ich das mache, vermut ich es geht). Aber es ist ja nicht normal, dass ich erst die Verzeichnisse manuell umbenennen muss?

            Thomas Braun mickym 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @nic f. last edited by

              @nic-f

              Wie bist du da unterwegs:

              sudo ln -s /usr/bin/node /usr/bin/nodejs
              uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              
              1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active @nic f. last edited by mickym

                @nic-f sagte in Admin läßt sich nicht auf 6.2.20 updaten:

                @mickym hi, ja das habe ich gemacht, sonst hätte ich den Downgrade gar nicht hinbekommen. Beim Update auf 6.2.20 bringt er die Meldung wieder (wenn ich das mache, vermut ich es geht). Aber es ist ja nicht normal, dass ich erst die Verzeichnisse manuell umbenennen muss?

                @nic-f Ich halt mich da raus - weil ich mein System mal komplett sauber gemacht habe und das ganze node_modules Verzeichnis neu aufbauen lies. Aber das ist wohl nicht die empfohlene Methode - deswegen gebe ich den Support wieder vertrauensvoll an @Thomas-Braun zurück, der ja bereits ein Auge darauf hat.

                1 Reply Last reply Reply Quote 0
                • N
                  nic f. @Thomas Braun last edited by

                  @thomas-braun Super! das Thema aus dem Post war genau die Lösung. Habe ich bei der Suche leider nicht gefunden. Danke für die schnelle Hilfe!

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @nic f. last edited by

                    @nic-f

                    Und was macht der Rest?

                    sudo apt update
                    sudo apt full-upgrade
                    sudo ln -s /usr/bin/node /usr/bin/nodejs
                    uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                    
                    System 9 1 Reply Last reply Reply Quote 0
                    • System 9
                      System 9 @Thomas Braun last edited by

                      @thomas-braun

                      hab leider das gleiche Problem.
                      Admin lässt sich nicht installieren (hab es irgendwie geschaft ihn zu löschen)

                      metti@homeautomatik:/home/iobroker/.npm/_logs$ iobroker upgrade admin@6.2.13 --debug
                      
                      This upgrade of "admin" will at least introduce the following changes:
                      ==========================================================================
                      -> 6.2.13:
                      Corrected JSON config
                      ==========================================================================
                      
                      BE CAREFUL: THIS IS A MAJOR UPGRADE, WHICH WILL MOST LIKELY INTRODUCE BREAKING CHANGES!
                      Would you like to upgrade admin from @0.0.0 to @6.2.13 now? [(y)es, (n)o]: y
                      Update admin from @0.0.0 to @6.2.13
                      NPM version: 8.15.0
                      Installing iobroker.admin@6.2.13... (System call)
                      npm ERR! code ENOTEMPTY
                      npm ERR! syscall rename
                      npm ERR! path /opt/iobroker/node_modules/destroy
                      npm ERR! dest /opt/iobroker/node_modules/.destroy-ZfJpRRrp
                      npm ERR! errno -39
                      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/destroy' -> '/opt/iobroker/node_modules/.destroy-ZfJpRRrp'
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/iobroker/.npm/_logs/2022-09-06T17_50_17_948Z-debug-0.log
                      host.homeautomatik Cannot install iobroker.admin@6.2.13: 217
                      

                      Nun fange ich an wild verzeinisse umzubennen, ständig es es ein anderes

                      pm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/destroy' -> '/opt/iobroker/node_modules/.destroy-ZfJpRRrp'
                      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/depd' -> '/opt/iobroker/node_modules/.depd-6oV4UsPU'
                      
                      metti@homeautomatik:/home/iobroker/.npm/_logs$ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                      /usr/bin/nodejs
                      /usr/bin/node
                      /usr/bin/npm
                      v16.17.0
                      v16.17.0
                      8.15.0
                      nodejs:
                        Installed: 16.17.0-1nodesource1
                        Candidate: 16.17.0-1nodesource1
                        Version table:
                       *** 16.17.0-1nodesource1 500
                              500 https://deb.nodesource.com/node_16.x bionic/main amd64 Packages
                              100 /var/lib/dpkg/status
                           8.10.0~dfsg-2ubuntu0.4 500
                              500 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
                           8.10.0~dfsg-2ubuntu0.2 500
                              500 http://de.archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
                           8.10.0~dfsg-2 500
                              500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @System 9 last edited by

                        @system-9

                        https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

                        1 Reply Last reply Reply Quote 0
                        • System 9
                          System 9 last edited by

                          @thomas-braun

                          metti@homeautomatik:/opt/iobroker/node_modules$ for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
                          metti@homeautomatik:/opt/iobroker/node_modules$ 
                          

                          Spuckt er nichts aus.

                          der NMP tree ist auch nicht sauber 😕

                          ├── UNMET DEPENDENCY iobroker.admin@6.2.13
                          

                          .

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

                            @system-9 sagte in gelöst: Admin läßt sich nicht auf 6.2.20 updaten:

                            Spuckt er nichts aus.

                            Das ist gut. Dann hat er getan was er tun soll.

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

                              @system-9

                              iobroker status
                              iobroker list adapters
                              iobroker list instances
                              
                              System 9 1 Reply Last reply Reply Quote 0
                              • System 9
                                System 9 @Thomas Braun last edited by

                                @thomas-braun
                                ein traum, adapter nochmal installiert, nun läufts xD

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                864
                                Online

                                31.9k
                                Users

                                80.1k
                                Topics

                                1.3m
                                Posts

                                4
                                14
                                876
                                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