NEWS
UNSOLVED Adapter Backitup kopiert nicht auf FTP
-
@TepMan sagte in Adapter Backitup kopiert nicht auf FTP:
Per FTP geht es gerade auch, eben weil der Mountpoint noch drin hängt.
Das zeigt, dass deine lokalen Rechte für FTP nicht passen
-
Ok, dann habe ich das Konzept jetzt glaube ich verstanden. Die remoten Verzeichnisse werden jeweils dauerhaft gemounted und es wird beim Backup überprüft, ob die da sind, richtig? Dann hatte ich die Probleme wahrscheinlich durch das dauernde hin- und herschalten.
Das mit den Rechten für FTP habe ich aber nicht verstanden. Ich kann per FTP-Client mit dem User ohne Probleme auf das FTP-Verzeichnis zugreifen und Datein lesen und schreiben, welche Rechte fehlen denn da noch oder sind nicht richtig. Also auf dem NAS sind definitiv die Rechte vorhanden.
Und bleibt noch das Problem, das der Backup-Prozess nicht richtig abgeschlossen wird. Kann das mit dem Rechte-Problem zusammenhängen? Kann man das noch irgendwie herausfinden? Ich kann auch gern eine Version mit mehr Debug-Ausgaben installieren, bräuchte nur eine Git-URL zum Installieren.
-
@TepMan
Erstmal wäre zu testen, warum der Backup Prozess nicht abgeschlossen wird
Dafür würde ich erstmal alles deaktivieren und nur noch ein lokales Backup erstellen.
NAS aus, FTP aus und auch alle anderen Hacken raus.
Hast du zigbee oder history, mysql oder irgendwas noch aktiv und nicht konfiguriert?
Ansonsten können wir gerne ein debug machen oder Remote ... -
Jooo, es war ein Haken bei Zigbee! Keine Ahnung warum ich den gesetzt hatte, und natürlich hatte ich den auch überhaupt nicht im Blick. Jetzt ist er weg und das Backup läuft - auch per FTP - sauber durch und alle Backup-Files landen wo sie hin sollen.
Hab das jetzt spaßehalber auch mal mit Redis probiert (obwohl ich auch kein Redis im Einsatz habe) und da reagiert der Adapter mit entsprechenden Fehlermeldungen, arbeitet aber den Backup-Auftrag ansonsten korrekt ab:
Gestartet... [DEBUG] [iobroker] - host.raspi4 3181 states saved [DEBUG] [iobroker] - host.raspi4 2154 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2020_05_11-17_12_21_backupiobroker.tar.gz [DEBUG] [iobroker] - done [ERROR] [redis] - [IGNORED] No source for compress! [DEBUG] [ftp] - FTP connected. [DEBUG] [ftp] - Send iobroker_2020_05_11-17_12_21_backupiobroker.tar.gz [DEBUG] [ftp] - Send redis_2020_05_11-17_12_26_backupiobroker.tar.gz [ERROR] [ftp] - File "/opt/iobroker/backups/redis_2020_05_11-17_12_26_backupiobroker.tar.gz" not found [DEBUG] [ftp] - done [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done [DEBUG] [history] - backitup.0.history.html [DEBUG] [history] - backitup.0.history.json [EXIT] 0
Ich gucke mir noch ein paar Tage an, ob die zeit gesteuerten, nächtlichen Backups durchlaufen, aber ich gehe davon aus, das es klappen wird. Vielleicht guckst du bei Zigbee noch mal hin, warum der Adapter da so komisch reagiert.
Ansonsten bleibt mir nur, mich für deine Geduld und Hilfe zu bedanken!
-
@TepMan
danke für den Hinweis ... zigbee schaue ich mir mal an ... -
Könntest du mal testen, ob es jetzt mit gesetzten Häckchen bei zigbee trotzdem läuft und auch beendet wird?
Installation über Github:https://github.com/simatec/ioBroker.backitup/tarball/dev
Den Link direkt in der Katze unter Adaptern einfügen.
Am besten auch mal die Debug Ausgaben hier posten
-
@simatec Hi, sieht gut aus (außer das die Meldung etwas sprechender sein könnte, "undefined backup done" wird einem unbedarften Anwender nicht viel sagen ) :
Gestartet... [DEBUG] [iobroker] start with {"type":"creator","time":"02:00","debugging":true,"everyXDays":"1","deleteBackupAfter":0,"ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"dir":"/opt/iobroker","redis":{"enabled":false,"type":"creator","ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"cifs":{"enabled":false,"mountType":"CIFS","type":"storage","source":"local","mount":"192.168.178.20","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":false,"ownDir":false,"dir":"ioBroker/ioBrokerBackups","dirMinimal":"sharename/backupDir","user":"ioBroker","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"path":"/var/lib/redis"},"historyDB":{"enabled":false,"type":"creator","ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"cifs":{"enabled":false,"mountType":"CIFS","type":"storage","source":"local","mount":"192.168.178.20","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":false,"ownDir":false,"dir":"ioBroker/ioBrokerBackups","dirMinimal":"sharename/backupDir","user":"ioBroker","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"path":"media/usb/history"},"zigbee":{"enabled":true,"type":"creator","ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"cifs":{"enabled":false,"mountType":"CIFS","type":"storage","source":"local","mount":"192.168.178.20","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":false,"ownDir":false,"dir":"ioBroker/ioBrokerBackups","dirMinimal":"sharename/backupDir","user":"ioBroker","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"path":"/opt/iobroker/iobroker-data"},"history":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"email":{"enabled":false,"notificationsType":"Telegram","type":"message","instance":"","NoticeType":"longEmailNotice","emailReceiver":"xxx@xxx.com","emailSender":"xxx@xxx.com","onlyError":false,"emailWaiting":0,"systemLang":"de"},"pushover":{"enabled":false,"notificationsType":"Telegram","type":"message","instance":"","SilentNotice":false,"NoticeType":"longPushoverNotice","deviceID":"","onlyError":false,"pushoverWaiting":0,"systemLang":"de"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [iobroker] - host.raspi4 3447 states saved [DEBUG] [iobroker] - host.raspi4 2417 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2020_05_12-17_32_23_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [zigbee] - undefined backup done [DEBUG] [ftp] start with {"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21","deleteBackupAfter":0} [DEBUG] [ftp] - FTP connected. [DEBUG] [ftp] - Send iobroker_2020_05_12-17_32_23_backupiobroker.tar.gz [DEBUG] [ftp] - done [DEBUG] [clean] - done [DEBUG] [history] - backitup.0.history.html [EXIT] 0 [DEBUG] [history] - backitup.0.history.json [EXIT] 0 [DEBUG] [history] start with {"type":"creator","time":"02:00","debugging":true,"everyXDays":"1","deleteBackupAfter":0,"ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"dir":"/opt/iobroker","redis":{"enabled":false,"type":"creator","ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"cifs":{"enabled":false,"mountType":"CIFS","type":"storage","source":"local","mount":"192.168.178.20","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":false,"ownDir":false,"dir":"ioBroker/ioBrokerBackups","dirMinimal":"sharename/backupDir","user":"ioBroker","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"path":"/var/lib/redis"},"historyDB":{"enabled":false,"type":"creator","ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"cifs":{"enabled":false,"mountType":"CIFS","type":"storage","source":"local","mount":"192.168.178.20","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":false,"ownDir":false,"dir":"ioBroker/ioBrokerBackups","dirMinimal":"sharename/backupDir","user":"ioBroker","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"path":"media/usb/history"},"zigbee":{"enabled":true,"type":"creator","ftp":{"enabled":true,"type":"storage","source":"local","host":"192.168.178.20","debugging":true,"deleteOldBackup":true,"ownDir":false,"dir":"/ioBrokerBackups","dirMinimal":"/backupDir/iobroker","user":"ioBroker","pass":"****","port":"21"},"cifs":{"enabled":false,"mountType":"CIFS","type":"storage","source":"local","mount":"192.168.178.20","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","deleteOldBackup":false,"ownDir":false,"dir":"ioBroker/ioBrokerBackups","dirMinimal":"sharename/backupDir","user":"ioBroker","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"local","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"path":"/opt/iobroker/iobroker-data"},"history":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de","time":"12. Mai 2020 um 17:32 Uhr"},"email":{"enabled":false,"notificationsType":"Telegram","type":"message","instance":"","NoticeType":"longEmailNotice","emailReceiver":"xxx@xxx.com","emailSender":"xxx@xxx.com","onlyError":false,"emailWaiting":0,"systemLang":"de"},"pushover":{"enabled":false,"notificationsType":"Telegram","type":"message","instance":"","SilentNotice":false,"NoticeType":"longPushoverNotice","deviceID":"","onlyError":false,"pushoverWaiting":0,"systemLang":"de"},"backupDir":"/opt/iobroker/backups"}
-
@TepMan
Danke für die Info und fürs testen ... konnte das selber auf die schnelle nicht testen, da mir aktuell keine laufende zigbee Installation vorliegt.
Den Log mache ich noch schick -
@simatec gerne. Kann ich die Dev-Version installiert lassen oder hat die noch "known issues"?
-
@TepMan
Kannst du installiert lassen ... Ich werde aber da noch ein paar Kleinigkeiten anpassen bevor die 1.5.8 ins latest geht -
@TepMan
Jetzt sollten die Log-Ausgaben sauber sein und auch verständlich ... -
@simatec sieht sehr gut aus:
Gestartet... [DEBUG] [iobroker] - host.raspi4 3445 states saved [DEBUG] [iobroker] - host.raspi4 2298 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2020_05_13-17_32_17_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [zigbee] - no zigbee database found!! [DEBUG] [zigbee] - done [DEBUG] [clean] - done [DEBUG] [history] - backitup.0.history.html [EXIT] 0 [DEBUG] [history] - backitup.0.history.json [EXIT] 0 [DEBUG] [ftp] - FTP connected. [DEBUG] [ftp] - Send iobroker_2020_05_13-17_32_17_backupiobroker.tar.gz [DEBUG] [ftp] - done [EXIT] 0