NEWS
influxDB startet nicht mehr
-
Hallo zusammen,
ich habe ein Problem mit der InfluxDB. Aus Mangel an der richtigen Kategorie für den Thema versuche ich mal hier mein Glück:
Ich habe die InfluxDB auf meinem RPi 4 installiert und auch erfolgreich zum Laufen gebracht. Nach einem Neustart des RPi kann ich die DB aber leider nicht mehr starten. Der RPi hat beim Neustart eine neue IP erhalten - nach meinem Verständnis kann das aber nicht der Grund für die Probleme sein.
Folgendes Fehlerbild:
pi@raspberrypi:~ $ sudo systemctl unmask influxdb.service pi@raspberrypi:~ $ sudo systemctl start influxdb Job for influxdb.service failed because the control process exited with error code. See "systemctl status influxdb.service" and "journalctl -xe" for details.
Ausgabe von "systemctl status influxdb.service":
pi@raspberrypi:~ $ systemctl status influxdb.service ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: activating (start) since Fri 2021-08-20 23:00:34 BST; 1s ago Docs: https://docs.influxdata.com/influxdb/ Cntrl PID: 4182 (influxd-systemd) Tasks: 12 (limit: 4915) CGroup: /system.slice/influxdb.service ├─4182 /bin/bash -e /usr/lib/influxdb/scripts/influxd-systemd-start.sh ├─4183 /usr/bin/influxd -config /etc/influxdb/influxdb.conf └─4219 sleep 1 Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.065767Z lvl=info msg="Go runtime" log_id=0W5P7S4G000 version=go1.13.8 maxprocs=4 Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: Merging with configuration at: /etc/influxdb/influxdb.conf Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.167184Z lvl=info msg="Using data dir" log_id=0W5P7S4G000 service=store path=/var/lib/influxdb/data Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.167279Z lvl=info msg="Compaction settings" log_id=0W5P7S4G000 service=store max_concurrent_compactions=2 t Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.167329Z lvl=info msg="Open store (start)" log_id=0W5P7S4G000 service=store trace_id=0W5P7STl000 op_name=ts Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.174666Z lvl=info msg="Opened file" log_id=0W5P7S4G000 engine=tsm1 service=filestore path=/var/lib/influxdb Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.174840Z lvl=info msg="Reading file" log_id=0W5P7S4G000 engine=tsm1 service=cacheloader path=/var/lib/influ Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.177688Z lvl=info msg="Reading file" log_id=0W5P7S4G000 engine=tsm1 service=cacheloader path=/var/lib/influ Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.224935Z lvl=info msg="Opened shard" log_id=0W5P7S4G000 service=store trace_id=0W5P7STl000 op_name=tsdb_ope Aug 20 23:00:34 raspberrypi influxd-systemd-start.sh[4182]: ts=2021-08-20T22:00:34.479281Z lvl=info msg="Opened shard" log_id=0W5P7S4G000 service=store trace_id=0W5P7STl000 op_name=tsdb_ope lines 1-21/21 (END)
Ausgabe von "journalctl -xe":
pi@raspberrypi:~ $ journalctl -xe -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The unit influxdb.service has entered the 'failed' state with result 'exit-code'. Aug 20 23:01:16 raspberrypi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. -- Subject: A start job for unit influxdb.service has failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit influxdb.service has finished with a failure. -- -- The job identifier is 2453063 and the job result is failed. Aug 20 23:01:17 raspberrypi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart. Aug 20 23:01:17 raspberrypi systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 40806. -- Subject: Automatic restarting of a unit has been scheduled -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- Automatic restarting of the unit influxdb.service has been scheduled, as the result for -- the configured Restart= setting for the unit. Aug 20 23:01:17 raspberrypi systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. -- Subject: A stop job for unit influxdb.service has finished -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A stop job for unit influxdb.service has finished. -- -- The job identifier is 2453123 and the job result is done. Aug 20 23:01:17 raspberrypi systemd[1]: Starting InfluxDB is an open-source, distributed, time series database... -- Subject: A start job for unit influxdb.service has begun execution -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit influxdb.service has begun execution. -- -- The job identifier is 2453123. Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: Merging with configuration at: /etc/influxdb/influxdb.conf Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.063598Z lvl=info msg="InfluxDB starting" log_id=0W5PA41l000 version=1.8.9 branch=1.8 commit=d9b56321d579 Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.064190Z lvl=info msg="Go runtime" log_id=0W5PA41l000 version=go1.13.8 maxprocs=4 Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: Merging with configuration at: /etc/influxdb/influxdb.conf Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.165985Z lvl=info msg="Using data dir" log_id=0W5PA41l000 service=store path=/var/lib/influxdb/data Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.166084Z lvl=info msg="Compaction settings" log_id=0W5PA41l000 service=store max_concurrent_compactions=2 t Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.166136Z lvl=info msg="Open store (start)" log_id=0W5PA41l000 service=store trace_id=0W5PA4RW000 op_name=ts Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.172731Z lvl=info msg="Opened file" log_id=0W5PA41l000 engine=tsm1 service=filestore path=/var/lib/influxdb Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.172921Z lvl=info msg="Reading file" log_id=0W5PA41l000 engine=tsm1 service=cacheloader path=/var/lib/influ Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.179869Z lvl=info msg="Reading file" log_id=0W5PA41l000 engine=tsm1 service=cacheloader path=/var/lib/influ Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.223677Z lvl=info msg="Opened shard" log_id=0W5PA41l000 service=store trace_id=0W5PA4RW000 op_name=tsdb_ope Aug 20 23:01:17 raspberrypi influxd-systemd-start.sh[4464]: ts=2021-08-20T22:01:17.470847Z lvl=info msg="Opened shard" log_id=0W5PA41l000 service=store trace_id=0W5PA4RW000 op_name=tsdb_ope lines 2708-2756/2756 (END)
Leider werde ich daraus nicht schlau. Hat jemand eine Idee für die Ursache?
Danke und Gruß!
-
@chillkroete1206 schau mal hier
-
@chillkroete1206 schau mal hier
-
@crunchip Danke!
Der folgende Tipp von hier [gefunden über deine Verlinkung] hat geholfen:
Open /usr/lib/influxdb/scripts/influxd-systemd-start.sh
[...]
Set the sleep command in line 29 to 10 seconds (depending on how long does it take your influx to start, for me 10 cycles (line 25) of 10 seconds was enough)Gruß!