NEWS
ioBroker startet nicht mehr
-
Da ja der ioBroker dauert neustartet, ändert sich glaub die PID.
Ich habe jetzt mal sekündlich folgenden Befehl eingegeben:
pi@DELO0150:~ $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl pi@DELO0150:~ $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl pi@DELO0150:~ $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl pi@DELO0150:~ $ sudo lsof /opt/iobroker/iobroker-data/objects.jsonl COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME iobroker. 1952 iobroker 19u REG 179,2 972533859 261398 /opt/iobroker/iobroker-data/objects.jsonlWenn ich den Befehl ein paar Sekunden später wieder eingebe, steht wieder eine andere PID dabei.
@magnus-0 sagte in ioBroker startet nicht mehr:
ändert sich glaub die PID.
Ja, natürlich. Mir fällt nur im Moment nix dazu ein warum der ioBroker dauernd neustartet.
-
@magnus-0 sagte in ioBroker startet nicht mehr:
ändert sich glaub die PID.
Ja, natürlich. Mir fällt nur im Moment nix dazu ein warum der ioBroker dauernd neustartet.
Achso ok, ist das vielleicht normal, dass er sich 30 Sekunden mit der Datenbank verbinden möchte und wenn das nicht klappt einen Neustart durchführt?
Folgend ein Log-Auszug:
2022-09-30 21:15:05.006 - error: host.DELO0150 No connection to databases possible, restart 2022-09-30 21:15:05.016 - info: host.DELO0150 iobroker _restart 2022-09-30 21:15:05.525 - info: host.DELO0150 connected to Objects and States 2022-09-30 21:15:05.555 - info: host.DELO0150 added notifications configuration of host 2022-09-30 21:15:05.563 - info: host.DELO0150 Node.js version has changed from 16.16.0 to 16.17.1 2022-09-30 21:15:05.632 - info: host.DELO0150 Successfully updated capabilities "cap_net_admin, cap_net_bind_service, cap_net_raw" for /usr/bin/node 2022-09-30 21:15:05.717 - info: host.DELO0150 Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-09-30 21:15:05.786 - info: host.DELO0150 7 instances found 2022-09-30 21:15:05.812 - info: host.DELO0150 starting 7 instances 2022-09-30 21:15:05.909 - info: host.DELO0150 instance system.adapter.admin.0 started with pid 2060 2022-09-30 21:15:10.520 - info: host.DELO0150 iobroker.js-controller version 4.0.23 js-controller starting 2022-09-30 21:15:10.527 - info: host.DELO0150 Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker 2022-09-30 21:15:10.528 - info: host.DELO0150 hostname: DELO0150, node: v16.17.1 2022-09-30 21:15:10.529 - info: host.DELO0150 ip addresses: 192.168.178.150 fe80::5068:6694:ad08:cc79 2022-09-30 21:15:40.549 - error: host.DELO0150 No connection to databases possible, restart 2022-09-30 21:15:40.558 - info: host.DELO0150 iobroker _restart 2022-09-30 21:15:41.154 - info: host.DELO0150 connected to Objects and States 2022-09-30 21:15:41.184 - info: host.DELO0150 added notifications configuration of host 2022-09-30 21:15:41.193 - info: host.DELO0150 Node.js version has changed from 16.16.0 to 16.17.1 2022-09-30 21:15:41.261 - info: host.DELO0150 Successfully updated capabilities "cap_net_admin, cap_net_bind_service, cap_net_raw" for /usr/bin/node 2022-09-30 21:15:41.352 - info: host.DELO0150 Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-09-30 21:15:41.408 - info: host.DELO0150 7 instances found 2022-09-30 21:15:41.434 - info: host.DELO0150 starting 7 instances 2022-09-30 21:15:41.539 - info: host.DELO0150 instance system.adapter.admin.0 started with pid 2095 2022-09-30 21:15:46.246 - info: host.DELO0150 iobroker.js-controller version 4.0.23 js-controller starting 2022-09-30 21:15:46.252 - info: host.DELO0150 Copyright (c) 2014-2022 bluefox, 2014 hobbyquaker 2022-09-30 21:15:46.253 - info: host.DELO0150 hostname: DELO0150, node: v16.17.1 2022-09-30 21:15:46.254 - info: host.DELO0150 ip addresses: 192.168.178.150 fe80::5068:6694:ad08:cc79 -
@magnus-0 sagte in ioBroker startet nicht mehr:
ändert sich glaub die PID.
Ja, natürlich. Mir fällt nur im Moment nix dazu ein warum der ioBroker dauernd neustartet.
Denkst du, wir bekommen das heute irgendwie hin?
-
Denkst du, wir bekommen das heute irgendwie hin?
sudo systemctl disable iobroker.service sudo systemctl stop iobroker.serviceSollte den restart loop unterbrechen.
-
sudo systemctl disable iobroker.service sudo systemctl stop iobroker.serviceSollte den restart loop unterbrechen.
pi@DELO0150:~ $ sudo systemctl disable iobroker.service Removed /etc/systemd/system/multi-user.target.wants/iobroker.service. -
sudo systemctl disable iobroker.service sudo systemctl stop iobroker.serviceSollte den restart loop unterbrechen.
Ich hab jetzt mal noch
iobroker stopausgeführt.... nun startet er laut Log nicht mehr neu.
-
Ich hab jetzt mal noch
iobroker stopausgeführt.... nun startet er laut Log nicht mehr neu.
-
@thomas-braun sagte in ioBroker startet nicht mehr:
iobroker status
hab nur mal folgendes ausgeführt:
pi@DELO0150:~ $ iobroker status No connection to databases possible ... -
Ich will nicht nerven, aber hast du für heute noch eine Idee?
Oder sollen wir es auf die kommenden Tage verschieben?
Gibt es einen Plan B?
-
Ich will nicht nerven, aber hast du für heute noch eine Idee?
Oder sollen wir es auf die kommenden Tage verschieben?
Gibt es einen Plan B?
iobroker fix -
iobroker fix -
-
Ergebnis von Fix:
pi@DELO0150:/opt/iobroker/iobroker-data $ iobroker fix library: loaded Library version=2022-06-15 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-06-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:2 http://archive.raspberrypi.org/debian buster InRelease OK:3 https://deb.nodesource.com/node_16.x buster InRelease Paketlisten werden gelesen... Fertig Installed gcc-c++ ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service. Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================Ergebnis von dem zweiten Befehl:
pi@DELO0150:/opt/iobroker/iobroker-data $ getfacl /opt/iobroker/iobroker-data/objects.jsonl getfacl: Entferne führende '/' von absoluten Pfadnamen # file: opt/iobroker/iobroker-data/objects.jsonl # owner: iobroker # group: iobroker user::rw- group::r-x group:iobroker:rwx mask::rwx other::r-- -
Ergebnis von Fix:
pi@DELO0150:/opt/iobroker/iobroker-data $ iobroker fix library: loaded Library version=2022-06-15 ========================================================================== Welcome to the ioBroker installation fixer! Script version: 2022-06-03 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/3) ========================================================================== OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:2 http://archive.raspberrypi.org/debian buster InRelease OK:3 https://deb.nodesource.com/node_16.x buster InRelease Paketlisten werden gelesen... Fertig Installed gcc-c++ ========================================================================== Checking ioBroker user and directory permissions (2/3) ========================================================================== Created /etc/sudoers.d/iobroker Fixing directory permissions... ========================================================================== Checking autostart (3/3) ========================================================================== Enabling autostart... Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service. Autostart enabled! ========================================================================== Your installation was fixed successfully Run iobroker start to start ioBroker again! ==========================================================================Ergebnis von dem zweiten Befehl:
pi@DELO0150:/opt/iobroker/iobroker-data $ getfacl /opt/iobroker/iobroker-data/objects.jsonl getfacl: Entferne führende '/' von absoluten Pfadnamen # file: opt/iobroker/iobroker-data/objects.jsonl # owner: iobroker # group: iobroker user::rw- group::r-x group:iobroker:rwx mask::rwx other::r--@magnus-0
Hmmm. Meine Rechte sehen anders aus:echad@chet:~ $ getfacl /opt/iobroker/iobroker-data/objects.jsonl getfacl: Removing leading '/' from absolute path names # file: opt/iobroker/iobroker-data/objects.jsonl # owner: iobroker # group: iobroker user::rw- group::r-x #effective:r-- group:iobroker:rwx #effective:rw- mask::rw- other::r-- -
@magnus-0
Hmmm. Meine Rechte sehen anders aus:echad@chet:~ $ getfacl /opt/iobroker/iobroker-data/objects.jsonl getfacl: Removing leading '/' from absolute path names # file: opt/iobroker/iobroker-data/objects.jsonl # owner: iobroker # group: iobroker user::rw- group::r-x #effective:r-- group:iobroker:rwx #effective:rw- mask::rw- other::r--nur bei mask:: gibt es ja einen Unterschied, richtig?
-
@magnus-0
Hmmm. Meine Rechte sehen anders aus:echad@chet:~ $ getfacl /opt/iobroker/iobroker-data/objects.jsonl getfacl: Removing leading '/' from absolute path names # file: opt/iobroker/iobroker-data/objects.jsonl # owner: iobroker # group: iobroker user::rw- group::r-x #effective:r-- group:iobroker:rwx #effective:rw- mask::rw- other::r--Kann man evtl. ein Backup wiederherstellen?
-
nur bei mask:: gibt es ja einen Unterschied, richtig?
@magnus-0 sagte in ioBroker startet nicht mehr:
nur bei mask:: gibt es ja einen Unterschied, richtig?
Ja, meine mask nimmt den usern und den Gruppen das x-bit.
Deine mask macht gar nix... -
@magnus-0 sagte in ioBroker startet nicht mehr:
nur bei mask:: gibt es ja einen Unterschied, richtig?
Ja, meine mask nimmt den usern und den Gruppen das x-bit.
Deine mask macht gar nix...Hast du noch eine Idee was ich machen kann oder muss ich ein Backup versuchen einzuspielen oder neuinstallieren?
-
Hast du noch eine Idee was ich machen kann oder muss ich ein Backup versuchen einzuspielen oder neuinstallieren?
Was sagt denn jetzt
iobroker statusUnd wie bist du da sonst unterwegs?
sudo ln -s /usr/bin/node /usr/bin/nodejs uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs -
Was sagt denn jetzt
iobroker statusUnd wie bist du da sonst unterwegs?
sudo ln -s /usr/bin/node /usr/bin/nodejs uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejsEinmal folgende Ausgabe
pi@DELO0150:~ $ iobroker status Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 Objects database error: connect ECONNREFUSED 127.0.0.1:9001 iobroker is not running on this host. Objects type: jsonl States type: jsonlDanach nochmal ausgeführt, dann folgende Ausgabe:
pi@DELO0150:~ $ iobroker status Server Cannot start inMem-objects on port 9001: Failed to lock DB file "/opt/iobroker/iobroker-data/objects.jsonl"!Zweiter Befehl:
pi@DELO0150:~ $ 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 pi@DELO0150:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.17.1 v16.17.1 8.15.0 4.0.23 pi pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker /home/pi OK:1 http://archive.raspberrypi.org/debian buster InRelease OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease OK:3 https://deb.nodesource.com/node_16.x buster InRelease Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Alle Pakete sind aktuell. nodejs: Installiert: 16.17.1-deb-1nodesource1 Installationskandidat: 16.17.1-deb-1nodesource1 Versionstabelle: *** 16.17.1-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x buster/main armhf Packages 100 /var/lib/dpkg/status 10.24.0~dfsg-1~deb10u1 500 500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages