NEWS
ioBroker startet nicht mehr
-
@thomas-braun sagte in ioBroker startet nicht mehr:
sudo kill 1226
pi@DELO0150:~ $ sudo kill 1226 kill: (1226): Kein passender Prozess gefunden
-
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.jsonl
Wenn 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.
-
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
-
Denkst du, wir bekommen das heute irgendwie hin?
-
sudo systemctl disable iobroker.service sudo systemctl stop iobroker.service
Sollte den restart loop unterbrechen.
-
pi@DELO0150:~ $ sudo systemctl disable iobroker.service Removed /etc/systemd/system/multi-user.target.wants/iobroker.service.
-
Ich hab jetzt mal noch
iobroker stop
ausgefü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?
-
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--
-
@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?
-
Kann man evtl. ein Backup wiederherstellen?
-
@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?