I get this error when try to restore a backup:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1377, in main
globals.lockfile.acquire(timeout=0)
File "/usr/lib/python2.7/dist-packages/lockfile/linklockfile.py", line 21, in acquire
raise LockFailed("failed to create %s" % self.unique_name)
LockFailed: failed to create /home/zoroaster/.cache/deja-dup/d33a3d20343d288863d8447c1af54f02/Avestan.4889-8464751143147245462
It's just a test backup that I do with this setting:
Folders to save:
/etc
/lib
/root
/srv
/var
/usr/local
/home/zoroaster
And folder to exclude:
/var/run
/var/cache
/var/tmp
And from home I exclude Downloads
, Videos
and a few others.
The storage location is an external usbdrive.
For run backup I use command line with sudo
since I am doing backup also of other folder not only home
.
However, for test I use GUI, so maybe problem is that I am not restoring using "root"?
In this case, how to test via terminal if backup is successfully and can be restored.
I can also delete the backup and make new one as this is just a test for backup most important data and system in case of need.
As suggested I have install python-lockfile
and then there was a button in Restore to install something in deja dup app. After the installation, this is the issue:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1377, in main
globals.lockfile.acquire(timeout=0)
File "/usr/lib/python2.7/dist-packages/lockfile/linklockfile.py", line 21, in acquire
raise LockFailed("failed to create %s" % self.unique_name)
LockFailed: failed to create /home/zoroaster/.cache/deja-dup/d33a3d20343d288863d8447c1af54f02/Avestan.7691-8464751143147245462
After doing new backup using GUI, appear now similar error when trying to make new backup:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1377, in main
globals.lockfile.acquire(timeout=0)
File "/usr/lib/python2.7/dist-packages/lockfile/linklockfile.py", line 21, in acquire
raise LockFailed("failed to create %s" % self.unique_name)
LockFailed: failed to create /home/zoroaster/.cache/deja-dup/d33a3d20343d288863d8447c1af54f02/Avestan.9581-8464751143147245462
If I do backup on local disc then work fine. the error only appear when trying to backup on usbdrive.
$ ls -dl /home/zoroaster/.cache/deja-dup/d33a3d20343d288863d8447c1af54f02
drwxr-xr-x 2 root root 4096 Jun 11 12:02 /home/zoroaster/.cache/deja-dup/d33a3d20343d288863d8447c1af54f02
After fixing issue, this new happen starting new backup:
Permission denied when trying to create ‘/duplicity-full.20180611T112448Z.vol1.difftar.gpg’
python2.7
whoselockfile
package ispython-lockfile
, notpython3-lockfile
. – dessert Jun 11 '18 at 10:49