Comment 2 for bug 922101

Revision history for this message
Phil Veal (pmveal) wrote :

Another example -

Cleanup of temporary directory /tmp/duplicity-Tj_DsZ-tempdir failed - this is probably a bug.
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1411, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1404, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1374, in main
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 509, in full_backup
    globals.backend)
  File "/usr/bin/duplicity", line 407, in write_multivol
    (tdp, dest_filename, vol_num)))
  File "/usr/lib/python2.7/dist-packages/duplicity/asyncscheduler.py", line 145, in schedule_task
    return self.__run_synchronously(fn, params)
  File "/usr/lib/python2.7/dist-packages/duplicity/asyncscheduler.py", line 171, in __run_synchronously
    ret = fn(*params)
  File "/usr/bin/duplicity", line 406, in <lambda>
    async_waiters.append(io_scheduler.schedule_task(lambda tdp, dest_filename, vol_num: put(tdp, dest_filename, vol_num),
  File "/usr/bin/duplicity", line 307, in put
    tdp.delete()
  File "/usr/lib/python2.7/dist-packages/duplicity/dup_temp.py", line 111, in delete
    path.DupPath.delete(self)
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 568, in delete
    util.ignore_missing(os.unlink, self.name)
  File "/usr/lib/python2.7/dist-packages/duplicity/util.py", line 116, in ignore_missing
    fn(filename)
OSError: [Errno 2] No such file or directory: '/tmp/duplicity-Tj_DsZ-tempdir/mktemp-4j6bzo-3'

It always seems to occur on volume 2; i.e. a rerun shows -

Last full backup left a partial set, restarting.
Last full backup date: Sun Oct 6 09:20:57 2013
RESTART: Volumes 2 to 2 failed to upload before termination.
         Restarting backup at volume 2.

Specifying --asynchronous-upload appears to workaround the problem, or at least make it less likely to occur.