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.
    • 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
                                        • K
                                          kasten bier @Thomas Braun last edited by

                                          @thomas-braun

                                          iob update
                                          Used repository: stable
                                          Adapter    "admin"        : 6.10.1   , installed 6.2.23 [Updatable]
                                          Adapter    "backitup"     : 2.8.1    , installed 2.1.17 [Updatable]
                                          Adapter    "ble"          : 0.13.4   , installed 0.13.0 [Updatable]
                                          Adapter    "discovery"    : 3.1.0    , installed 3.1.0
                                          Adapter    "echarts"      : 1.5.1    , installed 1.0.12 [Updatable]
                                          Adapter    "flot"         : 1.12.0   , installed 1.10.7 [Updatable]
                                          Adapter    "fritzdect"    : 2.3.1    , installed 2.2.6  [Updatable]
                                          Adapter    "habpanel"     : 0.5.0    , installed 0.5.0
                                          Adapter    "history"      : 2.2.6    , installed 2.2.4  [Updatable]
                                          Adapter    "jarvis"       : 3.1.2    , installed 3.0.15 [Updatable]
                                          Adapter    "javascript"   : 7.1.4    , installed 6.1.4  [Updatable]
                                          Controller "js-controller": 5.0.12   , installed 4.0.23 [Updatable]
                                          Adapter    "mqtt"         : 4.1.1    , installed 4.0.7  [Updatable]
                                          Adapter    "netatmo-crawler": 0.8.1  , installed 0.8.1
                                          Adapter    "parser"       : 1.3.2    , installed 1.1.8  [Updatable]
                                          Adapter    "shelly"       : 6.4.1    , installed 4.0.7  [Updatable]
                                          Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
                                          Adapter    "smartmeter"   : 3.3.4    , installed 3.3.4
                                          Adapter    "socketio"     : 6.5.5    , installed 4.2.0  [Updatable]
                                          Adapter    "sonoff"       : 2.5.3    , installed 2.5.1  [Updatable]
                                          Adapter    "statistics"   : 2.3.0    , installed 2.2.0  [Updatable]
                                          Adapter    "vis"          : 1.4.16   , installed 1.4.16
                                          Adapter    "vis-bars"     : 0.1.4    , installed 0.1.4
                                          Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
                                          Adapter    "vis-hqwidgets": 1.4.0    , installed 1.3.0  [Updatable]
                                          Adapter    "vis-rgraph"   : 0.0.2    , installed 0.0.2
                                          Adapter    "web"          : 6.1.2    , installed 4.3.0  [Updatable]
                                          Adapter    "ws"           : 2.5.5    , installed 1.3.0  [Updatable]
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @kasten bier last edited by

                                            @kasten-bier

                                            cd /opt/iobroker && npm ls
                                            
                                            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

                                            858
                                            Online

                                            32.1k
                                            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