NEWS
BackItUp - Fehler beim InfluxDB Backup
-
Hallo zusammen,
ich möchte über den BackItUp-Adapter gerne meine InfluxDB auf einem USB-Stick sichern, der an einer FritzBox angeschlossen ist.
Hierbei kommt es aber immer zu einem Fehler.
Gestartet... [DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 704 states saved [DEBUG] [iobroker] - host.raspberrypi 875 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_27-11_16_00_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [ERROR] [influxDB] - [IGNORED] Error: Command failed: influxd backup -portable -database Energie -host 192.168.178.42:8088 "/opt/iobroker/backups/influxDB_2021_02_27-11_16_06_backupiobroker" 2021/02/27 11:16:06 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2s and retrying (0)... 2021/02/27 11:16:08 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2s and retrying (1)... 2021/02/27 11:16:10 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2s and retrying (2)... 2021/02/27 11:16:12 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2s and retrying (3)... 2021/02/27 11:16:14 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2s and retrying (4)... 2021/02/27 11:16:16 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2s and retrying (5)... 2021/02/27 11:16:18 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 3.01s and retrying (6)... 2021/02/27 11:16:21 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 11.441s and retrying (7)... 2021/02/27 11:16:33 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 43.477s and retrying (8)... 2021/02/27 11:17:16 Download shard 0 failed dial tcp 192.168.178.42:8088: connect: connection refused. Waiting 2m45.216s and retrying (9)... backup: dial tcp 192.168.178.42:8088: connect: connection refused [DEBUG] [cifs] - done [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [DEBUG] [umount] - mount activ... umount in 60 Seconds!! [DEBUG] [umount] - umount successfully completed [DEBUG] [umount] - done [EXIT] 0
Das Backup für den iobroker scheint zu funktionieren, nur nicht das für die InfluxDB.
Versucht habe ich es mit dem BackItUp-Adapter in Version 1.8.5 und 2.0.0. Jedesmal der gleiche Fehler.
Hat jemand eine Idee woran das liegt?
-
@prezl sagte in BackItUp - Fehler beim InfluxDB Backup:
connect: connection refused. Waiting 2s and retrying (0)..
läuft influx local oder separat?
bind addresse RPC sollte standard "127.0.0.1:8088" in der influx config stehen, zufälligerweise da was geändert? -
In der Influx config wurde nichts geändert.
pi@raspberrypi:~ $ influxd config Merging with configuration at: /etc/influxdb/influxdb.conf reporting-disabled = false bind-address = "127.0.0.1:8088"
Die InfluxDB läuft auf dem gleichen Raspberry wie der iobroker (IP-Adresse 192.168.178.42). Deshalb sehen meine Einstellungen so aus:
Wenn ich "InfluxDB-Hostname" auf localhost oder Sicherungsquelle auf Lokal stelle, kommt folgender Fehler:
[DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 738 states saved [DEBUG] [iobroker] - host.raspberrypi 914 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_27-14_43_50_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [ERROR] [influxDB] - [IGNORED] Error: Command failed: influxd backup -portable -database Energie -host localhost:8088 "/opt/iobroker/backups/influxDB_2021_02_27-14_43_56_backupiobroker" backup: open /opt/iobroker/backups/influxDB_2021_02_27-14_43_56_backupiobroker/meta.00.pending: stale NFS file handle [DEBUG] [cifs] - done [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [DEBUG] [umount] - mount activ... umount in 60 Seconds!!
-
@prezl deine Sicherungsquelle muss auf Local stehen, da du influx ja direkt auf dem iobroker laufen hast. Bei Host entweder die IP oder gar nichts eingeben, sollte auch automatisch richtig eingetragen werden, wenn du auf ermittle Konfig drückst.
Desweiteren schreibst du@prezl sagte in BackItUp - Fehler beim InfluxDB Backup:
Das Backup für den iobroker scheint zu funktionieren,
ja oder nein?
Wenn dies ebenfalls nicht funktioniert, dann stimmt deine CIFS Verbindung nicht -
Ich gehe davon aus, dass das Backup vom iobroker funktioniert. Es wird eine Datei auf dem USB-Stick erstellt, z. B. "iobroker_2021_02_27-14_39_03_backupiobroker.tar.gz" und im Tab "Wiederherstellen" kann ich die entsprechende Sicherung auch auswählen.
Wenn ich die Sicherungsquelle bei InfluxDB auf Local stelle, kommt es zu folgendem Fehler (Zeile 14).
[DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 738 states saved [DEBUG] [iobroker] - host.raspberrypi 914 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_27-15_41_35_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [ERROR] [influxDB] - [IGNORED] Error: Command failed: influxd backup -portable -database Energie "/opt/iobroker/backups/influxDB_2021_02_27-15_41_41_backupiobroker" backup: open /opt/iobroker/backups/influxDB_2021_02_27-15_41_41_backupiobroker/meta.00.pending: stale NFS file handle [DEBUG] [cifs] - done [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done
-
@prezl sagte in BackItUp - Fehler beim InfluxDB Backup:
Es wird eine Datei auf dem USB-Stick erstellt
ok, wenn die Datei vorhanden ist, funktioniert ja die generelle Verbindung zum Stick, also ein spezielles Problem mit Influx.
stell mal auf Remote und gib bei Host deine IP an, so steht es auch im offiziellen Thread
-
@crunchip sagte in BackItUp - Fehler beim InfluxDB Backup:
stell mal auf Remote und gib bei Host deine IP an
So hatte ich es ja ganz am Anfang, siehe den ersten Post. Nur kommt dann eben der Fehler...
Muss ich für ein Backup bei InfluxDB etwas spezielles einstellen?
-
@prezl sagte in BackItUp - Fehler beim InfluxDB Backup:
Muss ich für ein Backup bei InfluxDB etwas spezielles einstellen?
nicht das ich wüsste
aber wenn du testweise mal in der influx config die bind Adresse änderst
statt # bind-address = "127.0.0.1:8088"bind-address = "192.168.178.42.1:8088"
danach den service neu starten
systemctl restart influxdb.service
-
Hat leider auch nichts gebracht...
-
-
@crunchip
Wenn du Influx auf dem gleichen System wie iobroker hast, stelle in Backitup auf lokal.
Bind adress dann bitte auf dem Standard lassen.
Also 127.0.0.1.Falls der Fehler immernoch erscheint, dann ermittelte den Pfad von influxd und trage diesen ebenfalls in Backitup ein.
-
@simatec das hat er ja schon versucht, siehe https://forum.iobroker.net/post/589028
dann bleibt nur noch den Pfad direkt einzutragen, da dieser leer ist -
@simatec
Bind Adresse auf Standard und Sicherungsquelle auf Lokal funktioniert leider auch nicht.Wie ermittle ich den richtigen Pfad der InfluxDB?
-
which influxd
-
@simatec
Leider immer noch nicht.Das ist eingestellt
pi@raspberrypi:~ $ which influxd /usr/bin/influxd
bind-address = "127.0.0.1:8088"
Und dann kommt dieser Fehler
[DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [ERROR] [influxDB] - [IGNORED] Error: Command failed: "/usr/bin/influxd" backup -portable -database Energie "/opt/iobroker/backups/influxDB_2021_02_27-21_45_49_backupiobroker" backup: open /opt/iobroker/backups/influxDB_2021_02_27-21_45_49_backupiobroker/meta.00.pending: stale NFS file handle [DEBUG] [cifs] - done [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done
-
@prezl
Versuche das ganze bitte mal lokal zu sichern.
Ich habe die Vermutung, dass etwas an deinen Schreibrechten auf dem NAS nicht passt.Um das Problem einzugrenzen, schaue mal, ob es als lokale Sicherung läuft
-
@simatec
Ok, werde ich mal versuchen. Komisch ist dann aber, dass die iobroker Sicherungsdatei auf das NAS geschrieben wird. -
@simatec
Eine lokale Sicherung funktioniert auch nicht richtig.Ich habe das Verzeichnis /home/pi/Test erstellt und wollte darin sichern, aber auch das schaff ich nicht...
Die Sicherungsdateien für iobroker und InfluxDB werden aber alle im Ordner /opt/iobroker/backups/ erstellt.
Gestartet... [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 767 states saved [DEBUG] [iobroker] - host.raspberrypi 945 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_28-15_39_30_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2021_02_28-15_39_36_backupiobroker.tar.gz [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [DEBUG] [influxDB] - done [DEBUG] [cifs] - Copy iobroker_2021_02_28-15_39_30_backupiobroker.tar.gz... [ERROR] [cifs] - Error: EACCES: permission denied, open '/home/pi/Test/iobroker_2021_02_28-15_39_30_backupiobroker.tar.gz' [DEBUG] [cifs] - Copy influxDB_2021_02_28-15_39_36_backupiobroker.tar.gz... [ERROR] [cifs] - Error: EACCES: permission denied, open '/home/pi/Test/influxDB_2021_02_28-15_39_36_backupiobroker.tar.gz' [DEBUG] [cifs] - done [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [DEBUG] [umount] - done [EXIT] 0
-
@prezl
Nein lokal meine ich ohne copy oder NAS.
Einfach in das iobroker Backup Verzeichnis sichern -
@simatec
Ohne copy oder NAS funktioniert es. Da läuft die Sicherung ohne Fehler durch.Gestartet... [DEBUG] [iobroker] - host.raspberrypi 767 states saved [DEBUG] [iobroker] - host.raspberrypi 945 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_02_28-20_47_32_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2021_02_28-20_47_38_backupiobroker.tar.gz [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted [DEBUG] [influxDB] - done [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [EXIT] 0