Restore Failed with Unknown Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The backup seems to work, but the Restore Failed with Unknown Error (see attached image)
$ deja_dup_DEBUG=1 deja-dup --backup
$ deja_dup_DEBUG=1 deja-dup --restore
Also I'm not sure where the debug information is when I do deja_dup_DEBUG=1 it seems to run the same as when I'm not in debug mode. Does debug mode create a log file and if so where is that file so I can upload it here to help you?
1. The distribution of Linux you're using:
Ubuntu 20.04.3 LTS
2. The version of deja-dup and duplicity:
deja-dup/
duplicity/focal,now 0.8.11.1612-1 amd64
I deleted both the ~/.cache/deja-dup and the backup on my external SSD and that didn't fix it. Every time I tried one of the below I deleted those and made a fresh one. Attached is the screenshot showing the error.
I used the code below to trim all of my filenames in Desktop, Documents, Downloads, Music, Pictures, and Videos to be no more than 100 characters long, just in case filenames being too long was the issue. That didn't fix it.
export n=100
find . -type f \
! -name '.*' \
-regextype egrep \
! -regex '.*\.[^
-regex '.*[^/]
-execdir bash -c '
for f in "${@#./}"; do
mv -- "$f" "${f:0:
done' bash {} +
I manually (not using Deja Dup) copied my files from my ext4 Linux filesystem to an NTFS external backup drive to check to make sure no filename has illegal characters like | because for example if the filename has | in it then a warning message pops up and says you can't copy that file to an NTFS file system do you want to skip it. I removed the illegal characters and now it copies to NTFS without any warnings but the backup still fails so that wasn't it.
I reformatted my Deja Dup backup drive Samsung_T5 from exFAT to ext4 just in case Deja Dup doesn’t like exFAT (cross-platform Solid State Drive filesystem) and likes ext4 (Linux filesystem) better. That didn't fix it.
I uninstalled Deja Dup using "sudo apt-get purge deja-dup" then reinstalled it from the Ubuntu Snap store. I also tried unencrypted backup using Deja Dup instead of encrypted. Doing both of those didn't fix it. Attached is the "Restore Failed: Failed with an unknown error." screenshot of my Ubuntu. I uninstalled and reinstalled Deja Dup because I was worried Deja Dup broke and needed to be reinstalled because my Ubuntu accidentally broke when I uninstalled Python3 not in my sandbox (conda create --name dnv) (conda activate dnv) but in base Ubuntu. I sent my laptop to the computer repair place and they didn't reinstall Ubuntu they rebuilt it reinstalling Python3. That rebuild didn't totally fix the laptop I had to reinstall my eBook reader to get it working again, so maybe Deja Dup broke and was not fixed by the Ubuntu rebuild but reinstalling Deja Dup might fix it but didn't. I checked and uninstalling Deja Dup also uninstalls Duplicity so reinstalling Duplicity isn't the solution.
I cannot find /tmp/deja-
At this point my computer repair guy recommended trying Bacula (https:/
description: | updated |
Hello! Thank you for your report. So this is reproducible and keeps happening? That's hopeful for being able to debug it.
You are setting deja_dup_DEBUG=1, but it's case-sensitive. You need to set DEJA_DUP_DEBUG=1 - try that and there may be more interesting logs.