NEWS
[gelöst] InfluxDB 1.8.10 Remote Backup mit BackItUp
-
Hallo Zusammen,
da mein Raspi an seine Grenzen kam, bin ich umgezogen auf einen NUC mit Proxmox. Habe dort eine eine IoBroker VM und für InfluxDB und Grafana jeweils einen Container mit Debian 12 erstellt. Das Restore aus dem IoBroker Backup hat gut geklappt und die InfluxDB habe ich manuell wiederhergestellt. Läuft auch alles.
Jetzt will ich die InfluxDB wieder mit BackItUp sichern, aber ich kriege es einfach nicht hin. Hab auf dem IoBroker auch InfluxDB installiert, allerdings keine Datenbank angelegt. Wenn ich dann ein Backup starte, läuft das vom IoBroker sauber und zügig durch. Beim InfluxDB siehts anders aus, da kommt nach mehreren Minuten irgendwann folgende Fehlermeldung:[DEBUG] [influxDB] - InfluxDB-Backup started ... [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_08_30-15_19_46_vm_backupiobroker" [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_08_30-15_19_46_vm_backupiobroker" successfully deleted [DEBUG] [influxDB] - 2023/08/30 15:19:46 backing up metastore to /opt/iobroker/backups/influxDB_2023_08_30-15_19_46_vm_backupiobroker/meta.00 [ERROR] [influxDB] - Error: Command failed: influxd backup -portable -database iobroker -host 192.168.1.16:8088 "/opt/iobroker/backups/influxDB_2023_08_30-15_19_46_vm_backupiobroker" 2023/08/30 15:19:46 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (0)... 2023/08/30 15:19:48 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (1)... 2023/08/30 15:19:50 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (2)... 2023/08/30 15:19:52 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (3)... 2023/08/30 15:19:54 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (4)... 2023/08/30 15:19:56 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (5)... 2023/08/30 15:19:58 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 3.01s and retrying (6)... 2023/08/30 15:20:01 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 11.441s and retrying (7)... 2023/08/30 15:20:12 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 43.477s and retrying (8)... 2023/08/30 15:20:56 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2m45.216s and retrying (9)... backup: dial tcp 192.168.1.16:8088: connect: connection refused
Jemand eine Idee was ich noch machen kann?
Gruß Johannes
-
Wenn die InfluxDB von einem entfernten Server gesichert werden soll, müssen in der influxdb.conf auf dem entfernten Server die Remote-Rechte für den RPC-Dienst angepasst werden. bind-address = "<InfluxDB-IP>:8088" oder bind-address = "0.0.0.0:8088" Nach dem Änderungen in der Konfiguration muss der InfluxDB-Dienst neugestartet werden.
-
@crunchip Guten Morgen,
das hatte ich gelesen und dort die IP der InfluxDB 192.168.1.16 eingetragen. Habe es jetzt mal anders versucht:
sudo nano /etc/influxdb/influxdb.conf
dann das geändert auf:
# Bind address to use for the RPC service for backup and restore. # bind-address = "127.0.0.1:8088" bind-adress = "0.0.0.0:8088"
und dann den Dienst neu gestartet:
sudo systemctl restart influxd
Das Ergebnis bleibt leider das Gleiche. Verbindung abgelehnt.
Ich bin neu was Proxmox angeht, kann es sein das die Verbindung zwischen den Containern und VMs verhindert wird?Gruß Johannes
-
@crunchip Das war das Problem, ich habe bei dem LXC Container unter Netzwerk die Firewall deaktiviert und jetzt läuft das Backup durch
Danke für deinen Denkanstoß.
Gruß Johannes