Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. broker Admin nicht erreichbar + Failed to lock DB file

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    broker Admin nicht erreichbar + Failed to lock DB file

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @kasten bier last edited by Thomas Braun

      @kasten-bier

      iob stop
      iob fix
      iob start
      

      WARTEN

      iob diag
      

      sagt dann? Langfassung bitte.

      K 3 Replies Last reply Reply Quote 0
      • K
        kasten bier @Thomas Braun last edited by

        @glasfaser
        ja das vom Samstag hatte ich eingespielt, seitdem läuft ist der admin nicht mehr erreichbar.

        Glasfaser 1 Reply Last reply Reply Quote 0
        • Glasfaser
          Glasfaser @kasten bier last edited by Glasfaser

          @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

          @glasfaser
          ja das vom Samstag hatte ich eingespielt,

          Das kommt aber nicht bei einer Restore :

          warn: host.iobroker-pi adapter "admin" seems to be installed for a different version of Node.js. Trying

          Homoran 1 Reply Last reply Reply Quote 0
          • K
            kasten bier @Thomas Braun last edited by

            @thomas-braun
            hier die summary:
            Copy text starting here:

            ======================= SUMMARY =======================
                                 v.2023-06-20
            
            
               Static hostname: iobroker-pi
                     Icon name: computer
                    Machine ID: 8c7521687f1c426fafe88f497be66f04
                       Boot ID: d3b295b8436d44e2beb25306385497a1
              Operating System: Raspbian GNU/Linux 10 (buster)
                        Kernel: Linux 5.10.103-v7l+
                  Architecture: arm
            
            Installation:           native
            Kernel:                 armv7l
            Userland:               armhf
            Timezone:               Europe/Berlin (CEST, +0200)
            User-ID:                1000
            X-Server:               false
            Boot Target:            multi-user.target
            
            Pending OS-Updates:     0
            Pending iob updates:    19
            
            Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                                    /usr/bin/node           v18.17.1
                                    /usr/bin/npm            9.6.7
                                    /usr/bin/npx            9.6.7
            
            Recommended versions are nodejs 18.x.y and npm 9.x.y
            Your nodejs installation is correct
            
            MEMORY:
                          total        used        free      shared  buff/cache   available
            Mem:           1.9G        404M        920M         16M        597M        1.4G
            Swap:           99M          0B         99M
            Total:         2.0G        404M        1.0G
            
            Active iob-Instances:   2
            Active repo(s): stable
            
            ioBroker Core:          js-controller           4.0.23
                                    admin                   6.2.23
            
            ioBroker Status:        iobroker is running on this host.
            
            
            Objects type: jsonl
            States  type: jsonl
            
            Status admin and web instance:
              system.adapter.admin.0                  : admin                 : iobroker-pi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
              system.adapter.web.0                    : web                   : iobroker-pi                              - disabled, port: 8082, bind: 0.0.0.0, run as: admin
            
            Objects:                25289
            States:                 2599
            
            Size of iob-Database:
            
            34M     /opt/iobroker/iobroker-data/objects.jsonl
            3.8M    /opt/iobroker/iobroker-data/objects.json.migrated
            3.8M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
            768K    /opt/iobroker/iobroker-data/states.jsonl
            88K     /opt/iobroker/iobroker-data/states.json.migrated
            88K     /opt/iobroker/iobroker-data/states.json.bak.migrated
            0       /opt/iobroker/iobroker-data/states.json.broken
            
            
            
            =================== END OF SUMMARY ====================
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Glasfaser last edited by

              @glasfaser sagte in broker Admin nicht erreichbar + Failed to lock DB file:

              Das kommt aber nicht bei einer Restore :

              doch, wen das Backup von

              @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

              node -v
              v12.22.6

              ist und die neue

              @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

              v18.17.1

              dann kommt

              @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

              Trying to rebuild it... 2 attempt

              was natürlich dauert

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

                @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

                hier die summary:

                Das ist nicht die Langfassung.

                1 Reply Last reply Reply Quote 0
                • K
                  kasten bier @Thomas Braun last edited by

                  @thomas-braun
                  sind mehr als 10000 Zeichen , habs mal als txt hochgeladen.iob diag.txt

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

                    @kasten-bier

                    Wo hast du die nodejs@18.17.1 denn her?
                    Nicht ordentlich aus einem Repo, das läuft nämlich auf 16 bei dir.

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      kasten bier @Thomas Braun last edited by

                      @thomas-braun
                      oje, ich hab gestern vor verzweiflung einfach in dem Befehl:

                      curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
                      sudo apt-get install -y nodejs
                      

                      aus der 16 eine 18 gemacht, glaube ich mich zu erinnern.

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

                        @kasten-bier

                        Versuch mal das node-fix-Skript aus meiner Signatur.

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          kasten bier @Thomas Braun last edited by kasten bier

                          @thomas-braun
                          das script ist durchgelaufen, leider keine Admin-Seite da.

                          Ist ein Downgrade auf 16.x möglich ?
                          Hat mich gestern angemeckert, daß mein 18er aktueller wäre.

                          Thomas Braun Glasfaser 2 Replies Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @kasten bier last edited by

                            @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

                            Ist ein Downgrade auf 16.x möglich ?

                            Wozu?

                            iob update
                            iob upgrade all -y
                            
                            1 Reply Last reply Reply Quote 0
                            • Glasfaser
                              Glasfaser @kasten bier last edited by

                              @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

                              Ist ein Downgrade auf 16.x möglich ?

                              @Thomas-Braun

                              Nur zur Info bevor er damit weiter macht :

                              Operating System: Raspbian GNU/Linux 10 (buster)

                              und so eine lange ... unendliche Liste habe ich noch nie gesehen in seinem Log
                              mit :

                              npm ERR! code ELSPROBLEMS

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

                                @glasfaser sagte in broker Admin nicht erreichbar + Failed to lock DB file:

                                und so eine lange ... unendliche Liste habe ich noch nie gesehen

                                Hab ich natürlich gesehen. Überwiegend extraneous. Die dürfte man mit

                                npm prune
                                rausbekommen. Aber dafür braucht es erstmal eine stabile Basis bei nodejs und Co.

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kasten bier @Glasfaser last edited by

                                  @glasfaser said in broker Admin nicht erreichbar + Failed to lock DB file:

                                  @kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:

                                  und das .. macht man nicht !

                                  Naja, es wurde ja eh nix mehr auf die sd-karte geschrieben, jedenfalls lief der admin nicht / nicht erreichbar und meine tasmota-Steckdosen haben geblinkt, weil kein mqqt-server mehr lief.

                                  Gruß

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

                                    @kasten-bier

                                    Macht man trotzdem nicht. Nie. Also im Sinne von GAR NICHT.

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

                                      @kasten-bier

                                      Wie sieht die Basis denn nun aus bei dir?

                                      nodesjs 18.18.0 sauber drauf?

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        kasten bier @Thomas Braun last edited by kasten bier

                                        @thomas-braun
                                        diag sagt ja

                                        Nodejs-Installation:    /usr/bin/nodejs         v18.18.0
                                                                /usr/bin/node           v18.18.0
                                                                /usr/bin/npm            9.8.1
                                                                /usr/bin/npx            9.8.1
                                        
                                        Recommended versions are nodejs 18.x.y and npm 9.x.y
                                        Your nodejs installation is correct
                                        
                                        

                                        , hat es vorhin aber auch.
                                        leider habe ich nicht aupgepasst für das "2x 'nothing to do'." nach dem fix

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

                                          @kasten-bier

                                          cd /opt/iobroker 
                                          sudo -H - u iobroker npm prune
                                          sudo -H - u iobroker npm ls
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @kasten bier last edited by

                                            @kasten-bier

                                            iob update
                                            
                                            K 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

                                            850
                                            Online

                                            32.0k
                                            Users

                                            80.6k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            34
                                            742
                                            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