Show appropriate error message if duplicity runs out of memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Triaged
|
Medium
|
Unassigned |
Bug Description
I am doing a dry-run of restoring from a backup on google drive. I started a clean virtual machine installed with Ubuntu and Deja Dup. I got it authorized with my google account and started a restore. It asks for the location, finds the backup and asks for a date to restore, asks for a location to restore to, and asks for a password. After I enter the password, it continues with the "Restoring. Preparing.." screen for a long while. Then it appears to crash. It simply returns to the window that opens when I start Deja Dup without having restored anything or giving any error message.
I ran it with debug turned on, and I've attached the output of that. There is no obvious error message there that I can see in that file.
Both backups and restore are on:
OS: Ubuntu 20.04
Deja-Dup: 40.6-1ubuntu2
Duplicity: 0.8.11.1612-1
The restore is running in a virtual machine (VirtualBox) that I created on the backup machine for the sole purpose of testing the restore. It is a clean (minimal) install of Ubuntu 20.04.
Here's the output of gsettings on the virtual machine (restore):
org.gnome.DejaDup exclude-list ['$TRASH', '$DOWNLOAD']
org.gnome.DejaDup allow-metered false
org.gnome.DejaDup root-prompt true
org.gnome.DejaDup periodic-period 7
org.gnome.DejaDup include-list ['$HOME']
org.gnome.DejaDup prompt-check '2020-06-
org.gnome.DejaDup periodic false
org.gnome.DejaDup delete-after 0
org.gnome.DejaDup last-restore ''
org.gnome.DejaDup last-run ''
org.gnome.DejaDup full-backup-period 90
org.gnome.DejaDup last-backup ''
org.gnome.DejaDup backend 'google'
org.gnome.DejaDup nag-check ''
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
summary: |
- Quite crash while restoring from Google drive + Show appropriate error message if duplicity runs out of memory |
Changed in deja-dup: | |
status: | Incomplete → Opinion |
status: | Opinion → Confirmed |
Changed in deja-dup: | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
That sounds very frustrating! I'm sorry this bug is hitting you.
This doesn't sound familiar to me. And you're right that that log isn't very useful... And it doesn't sound like Deja Dup is actually crashing-crashing, which would at least let us know where the problem is.
I'm not sure what the next step to debug this would be...
You were just doing a dry run yeah? So you don't need emergency measures like using duplicity directly on the command line.
Oh! I've got an idea. There is support for using policykit to elevate Deja Dup to root privileges for a restore, if we think we are restoring something outside of HOME. This can (A) sometimes prompt if it doesn't *really* need to -- like a file is outside HOME but can still be written to and (B) doesn't have great fallback code if policykit isn't functioning. (which might be as dumb as simply aborting the restore without a message?)
It *might* be hitting that (B) scenario on a VM maybe? There is an easy way to test by instead of restoring files to their original locations (which might be outside HOME) and instead restore to a file of your choosing inside your HOME.
Try that and let me know?
I'm actively (as I type this!) in the middle of working on a replacement system that will avoid using policykit.