-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot restore backups #99
Comments
I think there is something wrong with your HA install. Have you tried to do a manual snapshot ( in the supervisor panel, not with this addon ), manually downloading it et manually uploading it ? Let me know is this work |
I'm having a similar (if not the same) issue when trying to restore these backups after re-installing HA, luckily I used a different SD card. To give more information:
Those failures fail with When I try to see the contents of these 2 different files I get errors on the one downloaded from NC:
How come these files are different? Are they modified in any way before uploading? HA version: Thanks! |
Hum... Interesting. The file is not modified, the add-on just download the snapshot from HA and upload it to Nexcloud, the only issue I see, is that there is something wrong when either downloading or uploading the snapshot. Did you have any errors on the supervisor logs, add-on logs or Nexcloud logs ( or reverse proxy if you have any ) ? |
I've tried to debug this a bit more. Some steps I've executed now to reproduce: Local backup works:
Uploading the backup breaks the tar file.
This upload process only generated these logs, no errors.
Just compared a bit the 2 files, and they are very differnt:
|
Thank for all this digup. It's very strange, maybe there is something wrong during the snapshot download... |
You can change the login level in the addon config (in supervisor panel), change it form info to debug, maybe we can see something here |
Here some logs: Startup
Uploading a previously done snapshot via Home Assistant UI:
Uploading the backup back to Home Assistant:
Can confirm the tarball in Nextcloud is already corrupted, that's why the second part of the logs fails. |
When reading the upload code, I realised there is an SSL setting that I should have enabled (after reading the docs). With this setting on, I managed to backup a snapshot and then restore it locally. I wonder if this fixes things too for @via-justa? I have no idea why this was introducing these type of issues, and not just crashing when creating the connection with nextcloud or something.. 😖 |
As @via-justa is not responding, I'm closing this issue, feel free to re-open/comment is you sill have this issue |
Describe the bug
When downloading backup from nextcloud to HA receiving a 400 error code
When downloading the backup to the computer and uploading to HA via SMB supervisor report an error
To Reproduce
download backup from nextcloud to HA either via the GUI or manually
Expected behavior
Backups are downloaded successfully
System information
2021.12.4
supervisor-2021.12.2
22.2.0
0.16.4
Additional context
I managed to restore a few months ago without an issue with the same configuration on Nextcloud
The text was updated successfully, but these errors were encountered: