NEWS
[gelöst] Backitup kann influxdb Datenbank nicht sichern.
-
Ich glaube du meintest diesen Thread:
Hab mir das alles genau angeschaut. Und Du hast Recht wahrscheinlich war SMBv1 und ext4 die Lösung. Das habe ich bereits ebenfalls probiert. Leider ohne Erfolg.
Was mich irritiert hat war FTP und NAS unter Backitup Einstellungen. Habe ich ebenfalls probiert, aber keine Veränderung. Macht es Sinn mal mit FTP weiter zu machen?
Zur Bestätigung habe ich auch mal Backitup ohne Influxdb und mit REDIS laufen lassen so wie im anderen Thread. Das läuft ohne Probleme (nur influxdb will ums verrecken nicht ...
)
Started iobroker ... [DEBUG] [mount] - mount successfully completed [DEBUG] [mount] - done [DEBUG] [iobroker] - host.raspberrypi 2134 states saved [DEBUG] [iobroker] - host.raspberrypi 2583 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_04_11-11_16_22_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [redis] - Start Redis Backup ... [DEBUG] [redis] - Created redistmp directory [DEBUG] [redis] - Backup created: /opt/iobroker/backups/redis_2021_04_11-11_16_31_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 [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
Ich habe nun nochmal versucht, die Rechtevergabe beim erstellen des Temp-Ordners zu modifizieren.
Teste mal bitte die Version 2.1.1 vom Dev-BranchDev-URL: https://github.com/simatec/ioBroker.backitup/tarball/dev
Installieren über Github wie folgt ausführen:
Nach Abschluss der Installation noch einen Upload ausführen ...
-
@simatec said in Backitup kann influxdb Datenbank nicht sichern.:
Hab das so installiert wie von Dir beschrieben. Installation hat alles geklappt und es zeigt auch die 2.1.1 als installierte Verion an.
SMBv1
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-13_12_54_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-13_13_02_backupiobroker" backup: copy: read /opt/iobroker/backups/influxDB_2021_04_11-13_13_02_backupiobroker/meta.00: input/output error [DEBUG] [redis] - Start Redis Backup ... [DEBUG] [redis] - Try deleting the old redis tmp directory: "/opt/iobroker/backups/redistmp" [DEBUG] [redis] - old redis tmp directory "/opt/iobroker/backups/redistmp" successfully deleted [DEBUG] [redis] - Created new redistmp directory [DEBUG] [redis] - Backup created: /opt/iobroker/backups/redis_2021_04_11-13_13_04_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
SMB 3.1.1 bin ich gerade dabei. Scheint aber wieder zu hängen, siehe unten ...
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-13_15_00_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Packed 0MB so far...
-
@christian-kohlöffel
Lasse nochmaliobroker fix
laufen und starte dein System im Anschluss noch einmal komplett durch -
@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.