NEWS
broker Admin nicht erreichbar + Failed to lock DB file
-
@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 ====================
-
@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.6ist 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
-
@kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:
hier die summary:
Das ist nicht die Langfassung.
-
@thomas-braun
sind mehr als 10000 Zeichen , habs mal als txt hochgeladen.iob diag.txt -
Wo hast du die nodejs@18.17.1 denn her?
Nicht ordentlich aus einem Repo, das läuft nämlich auf 16 bei dir. -
@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.
-
Versuch mal das node-fix-Skript aus meiner Signatur.
-
@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. -
@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
-
@kasten-bier sagte in broker Admin nicht erreichbar + Failed to lock DB file:
Ist ein Downgrade auf 16.x möglich ?
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
-
@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. -
@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ß
-
Macht man trotzdem nicht. Nie. Also im Sinne von GAR NICHT.
-
-
@thomas-braun
diag sagt jaNodejs-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 -
cd /opt/iobroker sudo -H - u iobroker npm prune sudo -H - u iobroker npm ls
-
iob update
-
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]
-
cd /opt/iobroker && npm ls
-
cd /opt/iobroker && npm ls iobroker.inst@3.0.0 /opt/iobroker ├── iobroker.admin@6.2.23 ├── iobroker.backitup@2.1.17 ├── iobroker.ble@0.13.0 ├── iobroker.discovery@3.1.0 ├── iobroker.echarts@1.0.12 ├── iobroker.flot@1.10.7 ├── iobroker.fritzdect@2.2.6 ├── iobroker.habpanel@0.5.0 ├── iobroker.history@2.2.4 ├── iobroker.jarvis@3.0.15 ├── iobroker.javascript@6.1.4 ├── iobroker.js-controller@4.0.23 ├── iobroker.mqtt@4.0.7 ├── iobroker.netatmo-crawler@0.8.1 ├── iobroker.parser@1.1.8 ├── iobroker.shelly@4.0.7 ├── iobroker.smartmeter@3.3.4 ├── iobroker.sonoff@2.5.1 ├── iobroker.sourceanalytix@0.4.15-alpha.0 (git+ssh://git@github.com/DrozmotiX/ioBroker.sourceanalytix.git#af88beb902468eb03749e5b120f3e350e60256e1) ├── iobroker.statistics@2.2.0 ├── iobroker.vis-bars@0.1.4 ├── iobroker.vis-history@1.0.0 ├── iobroker.vis-hqwidgets@1.3.0 ├── iobroker.vis-rgraph@0.0.2 ├── iobroker.vis@1.4.16 └── iobroker.web@4.3.0