Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

    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

    npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      djsirius @Thomas Braun last edited by

      @thomas-braun
      uodates sind gemacht. iobroker start bringt nichts.

      iobroker@debian:~$ iobroker start
      iobroker@debian:~$ iob status
      iobroker is not running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @djsirius last edited by Thomas Braun

        @djsirius

        iob logs
        

        sagt?

        Du bist aber auch etwas OffTopic hier.

        D 1 Reply Last reply Reply Quote 0
        • D
          djsirius @Thomas Braun last edited by

          @thomas-braun said in npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich:

          iob logs

          iobroker@debian:~$ iob logs
          Uncaught Rejection: Error: Cannot find module 'moment'
          Require stack:
          - /opt/iobroker/node_modules/file-stream-rotator/FileStreamRotator.js
          - /opt/iobroker/node_modules/winston-daily-rotate-file/daily-rotate-file.js
          - /opt/iobroker/node_modules/winston-daily-rotate-file/index.js
          - /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/logger.js
          - /opt/iobroker/node_modules/@iobroker/js-controller-common/index.js
          - /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js
          - /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js
              at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
              at Function.Module._load (node:internal/modules/cjs/loader:833:27)
              at Module.require (node:internal/modules/cjs/loader:1057:19)
              at require (node:internal/modules/cjs/helpers:103:18)
              at Object.<anonymous> (/opt/iobroker/node_modules/file-stream-rotator/FileStreamRotator.js:15:14)
              at Module._compile (node:internal/modules/cjs/loader:1155:14)
              at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
              at Module.load (node:internal/modules/cjs/loader:1033:32)
              at Function.Module._load (node:internal/modules/cjs/loader:868:12)
              at Module.require (node:internal/modules/cjs/loader:1057:19)
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @djsirius last edited by

            @djsirius

            cd /opt/iobroker
            sudo -H -u iobroker npm install iobroker.js-controller
            
            D 1 Reply Last reply Reply Quote 0
            • D
              djsirius @Thomas Braun last edited by

              @thomas-braun said in npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich:

              sudo -H -u iobroker npm install iobroker.js-controller

              iobroker@debian:~$ cd /opt/iobroker
              iobroker@debian:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-contr                                                                                                                               oller
              npm ERR! code ENOTEMPTY
              npm ERR! syscall rename
              npm ERR! path /opt/iobroker/node_modules/iobroker.admin
              npm ERR! dest /opt/iobroker/node_modules/.iobroker.admin-TtUA2igk
              npm ERR! errno -39
              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-11-03T12_22_25_791Z-debug-0.log
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @djsirius last edited by

                @djsirius sagte in npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich:

                ENOTEMPTY:

                Kennst du ja schon:

                for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done 
                
                D 1 Reply Last reply Reply Quote 0
                • D
                  djsirius @Thomas Braun last edited by

                  @thomas-braun Vielen Dank!

                  Aber warum habe ich so oft diese Probleme?

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

                    @djsirius sagte in npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich:

                    Aber warum habe ich so oft diese Probleme?

                    Das weiß ich nicht.
                    Ich hab das hier nie auf meinen Systemen. Und da ist eins dabei, das wird andauernd mit 'wilden Beta/Alpha-Versionen' beackert.

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

                      @thomas-braun
                      Hallo zusammen,
                      ich traue mich schon fast gar nicht nachzufragen, weil ich vermutlich auch Murks gemacht habe. Ich kenne mich echt wenig aus und mein ganzes Wissen habe ich nur aus solchen Foren.
                      Zu meinem Problem: Auch ich kann keine Adapter installieren und upgraden.
                      Genau bei dem punkt habe ich folgende Ausgabe:
                      pi@raspberrypi:~ $ iobroker update -i
                      Used repository: stable
                      Objects database error: write EPIPE
                      Objects database error: connect ECONNREFUSED 127.0.0.1:9001
                      States database error: connect ECONNREFUSED 127.0.0.1:9000
                      States database error: connect ECONNREFUSED 127.0.0.1:9000
                      Objects database error: connect ECONNREFUSED 127.0.0.1:9001
                      Objects database error: connect ECONNREFUSED 127.0.0.1:9001
                      States database error: connect ECONNREFUSED 127.0.0.1:9000
                      States database error: connect ECONNREFUSED 127.0.0.1:9000
                      Objects database error: connect ECONNREFUSED 127.0.0.1:9001
                      Objects database error: connect ECONNREFUSED 127.0.0.1:9001
                      States database error: connect ECONNREFUSED 127.0.0.1:9000
                      Adapter "admin" : 6.2.23 , installed 6.2.23
                      Adapter "alexa2" : 3.21.0 , installed 3.21.0
                      Adapter "backitup" : 2.5.4 , installed 2.4.12 [Updatable]
                      Adapter "daswetter" : 3.1.4 , installed 3.1.4
                      Adapter "deconz" : 1.3.21 , installed 2.0.5
                      Adapter "discovery" : 3.0.5 , installed 3.1.0
                      Adapter "email" : 1.1.3 , installed 1.1.4
                      Adapter "firetv" : 1.0.0 , installed 1.0.0
                      Adapter "geofency" : 1.1.1 , installed 1.2.4
                      Adapter "info" : 1.9.19 , installed 1.9.21
                      Adapter "javascript" : 6.0.3 , installed 6.0.3
                      Controller "js-controller": 4.0.23 , installed 4.0.23
                      Adapter "mihome-vacuum": 3.8.6 , installed 3.6.0 [Updatable]
                      Adapter "nuki" : 1.6.0 , installed 1.6.0
                      Adapter "pushover" : 3.0.3 , installed 3.0.3
                      Adapter "shelly" : 6.0.0 , installed 6.2.4
                      Adapter "shuttercontrol": 1.4.18 , installed 1.4.18
                      Adapter "simple-api" : 2.7.0 , installed 2.7.2
                      Adapter "socketio" : 4.2.0 , installed 6.1.10
                      Adapter "tankerkoenig" : 2.1.1 , installed 2.1.1
                      Adapter "tuya" : 3.9.4 , installed 3.7.2 [Updatable]
                      Adapter "vis" : 1.4.15 , installed 1.4.15
                      Adapter "web" : 4.3.0 , installed 5.2.10
                      Adapter "ws" : 1.3.0 , installed 2.1.5

                      Für mich zu viel "Error" in den ersten Zeilen...

                      Kann mir vielleicht jemand helfen?

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

                        @zelly

                        Da ist was mit der Datenbank.

                        du -h
                        iobroker restart
                        

                        sagen z. B.

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

                          @thomas-braun
                          Die Ausgabe ist zu lang, um sie hier zu posten... aber nach restart war immer noch das problem da.

                          Ist hier was falsch?
                          pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v18.12.1
                          v18.12.1
                          8.19.2
                          nodejs:
                          Installiert: 18.12.1-deb-1nodesource1
                          Installationskandidat: 18.12.1-deb-1nodesource1
                          Versionstabelle:
                          *** 18.12.1-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_18.x buster/main armhf Packages
                          100 /var/lib/dpkg/status
                          10.24.0~dfsg-1~deb10u2 500
                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages

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

                            @zelly

                            df -h
                            

                            meinte ich auch, sorry.

                            Nodejs ist grundsätzlich wohl sauber installiert, allerdings ist die Empfehlung v16.
                            Dein Betriebssystem ist aus dem regulären Support raus, installier da Bullseye.

                            Zelly 1 Reply Last reply Reply Quote 0
                            • Zelly
                              Zelly @Thomas Braun last edited by Homoran

                              @thomas-braun
                              zunächst: vielen Dank für deine Unterstützung!

                              pi@raspberrypi:~ $ df -h
                              Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
                              /dev/root        15G    4,2G  9,6G   31% /
                              devtmpfs        430M       0  430M    0% /dev
                              tmpfs           462M       0  462M    0% /dev/shm
                              tmpfs           462M     18M  444M    4% /run
                              tmpfs           5,0M    4,0K  5,0M    1% /run/lock
                              tmpfs           462M       0  462M    0% /sys/fs/cgroup
                              /dev/mmcblk0p1  253M     49M  204M   20% /boot
                              tmpfs            93M       0   93M    0% /run/user/1000
                              

                              MOD-EDIT: Code in code-tags gesetzt!

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

                                @zelly

                                iobroker status
                                
                                Zelly 1 Reply Last reply Reply Quote 0
                                • Zelly
                                  Zelly @Thomas Braun last edited by

                                  @thomas-braun

                                  pi@raspberrypi:~ $ iobroker status
                                  iobroker is running on this host.
                                  
                                  
                                  Objects type: jsonl
                                  States  type: jsonl
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Zelly last edited by

                                    @zelly
                                    Okay...

                                    iobroker stop
                                    iobroker fix
                                    iobroker update
                                    
                                    Zelly 1 Reply Last reply Reply Quote 0
                                    • Zelly
                                      Zelly @Thomas Braun last edited by

                                      @thomas-braun
                                      so... ist jetzt einmal durchgelaufen:

                                      pi@raspberrypi:~ $ iobroker update
                                      Used repository: stable
                                      Adapter    "admin"        : 6.2.23   , installed 6.2.23
                                      Adapter    "alexa2"       : 3.21.0   , installed 3.21.0
                                      Adapter    "backitup"     : 2.5.4    , installed 2.4.12 [Updatable]
                                      Adapter    "daswetter"    : 3.1.4    , installed 3.1.4
                                      Adapter    "deconz"       : 1.3.21   , installed 2.0.5
                                      Adapter    "discovery"    : 3.0.5    , installed 3.1.0
                                      Adapter    "email"        : 1.1.3    , installed 1.1.4
                                      Adapter    "firetv"       : 1.0.0    , installed 1.0.0
                                      Adapter    "geofency"     : 1.1.1    , installed 1.2.4
                                      Adapter    "info"         : 1.9.19   , installed 1.9.21
                                      Adapter    "javascript"   : 6.0.3    , installed 6.0.3
                                      Controller "js-controller": 4.0.23   , installed 4.0.23
                                      Adapter    "mihome-vacuum": 3.8.6    , installed 3.6.0  [Updatable]
                                      Adapter    "nuki"         : 1.6.0    , installed 1.6.0
                                      Adapter    "pushover"     : 3.0.3    , installed 3.0.3
                                      Adapter    "shelly"       : 6.0.0    , installed 6.2.4
                                      Adapter    "shuttercontrol": 1.4.18  , installed 1.4.18
                                      Adapter    "simple-api"   : 2.7.0    , installed 2.7.2
                                      Adapter    "socketio"     : 4.2.0    , installed 6.1.10
                                      Adapter    "tankerkoenig" : 2.1.1    , installed 2.1.1
                                      Adapter    "tuya"         : 3.9.4    , installed 3.7.2  [Updatable]
                                      Adapter    "vis"          : 1.4.15   , installed 1.4.15
                                      Adapter    "web"          : 4.3.0    , installed 5.2.10
                                      Adapter    "ws"           : 1.3.0    , installed 2.1.5
                                      

                                      Kann ich jetzt wieder den iobroker starten?
                                      Ich vermute "Bullseye" muss nochmal separat installiert werden?

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

                                        @zelly

                                        Dann zieh die Adapter jetzt auf den aktuellen Stand.

                                        Auf Bullseye kann u. U. online upgegraded werden.
                                        Ich hab das z. B. hier mal gemacht:

                                        https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye

                                        Ansonsten: Am besten eine frische Neuinstallation, Backup einspielen.

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

                                          @thomas-braun
                                          Hochziehen funktioniert bei mir leider nicht.

                                          Would you like to upgrade backitup from @2.4.12 to @2.5.4 now? [(y)es, (n)o]: y
                                          Update backitup from @2.4.12 to @2.5.4
                                          host.raspberrypi Adapter "system.adapter.backitup.0" is stopped.
                                          NPM version: 8.19.2
                                          Installing iobroker.backitup@2.5.4... (System call)
                                          host.raspberrypi Cannot install iobroker.backitup@2.5.4: 217
                                          

                                          So ist es mit allen Adaptern.

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

                                            @zelly

                                            Bitte immer vollständig posten.

                                            iobroker update backitup --debug
                                            

                                            Wird aber vermutlich mal wieder
                                            https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8
                                            sein.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            381
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            69
                                            11690
                                            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