NEWS
Influxdb2 Backitup
-
@mickym Ja, so hast Du es geschrieben
-
so dann
schau mal ob es diese Datei noch gibt
sudo ls -la /etc/systemd/system/influxd.service
-
@mickym sagte in Influxdb2 Backitup:
sudo ls -la /etc/systemd/system/influxd.service
Nein
Andy@homebridge:~ $ sudo ls -la /etc/systemd/system/influxd.service ls: Zugriff auf '/etc/systemd/system/influxd.service' nicht möglich: Datei oder Verzeichnis nicht gefunden Andy@homebridge:~ $
-
@damrak2022 dann zeig nochmal
sudo systemctl disable influxdb
-
Andy@homebridge:~ $ sudo ls -la /etc/systemd/system/influxd.service ls: Zugriff auf '/etc/systemd/system/influxd.service' nicht möglich: Datei oder Verzeichnis nicht gefunden Andy@homebridge:~ $ systemctl disable influxdb ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files === Legitimierung ist notwendig für die Verwaltung von Systemdiensten und Einheitendateien. Authenticating as: ,,, (Andy) Password: ==== AUTHENTICATION COMPLETE === ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon === Legitimierung ist zum erneuten Laden des systemd-Zustands notwendig. Authenticating as: ,,, (Andy) Password: ==== AUTHENTICATION COMPLETE === Andy@homebridge:~ $
-
@damrak2022 Ja mit sudo - hatte ich vergessen
-
Andy@homebridge:~ $ sudo systemctl disable influxdb Andy@homebridge:~ $
-
-
@mickym sagte in Influxdb2 Backitup:
systemctl status influxdb
Andy@homebridge:~ $ systemctl status influxdb ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled) Active: active (running) since Thu 2023-04-20 02:15:56 CEST; 17min ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (influxd) Tasks: 9 (limit: 3932) CPU: 2.329s CGroup: /system.slice/influxdb.service └─718 /usr/bin/influxd Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.631155Z lvl=info msg="Open store (end)" log_id=0hJ0> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.632101Z lvl=info msg="Starting retention policy enf> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.632359Z lvl=info msg="Starting precreation service"> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[715]: InfluxDB API at http://localhost:8086/ready unavailable after 1 attempts... Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.640169Z lvl=info msg="Starting query controller" lo> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.667478Z lvl=info msg="Configuring InfluxQL statemen> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697134Z lvl=info msg=Starting log_id=0hJ07gPl000 se> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697799Z lvl=info msg=Listening log_id=0hJ07gPl000 s> Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distributed, time series database. lines 1-20/20 (END)
-
@damrak2022 Witzig ist dass der Service nun wieder aktiv gezeigt wird.
mach nochmal
sudo systemctl stop influxdb
und dann nochmal
systemctl status influxdb
sudo systemctl stop influxdb 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: inactive (dead) since Thu 2023-04-20 02:36:24 CEST; 3s ago Docs: https://docs.influxdata.com/influxdb/ Process: 563 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS) Main PID: 572 (code=killed, signal=TERM) CPU: 29.183s
Bei aktiv muss dead stehen und dann Maschine neu starten - dann sollte mit dem disable nichts mehr stehen.
-
@mickym sagte in Influxdb2 Backitup:
systemctl status influxdb
Andy@homebridge:~ $ sudo systemctl stop influxdb Andy@homebridge:~ $ systemctl status influxdb ● influxdb.service - InfluxDB is an open-source, distributed, time series datab> Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor pre> Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:5> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:5> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:5> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:5> Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, dist> Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, dis> Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, dist> Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU ti> lines 1-17/17 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor prese> Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.> Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distri> Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, distr> Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, distri> Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU time. ~ ~ ~ ~ ~ ~ ~ lines 1-17/17 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled) Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.640169Z lvl=info msg="Starting query controller" log_id=0hJ07gPl000 service=storage-reads concurrency_> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.667478Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0hJ0> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697134Z lvl=info msg=Starting log_id=0hJ07gPl000 service=telemetry interval=8h Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697799Z lvl=info msg=Listening log_id=0hJ07gPl000 service=tcp-listener transport=http addr=:8086 port=> Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, distributed, time series database... Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU time. ~ ~ ~ ~ ~ ~ ~ lines 1-17/17 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled) Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.640169Z lvl=info msg="Starting query controller" log_id=0hJ07gPl000 service=storage-reads concurrency_quota=1024> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.667478Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0hJ07gPl000 ma> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697134Z lvl=info msg=Starting log_id=0hJ07gPl000 service=telemetry interval=8h Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697799Z lvl=info msg=Listening log_id=0hJ07gPl000 service=tcp-listener transport=http addr=:8086 port=8086 Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, distributed, time series database... Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU time. ~ ~ ~ ~ ~ ~ ~ lines 1-17/17 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled) Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.640169Z lvl=info msg="Starting query controller" log_id=0hJ07gPl000 service=storage-reads concurrency_quota=1024 initi> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.667478Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0hJ07gPl000 max_sele> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697134Z lvl=info msg=Starting log_id=0hJ07gPl000 service=telemetry interval=8h Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697799Z lvl=info msg=Listening log_id=0hJ07gPl000 service=tcp-listener transport=http addr=:8086 port=8086 Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, distributed, time series database... Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU time. ~ ~ ~ ~ ~ ~ ~ lines 1-17/17 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled) Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.640169Z lvl=info msg="Starting query controller" log_id=0hJ07gPl000 service=storage-reads concurrency_quota=1024 initial_me> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.667478Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0hJ07gPl000 max_select_po> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697134Z lvl=info msg=Starting log_id=0hJ07gPl000 service=telemetry interval=8h Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697799Z lvl=info msg=Listening log_id=0hJ07gPl000 service=tcp-listener transport=http addr=:8086 port=8086 Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, distributed, time series database... Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU time. ~ ~ ~ ~ ~ ~ ~ lines 1-17/17 (END) ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; disabled; vendor preset: enabled) Active: inactive (dead) since Thu 2023-04-20 02:43:04 CEST; 15s ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 718 (code=killed, signal=TERM) CPU: 2.842s Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.640169Z lvl=info msg="Starting query controller" log_id=0hJ07gPl000 service=storage-reads concurrency_quota=1024 initial_mem> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.667478Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0hJ07gPl000 max_select_poi> Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697134Z lvl=info msg=Starting log_id=0hJ07gPl000 service=telemetry interval=8h Apr 20 02:15:55 homebridge influxd-systemd-start.sh[718]: ts=2023-04-20T00:15:55.697799Z lvl=info msg=Listening log_id=0hJ07gPl000 service=tcp-listener transport=http addr=:8086 port=8086 Apr 20 02:15:56 homebridge influxd-systemd-start.sh[715]: InfluxDB started Apr 20 02:15:56 homebridge systemd[1]: Started InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: Stopping InfluxDB is an open-source, distributed, time series database... Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Succeeded. Apr 20 02:43:04 homebridge systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database. Apr 20 02:43:04 homebridge systemd[1]: influxdb.service: Consumed 2.842s CPU time. ~ ~ ~ ~ ~ ~ ~ lines 1-17/17 (END)
-
@damrak2022 Ok - dann ist das Teil nun inaktiv.
Jetzt die beiden Verzeichnisse weg machen:
Andy@homebridge:~ $ sudo rm -R /var/lib/influxdb Andy@homebridge:~ $ sudo rm -R /etc/influxdb
Nochmal
sudo apt purge influxdb
und Ausgabe zeigen:
-
@mickym sagte in Influxdb2 Backitup:
sudo rm -R /etc/influxdb
Die sind garnicht da:
Andy@homebridge:~ $ sudo rm -R /var/lib/influxdb rm: das Entfernen von '/var/lib/influxdb' ist nicht möglich: Datei oder Verzeichnis nicht gefunden Andy@homebridge:~ $ sudo rm -R /etc/influxdb rm: das Entfernen von '/etc/influxdb' ist nicht möglich: Datei oder Verzeichnis nicht gefunden Andy@homebridge:~ $
-
-
@mickym sagte in Influxdb2 Backitup:
sudo apt purge influxdb
Andy@homebridge:~ $ sudo apt purge influxdb Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Paket »influxdb« ist nicht installiert, wird also auch nicht entfernt. Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt: influxdb2-cli Verwenden Sie »sudo apt autoremove«, um es zu entfernen. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert. Andy@homebridge:~ $
-
@damrak2022 Gut nun Maschine neu starten.
-
-
@damrak2022 Ja Du hast RECHT:
-
Andy@homebridge:~ $ sudo apt purge influxdb2 Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Paket »influxdb2« ist nicht installiert, wird also auch nicht entfernt. Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt: influxdb2-cli Verwenden Sie »sudo apt autoremove«, um es zu entfernen. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert. Andy@homebridge:~ $
Was ist denn mit dem influxdb2-cli ?
-
@damrak2022 Ja das hätte ich gedacht, dass man drauf lassen kann, aber dann mach
sudo apt autoremove