NEWS
Influxdb2 Backitup
-
-
@mickym sagte in Influxdb2 Backitup:
systemctl status influxdb
Uff
Andy@homebridge:~ $ systemctl status influxdb ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2023-04-17 13:41:27 CEST; 2 days ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 717 (influxd) Tasks: 19 (limit: 3932) CPU: 8min 17.766s CGroup: /system.slice/influxdb.service └─717 /usr/bin/influxd Apr 20 00:42:36 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T22:42:36.631449Z lvl=info msg="Retention policy deletion check (end)" log_id=0hFl9puG000 service=retention op_name=retention_de> Apr 20 01:12:36 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:12:36.631913Z lvl=info msg="Retention policy deletion check (start)" log_id=0hFl9puG000 service=retention op_name=retention_> Apr 20 01:12:36 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:12:36.632045Z lvl=info msg="Retention policy deletion check (end)" log_id=0hFl9puG000 service=retention op_name=retention_de> Apr 20 01:22:24 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:22:24.632000Z lvl=info msg="Cache snapshot (start)" log_id=0hFl9puG000 service=storage-engine engine=tsm1 op_name=tsm1_cache> Apr 20 01:22:24 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:22:24.643437Z lvl=info msg="Snapshot for path written" log_id=0hFl9puG000 service=storage-engine engine=tsm1 op_name=tsm1_ca> Apr 20 01:22:24 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:22:24.643518Z lvl=info msg="Cache snapshot (end)" log_id=0hFl9puG000 service=storage-engine engine=tsm1 op_name=tsm1_cache_s> Apr 20 01:31:32 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:31:32.352244Z lvl=info msg=Unauthorized log_id=0hFl9puG000 error="token required" Apr 20 01:39:07 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:39:07.541303Z lvl=info msg=Unauthorized log_id=0hFl9puG000 error="session not found" Apr 20 01:42:36 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:42:36.631495Z lvl=info msg="Retention policy deletion check (start)" log_id=0hFl9puG000 service=retention op_name=retention_> Apr 20 01:42:36 homebridge influxd-systemd-start.sh[717]: ts=2023-04-19T23:42:36.631747Z lvl=info msg="Retention policy deletion check (end)" log_id=0hFl9puG000 service=retention op_name=retention_de> lines 1-20/20 (END)
-
@mickym Das habe ich befürchtet.
starte einfach mal deine maschine neu.
-
@mickym Den Rechner oder den Raspi
-
@damrak2022 Den Raspi - da läuft doch Deine influx db drauf. Achte darauf dass der Influx Adapter gestoppt ist.
-
@mickym Okay - Der Adapter ist schon die ganze Zeit gestoppt
-
@mickym Startet gerade wieder
-
@damrak2022 Gut dann checkst Du - aber der Service sollte nun nicht mehr laufen oder einen Fehler bringen.
Also
systemctl status influxdb
-
Andy@homebridge:~ $ systemctl status influxdb ● influxdb.service - InfluxDB is an open-source, distributed, time series datab> Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor pres> Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 3mi> Docs: https://docs.influxdata.com/influxdb/ Process: 736 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (> CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job,> Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, dist> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'ex> Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-sour> lines 1-12/12 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: > Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 3min 45> Docs: https://docs.influxdata.com/influxdb/ Process: 736 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code> CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, res> Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distribu> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-c> Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-12/12 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 3min 45s ago Docs: https://docs.influxdata.com/influxdb/ Process: 736 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=203/EXEC) CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5. Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too quickly. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-code'. Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-12/12 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 3min 45s ago Docs: https://docs.influxdata.com/influxdb/ Process: 736 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=203/EXEC) CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5. Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too quickly. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-code'. Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-12/12 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 3min 45s ago Docs: https://docs.influxdata.com/influxdb/ Process: 736 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=203/EXEC) CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5. Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too quickly. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-code'. Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-12/12 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 3min 45s ago Docs: https://docs.influxdata.com/influxdb/ Process: 736 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=203/EXEC) CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5. Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too quickly. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-code'. Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-12/12 (END)
-
@damrak2022 OK - also active ist es nicht mehr.
Gut wir schauen aber nun noch dieses Verzeichnis an - auch wenn der Service nicht mehr aktiv ist.
schau mal
sudo ls -la /usr/lib/influxdb
-
Andy@homebridge:~ $ sudo ls -la /usr/lib/influxdb ls: Zugriff auf '/usr/lib/influxdb' nicht möglich: Datei oder Verzeichnis nicht gefunden Andy@homebridge:~ $
-
@damrak2022 Gut ist nicht mehr da - also wieder neu installieren und dann GUI
sudo apt install influxdb2
-
@mickym sagte in Influxdb2 Backitup:
sudo apt install influxdb2
Momentan nur drehendes Symbol. Ich sollte meiner Rechner mal kurz Neustarten, denn ich denke das ist der Grund
-
@damrak2022 Wie nur drehendes Symbol - hat denn die Installation geklappt?
-
@mickym Ja
-
@mickym Ich starte mal neu
-
-
@mickym sagte in Influxdb2 Backitup:
systemctl status influxdb
Nein noch nicht
Andy@homebridge:~ $ systemctl status influxdb ● influxdb.service - InfluxDB is an open-source, distributed, time series datab> Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor pres> Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 18m> Docs: https://docs.influxdata.com/influxdb/ CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job,> Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, dist> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'ex> Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-sour> lines 1-11/11 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: e> Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 18min ago Docs: https://docs.influxdata.com/influxdb/ CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, rest> Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distribut> Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too > Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-co> Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, d> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-11/11 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 18min ago Docs: https://docs.influxdata.com/influxdb/ CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5. Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too quickly. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-code'. Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-11/11 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2023-04-20 01:50:08 CEST; 18min ago Docs: https://docs.influxdata.com/influxdb/ CPU: 4ms Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5. Apr 20 01:50:08 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Start request repeated too quickly. Apr 20 01:50:08 homebridge systemd[1]: influxdb.service: Failed with result 'exit-code'. Apr 20 01:50:08 homebridge systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-11/11 (END)
-
@damrak2022 Ok - dann lass es uns nochmal machen . aber den Service vorher stoppenn.
Also nochmal das Ganze.
sudo systemctl stop influxdb
dann
sudo systemctl disable influxdb
dann
Maschine neu starten
sudo apt purge influxdb
dann wieder die beiden Verzeichnisse löschen.
Andy@homebridge:~ $ sudo rm -R /var/lib/influxdb Andy@homebridge:~ $ sudo rm -R /etc/influxdb
Nochmal kontrollieren, dass der Service nicht mehr existiert:
systemctl status influxdb
Dann Maschine nochmal neu starten.
Dann wieder installieren und erst mal zeigen was bei
apt install influxdb
rauskommt.
-
@mickym okay