WEBDAV duplicity backups stay in cache

NethServer Version: 7.7.1908
Module: backup

When I’m running my duplicity backup over WEBDAV, I get this error mailed:

Error while mounting https://myWEBDAVserver.com/remote.php/webdav : /sbin/mount.davfs: found PID file /var/run/mount.davfs/mnt-backup-backup-data.pid. Either /mnt/backup-backup-data is used by another process, or another mount process ended irregular at /etc/e-smith/events/actions/mount-webdav line 92.
Traceback (innermost last):
File “/usr/bin/duplicity”, line 1581, in
with_tempdir(main)
File “/usr/bin/duplicity”, line 1567, in with_tempdir
fn()
File “/usr/bin/duplicity”, line 1419, in main
do_backup(action)
File “/usr/bin/duplicity”, line 1502, in do_backup
list_current(col_stats)
File “/usr/bin/duplicity”, line 708, in list_current
path_iter = diffdir.get_combined_path_iter(sig_chain.get_fileobjs(time))
File “/usr/lib64/python2.7/site-packages/duplicity/collections.py”, line 539, in get_fileobjs
return [filename_to_fileobj(f) for f in self.get_filenames(time)]
File “/usr/lib64/python2.7/site-packages/duplicity/collections.py”, line 536, in filename_to_fileobj
return sig_dp.filtered_open(“rb”)
File “/usr/lib64/python2.7/site-packages/duplicity/path.py”, line 774, in filtered_open
return gzip.GzipFile(self.name, mode)
File “/usr/lib64/python2.7/gzip.py”, line 94, in init
fileobj = self.myfileobj = builtin.open(filename, mode or ‘rb’)
IOError: [Errno 2] No such file or directory: ‘/var/lib/nethserver/backup/duplicity/backup-data/79d303418aabb52a0feca8j3a6c4ab33/duplicity-full-signatures.20200305T021208Z.sigtar.gz’

Now, the backup is made correctly on the webdav server and I’ve also managed to do a disaster-recovery with it.

But, the cache files in /var/cache/davfs2/ aren’t removed so the server slowly fills up with the backup-files itself.

Do you have any idea why this happens?

Sorry for the late reply.
It seems that you have 2 concurrent processes accessing the mounted directory.

Honestly I didn’t testes davfs2 very well, maybe @dnutan or @robb can give you some hint.

Check the information on the following links:
https://savannah.nongnu.org/support/?109130#comment1
https://savannah.nongnu.org/support/?107864

2 Likes