-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
qvm-backup-restore fails to restore from version 3 backups #7852
Comments
Can you confirm that this change in dom0 fixes it:
For context, OpenSSL 1.1.0+ changed the default digest algorithm that's used to derive a key from a password from MD5 to SHA256. |
Yes! After making this change, I can successfully restore from v3 backups on the command line using
Good catch, thanks! |
I forgot to mention to restart Qube Manager after applying the fix (if you're launching Restore from within it). Does that work? But it's also interesting that Qube Manager crashes without showing any error. No idea how to fix that part. @marmarta |
Ah, I hadn't restarted it. I can't easily test again right now, but that's probably what it was. |
Old OpenSSL versions (which were used to encrypt format v2 and v3 backups) defaulted to MD5 for key derivation from the password. OpenSSL 1.1.0+ in R4.1+ changed that default (not only for encryption but also for *decryption*) to SHA256: openssl/openssl@f8547f6#diff-5a32e43870f189e8abf5e1b388115b001c9dadc23e582f28b667738857c237b6 Fixes QubesOS/qubes-issues#7852
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
Or update dom0 via Qubes Manager. |
QubesOS/qubes-issues#7852 (cherry picked from commit fdbf1d7)
How to file a helpful issue
Qubes OS release
4.1.1
Brief summary
Attempting to restore from backups created between January 2016 and January 2019 (backup format version 3) fail. Restoring from backups created in October 2020 and later (backup format version 4) succeed.
(Note: I'm not saying these are the dates when the backup formats changed; these are just the dates of the backups I happened to try.)
Steps to reproduce
Try to restore from an older backup (backup format version 3, e.g., Jan 2016 - Jan 2019) on Qubes 4.1.1.
(Note: All my backups were successfully verified using the Qubes "verify-only" restore option at the time I created them.)
Expected behavior
qvm-backup-restore
and its GUI equivalent are backward-compatible with all backups previously created on older Qubes OS systems, and restore succeeds normally.Actual behavior
When attempting to restore from older backups, the errors always look similar to this:
(Note: I also tried the same restores in the GUI backup restore tool, which simply causes the GUI tool to crash with no errors or notifications of any kind.)
According to the backup header, the compression filter is, indeed,
gzip
:(Note: I tried with both
gzip
- andbzip2
-compressed backups. Same results regardless of compression filter.)For comparison, this is from the backup header of the newer backup (from October 2020) that successfully restored:
The text was updated successfully, but these errors were encountered: