NEWS
[gelöst] Backitup kann influxdb Datenbank nicht sichern.
-
@simatec said in Backitup kann influxdb Datenbank nicht sichern.:
iobroker fix
Alles so gemacht, wie von Dir gewünscht. Aber leider immernoch dasselbe Bild ....
Started iobroker ... [DEBUG] [mount] - mount activ... umount is started before mount!! [DEBUG] [mount] - umount successfully completed [DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 2156 states saved [DEBUG] [iobroker] - host.raspberrypi 2575 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_04_11-14_21_02_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 iobroker "/opt/iobroker/backups/influxDB_2021_04_11-14_21_11_backupiobroker" backup: copy: read /opt/iobroker/backups/influxDB_2021_04_11-14_21_11_backupiobroker/meta.00: input/output error [DEBUG] [redis] - Start Redis Backup ... [DEBUG] [redis] - Created redistmp directory [DEBUG] [redis] - Backup created: /opt/iobroker/backups/redis_2021_04_11-14_21_12_backupiobroker.tar.gz [DEBUG] [redis] - Try deleting the redis tmp directory: "/opt/iobroker/backups/redistmp" [DEBUG] [redis] - redis tmp directory "/opt/iobroker/backups/redistmp" successfully deleted [DEBUG] [redis] - done [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 is started ... [DEBUG] [umount] - umount successfully completed [DEBUG] [umount] - done [EXIT] 0
-
@christian-kohlöffel hmmm dein Rechteproblem ist extrem korrios ...
Wir könnten noch einen Versuch starten.
Trage mal als vollständigen Pfad in den infuluxdb Einstellungen von Backitup zum testenusr/bin/influxd
ein -
@simatec said in Backitup kann influxdb Datenbank nicht sichern.:
usr/bin/influxd
Ich wäre mir aber nicht bewusst irgendwie bei der Installation was besonderes (korrioses) gemacht zu haben, aus meiner Sicht alles Standard
Würde es Dir helfen wenn du per remot o.ä. auf den Raspberry kommen würdest? Gibt es da Möglichkeiten?
Hier was passiert wenn ich den direkten Pfad eingebe:
Started iobroker ... [DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 2156 states saved [DEBUG] [iobroker] - host.raspberrypi 2583 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_04_11-16_52_48_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: "/usr/bin/influxd" backup -portable -database iobroker "/opt/iobroker/backups/influxDB_2021_04_11-16_52_56_backupiobroker" backup: copy: read /opt/iobroker/backups/influxDB_2021_04_11-16_52_56_backupiobroker/meta.00: input/output error [DEBUG] [redis] - Start Redis Backup ... [DEBUG] [redis] - Created redistmp directory [DEBUG] [redis] - Backup created: /opt/iobroker/backups/redis_2021_04_11-16_52_58_backupiobroker.tar.gz [DEBUG] [redis] - Try deleting the redis tmp directory: "/opt/iobroker/backups/redistmp" [DEBUG] [redis] - redis tmp directory "/opt/iobroker/backups/redistmp" successfully deleted [DEBUG] [redis] - done [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 is started ... [DEBUG] [umount] - umount successfully completed [DEBUG] [umount] - done [EXIT] 0
Der Befehl lässt sich weiterhin ausführen wenn ich mich als pi auf den Raspberry einlogge.
-
@christian-kohlöffel
Ok dann mache mal bitte folgendes.
Lege in deiner FB mal einen User mit dem Namen „iobroker“ an und gibt ihn alle Rechte auf das komplette Speichermedium.Dann bitte mal folgendes ausführen:
sudo usermod -a -G influxdb iobroker sudo reboot now
-
@simatec said in Backitup kann influxdb Datenbank nicht sichern.:
sudo usermod -a -G influxdb iobroker
sudo reboot nowIst es wichtig welches Passwort der User "iobroker" auf der FB hat? Ich hab da mal irgendwas eingegeben ....
Leider bisher noch keine Veränderung:
[ERROR] [influxDB] - [IGNORED] Error: Command failed: influxd backup -portable -database iobroker "/opt/iobroker/backups/influxDB_2021_04_11-17_42_38_backupiobroker" backup: copy: read /opt/iobroker/backups/influxDB_2021_04_11-17_42_38_backupiobroker/meta.00: input/output error
-
@christian-kohlöffel
Hast du den mount auf den User iobroker geändert -
Klar
...
-
@christian-kohlöffel
Ich habe nochmal etwas gelesen.
Laut Dr. Google deutet dieser Fehler mit error input/output auf ein fehlerhaftes Dateisystem hin.
Eventuell könnte also dein USB Stick kurz vorm verrecken sein. Um diese Möglichkeit auszuschließen, würde ich dir raten, mal einen anderen Stick in ext4 zu formatieren und diesen zu testen. -
Ich habe soeben einen anderen USB Stick versucht. Der Fehler besteht leider weiterhin.
-
error input/output kann auch auf einen 'wackeligen' USB-Port hinweisen. Insbesondere beim Pi.
Schau mal nach ob der genug Saft bekommt:dmesg -T | grep -i under-voltage
-
@thomas-braun Der Stick von ihm hängt an einer Fritzbox
-
@christian-kohlöffel
Schaue mal, ob deine USB Eingänge mit voller Leistung betrieben werden -
@simatec sagte in Backitup kann influxdb Datenbank nicht sichern.:
@thomas-braun Der Stick von ihm hängt an einer Fritzbox
Oh. Hatte ich überlesen...
Aber den USB-Port vom "alten Fritz" kann man sich auch mal anschauen -
@thomas-braun said in Backitup kann influxdb Datenbank nicht sichern.:
dmesg -T | grep -i under-voltage
Auch falls es nicht zum Thema beiträgt: Da kommt gar nix raus, passt das?
pi@raspberrypi:~ $ dmesg -T | grep -i under-voltage pi@raspberrypi:~ $
-
-
Dann gibt es dazu keine Meldung in der Datei. Ist gut in dem Fall.
-
@christian-kohlöffel
Was kannst du dort einstellen? -
Jetzt noch zur Vollständigkeit: Ich habe das mount auf den internen Speicher der Fritzbox verschoben. Das macht auch keinen Unterschied.
-
Zeiten bis zu maximal "Niemals"
--> Macht aber keinen Unterschied. Selbst bei "Niemals" kommt der bekannte Fehler.
-
@christian-kohlöffel
Stelle mal bitte zum testen in den Einstellungen von Backitup das Influx Backup von Lokal auf Remote und trage als Host „localhost“ und als Port 8088 ein.Die Pfadangabe bitte leer lassen