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.
    • B
      besa @Thomas Braun last edited by

      @thomas-braun Okay, alle wiedee gelöscht mit

      sudo rm /usr/local/bin/node
      sudo rm /usr/local/bin/npm
      
      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -  
      sudo apt-get install -y nodejs
      sudo apt-get update && sudo apt-get install yarn
      
      
      which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v12.22.1
      

      Jetzt fehlte natürlich noch node, oder? Also dann gem. der Anleitung

      wget https://unofficial-builds.nodejs.org/download/release/v12.22.1/node-v12.22.1-linux-armv6l.tar.xz 
      tar -xvf node-v12.22.1-linux-armv6l.tar.xz
      cd node-v12.22.1-linux-armv6l/
      sudo cp -R * /usr/local/
      sudo ln -s /usr/local/bin/node /usr/local/bin/nodejs
      sudo reboot
      

      und leider jetzt alles wieder unter local

      linaro@tinkerboard:~$ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/local/bin/nodejs
      /usr/local/bin/node
      /usr/local/bin/npm
      v12.22.1
      v12.22.1
      6.14.12
      nodejs:
        Installed: 12.22.1-1nodesource1
        Candidate: 12.22.1-1nodesource1
        Version table:
       *** 12.22.1-1nodesource1 500
              500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
              100 /var/lib/dpkg/status
           4.8.2~dfsg-1 500
              500 http://http.debian.net/debian stretch/main armhf Packages
      linaro@tinkerboard:~$
      

      Mir fehlt irgendwie der Schritt nach der Installation von nodejs node und npm im richtigen Verzeichnis zu installieren. Das habe ich leider nicht gesehen.

      DANKE

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

        @besa Arrrrrrrgh!

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

          @thomas-braun Also ich habe einfach mal den mitteleren Teil "wget https://unofficial-builds.nodejs.org/download/release/v12.22.1/node-v12.22.1-linux-armv6l.tar.xz " weggelassen und neu gebootet und schwups

          hich nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
          /usr/bin/nodejs
          /usr/bin/node
          /usr/bin/npm
          v12.22.1
          v12.22.1
          6.14.12
          nodejs:
            Installed: 12.22.1-1nodesource1
            Candidate: 12.22.1-1nodesource1
            Version table:
           *** 12.22.1-1nodesource1 500
                  500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
                  100 /var/lib/dpkg/status
               4.8.2~dfsg-1 500
                  500 http://http.debian.net/debian stretch/main armhf Packages
          
          
          B 1 Reply Last reply Reply Quote 0
          • B
            besa @besa last edited by

            @besa Das kam mir gleich Spanisch vor

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

              @besa Du liest es nicht richtig. Der unofficial-Teil ist nur bei superexoten Konstellationen erforderlich.

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

                @thomas-braun Danke für die Lesehilfe. Aber ich war verloren, da ich dachte, dass der NODEJS Teil nur nodejs installiert und nicht NODE und NPM auch.

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

                  @besa

                  Deswegen steht auch recht weit am Anfang:

                  Es ist übrigens hier nicht erforderlich, ein Paket 'node' separat zu installieren, das ist schon im Paket 'nodejs' enthalten. Das gilt dann natürlich im weiteren auch für Upgrades/Updates von node.

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

                    @thomas-braun Viele herzlichen Dank und ein schönes Wochenende im Biergarten

                    1 Reply Last reply Reply Quote 0
                    • H
                      Habi last edited by

                      Hallo zusammen,
                      habe das selbe Problem auf einem Raspberry Pi 4. Kann keine Adapter mehr Installieren oder updaten.

                      $ iobroker add zigbee --host IoBroker
                      NPM version: 8.11.0
                      npm install iobroker.zigbee@1.7.5 --loglevel error --prefix "/opt/iobroker" (System call)
                      npm ERR! code ENOTEMPTY
                      npm ERR! syscall rename
                      npm ERR! path /opt/iobroker/node_modules/iobroker.javascriptnpm ERR! dest /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                      npm ERR! errno -39
                      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript' -> '/opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn'
                      npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-07-02T12_28_16_159Z-debug-0.log
                      host.IoBroker Cannot install iobroker.zigbee@1.7.5: 217
                      ERROR: Process exited with code 25
                      
                      pi@IoBroker:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                      /usr/bin/nodejs
                      /usr/bin/node
                      /usr/bin/npm
                      v16.15.1
                      v16.15.1
                      8.11.0
                      nodejs:
                        Installiert:           16.15.1-deb-1nodesource1
                        Installationskandidat: 16.15.1-deb-1nodesource1
                        Versionstabelle:
                       *** 16.15.1-deb-1nodesource1 500
                              500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages
                              100 /var/lib/dpkg/status
                           12.22.12~dfsg-1~deb11u1 500
                              500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                           12.22.5~dfsg-2~11u1 500
                              500 http://deb.debian.org/debian bullseye/main arm64 Packages
                      

                      Liegt es daran das ich node 16 und npm 8 installiert habe? Erst hatte ich nur node und npm installiert, da ist der selbe Fehler aufgetreten. Hatte dann noch Nodejs installiert aber der Fehler ist geblieben.

                      Gruß Habi

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

                        @habi

                        sudo -u iobroker rm /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                        iobroker update
                        
                        1 Reply Last reply Reply Quote 0
                        • H
                          Habi last edited by

                          scheint nicht zu funktionieren.

                          pi@IoBroker:~ $ sudo -u iobroker rm /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                          rm: das Entfernen von '/opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn' ist nicht möglich: Ist ein Verzeichnis
                          
                          pi@IoBroker:~ $ iobroker update
                          Used repository: default
                          hash unchanged, use cached sources
                          update done
                          Adapter    "admin"         : 5.3.8    , installed 5.2.3 [Updateable]
                          Adapter    "backitup"      : 2.4.9    , installed 2.3.3 [Updateable]
                          Adapter    "chromecast"    : 2.3.1    , installed 2.3.1
                          Adapter    "discovery"     : 3.0.3    , installed 2.7.5 [Updateable]
                          Adapter    "fritzdect"     : 2.2.3    , installed 2.2.3
                          Adapter    "influxdb"      : 2.6.3    , installed 1.9.5 [Updateable]
                          Adapter    "javascript"    : 5.7.0    , installed 5.7.0
                          Controller "js-controller" : 4.0.23   , installed 3.3.22 [Updateable]
                          Adapter    "net-tools"     : 0.2.0    , installed 0.1.7 [Updateable]
                          Adapter    "ping"          : 1.5.3    , installed 1.5.0 [Updateable]
                          Adapter    "sonoff"        : 2.5.1    , installed 2.4.7 [Updateable]
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @Habi last edited by Thomas Braun

                            @habi

                            sudo -u iobroker rm -rf /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                            

                            Das ganze Zeug hattest du aber auch VOR einem Upgrade von nodejs aktualisieren können...

                            1 Reply Last reply Reply Quote 0
                            • H
                              Habi last edited by

                              Hatte node 16 und npm 8 schon länger installiert und nodejs war garnicht installiert. Wollte dann gestern Zigbee installieren und es ging nichts mehr.

                              Habe grade nochmal das Backup von Gestern, vor der installation von nodejs aufgespielt.
                              Die Fehlermeldung ging weg, habe jetzt eine andere.

                              $ iobroker add zigbee --host IoBroker
                              NPM version: 8.11.0
                              npm install iobroker.zigbee@1.7.5 --loglevel error --prefix "/opt/iobroker" (System call)
                              npm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/jszipnpm ERR! dest /opt/iobroker/node_modules/.jszip-r3fGcU4N
                              npm ERR! errno -39
                              npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/jszip' -> '/opt/iobroker/node_modules/.jszip-r3fGcU4N'
                              npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-07-02T14_29_11_124Z-debug-0.log
                              host.IoBroker Cannot install iobroker.zigbee@1.7.5: 217
                              ERROR: Process exited with code 25
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Habi last edited by

                                @habi

                                nodejs wird auch nicht installiert, allenfalls auf node gesymlinkt.

                                Die angemeckerten Verzeichnisse jetzt alle löschen.

                                1 Reply Last reply Reply Quote 0
                                • H
                                  Habi last edited by

                                  Habe jetzt noch folgendes gelöscht.

                                  pi@IoBroker:~ $ sudo -u iobroker rm -rf /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn                                
                                  pi@IoBroker:~ $ sudo -u iobroker rm -rf /opt/iobroker/node_modules/.jszip-r3fGcU4N
                                  pi@IoBroker:~ $ sudo -u iobroker rm -rf /opt/iobroker/node_modules/.semver-n8m5lQuN
                                  pi@IoBroker:~ $ sudo -u iobroker rm -rf /opt/iobroker/node_modules/.typescript-rKKYB1QG
                                  

                                  Als ich dann nochmal versucht habe Zigbee zu installieren, ist der Pi abgestürzt.

                                  Nach dem Neustart konnte ich Zigbee installieren.

                                  Beim Update von Backitup hatte ich dann wieder ne Fehlermeldung die ich gelöscht habe.

                                  pi@IoBroker:~ $ sudo -u iobroker rm -rf /opt/iobroker/node_modules/.https-proxy-agent-AiV4Y07N
                                  

                                  Danach konnte ich Backitup updaten. Alle andere Adapter konnte ich dann ohne Probleme updaten.

                                  Ist es Sinnvoll das aktuelle Image dann zu behalten oder doch lieber ein altes Backup aufspielen wo die Probleme erst garnicht da waren?

                                  Vielen Dank für die Hilfe

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

                                    @habi

                                    Wenn es jetzt läuft ist doch alles in Ordnung.

                                    iobroker update -i
                                    

                                    sagt?

                                    Zelly 1 Reply Last reply Reply Quote 0
                                    • H
                                      Habi last edited by

                                      pi@IoBroker:~ $ iobroker update -i
                                      Used repository: stable
                                      Adapter    "admin"        : 5.3.8    , installed 5.3.8
                                      Adapter    "backitup"     : 2.4.9    , installed 2.4.9
                                      Adapter    "chromecast"   : 2.3.1    , installed 2.3.1
                                      Adapter    "discovery"    : 3.0.3    , installed 3.0.3
                                      Adapter    "fritzdect"    : 2.2.3    , installed 2.2.3
                                      Adapter    "influxdb"     : 2.6.3    , installed 1.9.5  [Updatable]
                                      Adapter    "javascript"   : 5.7.0    , installed 5.2.21 [Updatable]
                                      Controller "js-controller": 4.0.23   , installed 4.0.23
                                      Adapter    "net-tools"    : 0.2.0    , installed 0.2.0
                                      Adapter    "ping"         : 1.5.3    , installed 1.5.3
                                      Adapter    "sonoff"       : 2.5.1    , installed 2.5.1
                                      Adapter    "zigbee"       : 1.7.5    , installed 1.7.5
                                      

                                      influxdb hat eben nach dem ich es geupdatet hab nicht mehr funktioniert das wollte ich jetzt so lassen.
                                      Aber ich dachte eigentlich ich hätte Java geupdatet aber das scheint nicht funktioniert zu haben.

                                      $ iobroker upgrade javascript@5.7.0
                                      Update javascript from @5.2.21 to @5.7.0
                                      NPM version: 8.11.0Installing iobroker.javascript@5.7.0... (System call)
                                      host.IoBroker Cannot install iobroker.javascript@5.7.0: 217
                                      ERROR: Process exited with code 25
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Habi last edited by

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

                                        iobroker upgrade javascript@5.7.0 --debug
                                        

                                        Und schau dir an was mit dem influx ist. 'So lassen' ist jedenfalls keine Option.

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          Habi last edited by Habi

                                          influx kann ich updaten das funktioniert alles. Bekomme dann nur die Fehlermeldung "no connection to DB". Das Problem hatten ja schon mehrere im Forum. Muss mich da noch durcharbeiten. Will dann aber erstmal wieder nen Backup machen wenn der Rest läuft.

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

                                            @habi

                                            Und was sagt dein javascript?

                                            iobroker upgrade javascript@5.7.0 --debug
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            817
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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