NEWS
Influxdb2 Backitup
-
@damrak2022 na dann lösch noch mal und dann löschen wir auch die ganzen config files.
Also nochmal
sudo apt remove influxdb2
-
@mickym sagte in Influxdb2 Backitup:
sudo apt remove influxdb2
Das sieht so aus:
Andy@homebridge:~ $ sudo apt remove influxdb2 Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt: influxdb2-cli Verwenden Sie »sudo apt autoremove«, um es zu entfernen. Die folgenden Pakete werden ENTFERNT: influxdb2 0 aktualisiert, 0 neu installiert, 1 zu entfernen und 1 nicht aktualisiert. Nach dieser Operation werden 99,1 MB Plattenplatz freigegeben. Möchten Sie fortfahren? [J/n] j (Lese Datenbank ... 55637 Dateien und Verzeichnisse sind derzeit installiert.) Entfernen von influxdb2 (2.7.0-1) ... Andy@homebridge:~ $
-
Ja das passt
dann löschen:
sudo rm -R /var/lib/influxdb
dann löschen
sudo rm -R /etc/influxdb
dann wieder installieren:
sudo apt install influxdb2
und dann GUI aufmachen.
-
Andy@homebridge:~ $ sudo rm -R /var/lib/influxdb Andy@homebridge:~ $ sudo rm -R /etc/influxdb Andy@homebridge:~ $
-
@damrak2022 sagte in Influxdb2 Backitup:
Andy@homebridge:~ $ sudo rm -R /var/lib/influxdb Andy@homebridge:~ $ sudo rm -R /etc/influxdb Andy@homebridge:~ $
Wieder installieren und dann GUI aufrufen.
-
@mickym Genau das Gleiche. Der All Access Token ist noch drin und ich werde auch garnicht zur Einrichtung aufgefordert.
-
@damrak2022 dann ist vielleicht noch irgendwo anders Mist. drin.
Dann versuchen wir mal:
sudo apt purge influxdb2
dann wieder die beiden Verzeichnisse löschen:
sudo rm -R /var/lib/influxdb
dann löschen
sudo rm -R /etc/influxdb
-
@mickym Okay
Andy@homebridge:~ $ sudo apt purge influxdb2 Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt: influxdb2-cli Verwenden Sie »sudo apt autoremove«, um es zu entfernen. Die folgenden Pakete werden ENTFERNT: influxdb2* 0 aktualisiert, 0 neu installiert, 1 zu entfernen und 1 nicht aktualisiert. Nach dieser Operation werden 99,1 MB Plattenplatz freigegeben. Möchten Sie fortfahren? [J/n] j (Lese Datenbank ... 55637 Dateien und Verzeichnisse sind derzeit installiert.) Entfernen von influxdb2 (2.7.0-1) ... (Lese Datenbank ... 55627 Dateien und Verzeichnisse sind derzeit installiert.) Löschen der Konfigurationsdateien von influxdb2 (2.7.0-1) ... Andy@homebridge:~ $
-
@mickym sagte in Influxdb2 Backitup:
sudo rm -R /etc/influxdb
und wieder installieren? Verzeichnisse habe ich gelöscht
-
-
@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:~ $