Can not restore files. Error message: failed with unknown error.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Invalid
|
Undecided
|
Unassigned |
Bug Description
OS: Ubuntu 20.04
version: deja-dup 40.7
Output of the command dconf dump /org/gnome/
/]
backend='google'
last-backup=
last-restore=
last-run=
nag-check=
periodic=true
prompt-
[drive]
folder=
icon='. GThemedIcon drive-harddisk-usb drive-harddisk drive drive-harddisk-
name='Rafo_Backup'
uuid='8908d407-
[file]
migrated=true
[gcs]
folder=
[google]
folder=
[local]
folder=
[openstack]
container=
[rackspace]
container=
[remote]
folder=
[s3]
folder=
The command "DEJA_DUP_DEBUG=1 deja-dup --restore | tail -n 1000 > /tmp/deja-dup.log" produces
the file /tmp/deja-dup.log, but after the error message it is still active (i.e. didn't exit), and the /tmp/deja-dup.log file is empty.
After installing a fresh Ubuntu 20.04 (previous was Ubuntu 18.04), I can not restore my files.
Steps:
* Restore
* "Restore From Where:, Here I select my backup location "Rafo_Bacup", and correct directory "rafopar-
* "Restore From When", I chose the most recent, although, I have tried different other days as well
* Then status is "Preparing", after about 5 minutes, it prompts to a password, as soon I enter the password, it tells "Failed with unknown error". Doesn't show any log message.
In the deja-dup "Help" it tells that I can use command-line tool duplicity.
So following instructions I did
rafopar@
It does something, i.e. consumes lots of CPU, but no single file is written in the /Work_Test/ directory
Anyway bellow are error messages and outputs of the command
*Error messages*
Warning: Option --gio is pending deprecation and will be removed in a future release.
Use of default filenames is strongly suggested.
GnuPG passphrase for decryption:
Giving up after 1 attempts. Error: Error opening file “/tmp/duplicity
*And in the log file I see*
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Sun Aug 2 19:41:47 2020
Cleanup of temporary directory /tmp/duplicity-
Hello! I'm sorry this is happening to ya. Let's figure this out together.
Deja Dup's error message "failed with an unknown error" usually means that duplicity failed underneath it but didn't give us a useful error code or message to show.
> Error: Error opening file “/tmp/duplicity -1za80bqb- tempdir/ mktemp- gsmqt28z- 2612”: No such file or directory
Hmm, that sounds like bug 1177381. Which doesn't have any current leads for what causes it...
OK. Let's talk about some options to try.
= Using newer versions =
You can install the snap for either deja-dup or duplicity:
snap install deja-dup --classic
snap install duplicity --classic
The benefit of using the latest Deja Dup is that it has a nicer restore interface that lets you browse the backup files and choose one to restore. (Assuming duplicity lets you get that far.)
The benefit of using the latest duplicity is just in case it has fixed any bugs around this. Might be worth a shot. (Deja Dup's snap bundles in an internal updated version of duplicity too, but doesn't expose it outside its own snap -- installing the duplicity snap will let you call it on the command line like normal.)
= Checking File Sizes =
Are the backup volume files all OK? Check size and types using commands like:
du -sh /media/ rafopar/ Rafo_Backup/ rafopar- Precision- 7510/duplicity- * rafopar/ Rafo_Backup/ rafopar- Precision- 7510/duplicity- *
file /media/
We're just looking for any files that don't look like the other ones. Maybe bizarrely small, or are not reported as "GPG symmetrically encrypted data (AES cipher)" -- right, your backup is encrypted?
This would be looking for any volume files that somehow got mangled. Wouldn't tell us why, but might point at what we need to do to recover.
Does your storage location hold one big full backup, or is it like, a long history of backups with incrementals and all that jazz?
= Restoring By Hand =
There are instructions here for this: https:/ /wiki.gnome. org/Apps/ DejaDup/ Help/Restore/ WorstCase# Restoring_ by_Hand
This is not a fun approach but can be necessary.