Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Gelöst] Beim updaten der Adapter "cannot upgrade:DB closed"

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Gelöst] Beim updaten der Adapter "cannot upgrade:DB closed"

    This topic has been deleted. Only users with topic management privileges can see it.
    • Bahadir Ergüllü
      Bahadir Ergüllü last edited by Bahadir Ergüllü

      Hallo zusammen,

      habe folgenden Fehler beim updaten der Adapter und komme leider nicht weiter.

      IOB fix
      IOB update / Upgrade habe ich schon durch.

      $ iobroker upgrade backitup@2.4.10

      Update backitup from @2.4.6 to @2.4.10

      host.bahadir-Virtual-Machine Adapter "system.adapter.backitup.0" is stopped.

      NPM version: 8.15.0

      Installing iobroker.backitup@2.4.10... (System call)

      host.bahadir-Virtual-Machine Cannot install iobroker.backitup@2.4.10: 217

      host.bahadir-Virtual-Machine Adapter "system.adapter.backitup.0" is started

      Cannot upgrade: DB closed

      ERROR: Process exited with code 25bolded text

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Bahadir Ergüllü last edited by Thomas Braun

        @bahadir-ergüllü sagte in Beim updaten der Adapter "cannot upgrade:DB closed":

        iobroker upgrade backitup@2.4.10

        iobroker upgrade backitup@2.4.10 --debug
        

        NPM version: 8.15.0
        ist auch mit Sicherheit nicht die für dein nodeJS16 vorgesehene Version, da ist noch 8.11.0 der letzte Stand.

        Bahadir Ergüllü 1 Reply Last reply Reply Quote 0
        • Bahadir Ergüllü
          Bahadir Ergüllü @Thomas Braun last edited by

          @thomas-braun said in Beim updaten der Adapter "cannot upgrade:DB closed":

          iobroker upgrade backitup@2.4.10 --debug

          code_text
          ```Would you like to upgrade backitup from @2.4.6 to @2.4.10 now? [(y)es, (n)o]: y
          Update backitup from @2.4.6 to @2.4.10
          NPM version: 8.15.0
          Installing iobroker.backitup@2.4.10... (System call)
          npm ERR! code ENOTEMPTY
          npm ERR! syscall rename
          npm ERR! path /opt/iobroker/node_modules/@babel/runtime
          npm ERR! dest /opt/iobroker/node_modules/@babel/.runtime-cSN2FFol
          npm ERR! errno -39
          npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/@babel/runtime' -> '/opt/iobroker/node_modules/@babel/.runtime-cSN2FFol'
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/iobroker/.npm/_logs/2022-08-05T08_52_53_609Z-debug-0.log
          host.bahadir-Virtual-Machine Cannot install iobroker.backitup@2.4.10: 217
          Cannot set system.adapter.backitup: DB closed
           Cannot find view "system" for search "instance" : Connection is closed.
          Cannot upgrade: Cannot find view "system"
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Bahadir Ergüllü last edited by

            @bahadir-ergüllü

            Wie bist du da jetzt 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
            

            Zum 'Problem':

            cd /opt/iobroker/node_modules
            for i in $(ls -d .[^.]*-*/); do rm -rf ${i%%/}; done
            
            Bahadir Ergüllü 1 Reply Last reply Reply Quote 0
            • Bahadir Ergüllü
              Bahadir Ergüllü @Thomas Braun last edited by

              @thomas-braun
              zu 1.

              [10:53:01] root@bahadir-Virtual-Machine:~# sudo ln -s /usr/bin/node /usr/bin/nodejs
              ln: Die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
              [11:03:29] root@bahadir-Virtual-Machine:~# 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
              x86_64
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v18.7.0
              v18.7.0
              8.15.0
              root
              /root
              
              

              Zu 2.

              [11:04:23] root@bahadir-Virtual-Machine:/opt/iobroker/node_modules# for i in $(ls -d .[^.]*-*/); do rm -rf ${i%%/}; done
              ls: Zugriff auf '.[^.]*-*/' nicht möglich: Datei oder Verzeichnis nicht gefunden
              
              code_text
              

              Ich weiß leider nicht weiter.

              Thomas Braun G 2 Replies Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Bahadir Ergüllü last edited by

                @bahadir-ergüllü

                Warum root und warum nodejs18?

                Bahadir Ergüllü 1 Reply Last reply Reply Quote 1
                • G
                  guergen @Bahadir Ergüllü last edited by

                  @bahadir-ergüllü Warum müsst ihr alle als root angemeldet sein? 50% der Probleme kommen davon!
                  Linux ist nicht umsonst ein Multiuser-System!

                  1 Reply Last reply Reply Quote 1
                  • Bahadir Ergüllü
                    Bahadir Ergüllü @Thomas Braun last edited by

                    @thomas-braun

                    Hallo Thomas,

                    aus Unwissenheit. Habe mein SSH Verbindung so hinbekommen.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Bahadir Ergüllü last edited by Thomas Braun

                      @bahadir-ergüllü

                      Dann schau dir jetzt an wie man gescheit mit usern arbeitet und lass den root in Ruhe.
                      Und warum nodejs18? Die Version ist nicht die vorgesehene und wird daher auch nicht vom ioBroker-Installer installiert, die musst du bewusst installiert haben. Ich frag mich nur warum?

                      Bahadir Ergüllü 1 Reply Last reply Reply Quote 0
                      • Bahadir Ergüllü
                        Bahadir Ergüllü @Thomas Braun last edited by

                        @thomas-braun Wahrscheinlich aus versehen.

                        Ich kümmere mich um den SSH Zugang und deinstalliere dann Nodejs18

                        1 Reply Last reply Reply Quote 0
                        • Bahadir Ergüllü
                          Bahadir Ergüllü last edited by

                          @bahadir-ergüllü Das Problem wurde folgendermaßen gelöst von mir.

                          nodejs wurde auf Version 14.x downgegradet.
                          iob darüber neu installiert mit folgendem Befehl :

                          curl -sLf https://iobroker.net/install.sh | bash -
                          

                          Alle Daten und Adapter sind noch vorhanden und können jetzt ohne Problem upgedatet werden.

                          Danke für die Hilfe.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate
                          FAQ Cloud / IOT
                          HowTo: Node.js-Update
                          HowTo: Backup/Restore
                          Downloads
                          BLOG

                          340
                          Online

                          31.6k
                          Users

                          79.5k
                          Topics

                          1.3m
                          Posts

                          3
                          11
                          345
                          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