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.
    • Bass-T
      Bass-T @Habi last edited by

      Habe jetzt auch das Problem dass sich adapter nicht mehr updaten lassen, bzw auch keine neuen installieren lassen.
      Gibt es schon eine globaöe Lösung, oder immer noch nur die angeforderten Ordner einzeln löschen?

      Grüße

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

        @bass-t

        Gibt es. Ist im Forum angepinnt...

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

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

          Hi thomas-braun,

          vielleicht kannst du mir nochmal helfen. Seit heute bekomme ich meinen iobroker nicht mehr gestartet.

          iobroker@debian:~$ iob status
          iobroker is not running on this host.
          
          
          Objects type: jsonl
          States  type: jsonl
          
          
          iobroker@debian:~$ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          x86_64
          /usr/bin/nodejs
          /usr/bin/node
          /usr/bin/npm
          v16.18.0
          v16.18.0
          8.19.2
          4.0.23
          iobroker
          iobroker tty dialout cdrom floppy sudo audio dip video plugdev netdev bluetooth lpadmin scanner
          tty
          /home/iobroker
          OK:1 http://deb.debian.org/debian buster InRelease
          OK:2 http://security.debian.org/debian-security buster/updates InRelease
          OK:3 http://deb.debian.org/debian-security buster/updates InRelease
          OK:4 http://deb.debian.org/debian buster-updates InRelease
          OK:5 http://ftp.de.debian.org/debian buster InRelease
          OK:6 https://deb.nodesource.com/node_16.x buster InRelease
          OK:7 http://deb.debian.org/debian buster-backports InRelease
          OK:8 https://packages.sury.org/php buster InRelease
          OK:9 http://ftp.de.debian.org/debian buster-updates InRelease
          OK:10 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          Aktualisierung für 14 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
          nodejs:
            Installiert:           16.18.0-deb-1nodesource1
            Installationskandidat: 16.18.0-deb-1nodesource1
            Versionstabelle:
           *** 16.18.0-deb-1nodesource1 500
                  500 https://deb.nodesource.com/node_16.x buster/main amd64 Packages
                  100 /var/lib/dpkg/status
               10.24.0~dfsg-1~deb10u2 500
                  500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
                  500 http://deb.debian.org/debian-security buster/updates/main amd64 Packages
               10.24.0~dfsg-1~deb10u1 500
                  500 http://ftp.de.debian.org/debian buster/main amd64 Packages
                  500 http://deb.debian.org/debian buster/main amd64 Packages
          iobroker@debian:~$ ^C
          Sie haben neue Post in /var/mail/iobroker.
          
          
          Glasfaser Thomas Braun 2 Replies Last reply Reply Quote 0
          • Glasfaser
            Glasfaser @djsirius last edited by

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

            iobroker is not running on this host.

            iobroker start
            

            mal versucht !?

            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:

              Wer schreibt dir denn hier Emails:

              Sie haben neue Post in /var/mail/iobroker.

              System aktuell halten:

              Aktualisierung für 14 Pakete verfügbar.
              

              Seit heute bekomme ich meinen iobroker nicht mehr gestartet.

              Konkret?

              iobroker start
              

              sagt?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            789
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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