"DiffDirException: Bad tarinfo name" on diff. backup

Bug #575010 reported by Moritz Maisel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

After running for weeks without problems, differntial backup now fails reproducible with the following traceback (also included the last 5 lines of log-data):

---->8----*snip*----
tarfile: Bad Checksum
Removing still remembered temporary file /tmp/duplicity-ZDESlF-tempdir/mkstemp-UP21kB-1
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1239, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1232, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1214, in main
    incremental_backup(sig_chain)
  File "/usr/bin/duplicity", line 478, in incremental_backup
    bytes_written = dummy_backup(tarblock_iter)
  File "/usr/bin/duplicity", line 160, in dummy_backup
    while tarblock_iter.next():
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 505, in next
    result = self.process(self.input_iter.next(), size)
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 187, in get_delta_iter
    for new_path, sig_path in collated:
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 275, in collate2iters
    relem2 = riter2.next()
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 344, in combine_path_iters
    refresh_triple_list(triple_list)
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 330, in refresh_triple_list
    new_triple = get_triple(old_triple[1])
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 316, in get_triple
    path = path_iter_list[iter_index].next()
  File "/usr/lib/python2.6/dist-packages/duplicity/diffdir.py", line 236, in sigtar2path_iter
    raise DiffDirException("Bad tarinfo name %s" % (tarinfo.name,))
DiffDirException: Bad tarinfo name .<email address hidden>/.system/20000000000000000000000000000000000000000000000000000
---->8----*snip*----

(Note: I replaced mail and im IDs due to privacy concerns. If you need "real" data I can provide that via PM.)

To me it looks like duplicity is expecting some file named ".<email address hidden>/.system/20000000000000000000000000000000000000000000000000000" which does not exist.

System-info:
duplicity 0.6.08
Ubuntu karmic
Python 2.6.4
Target filesystem is FTP

Revision history for this message
Moritz Maisel (mail-maisel) wrote :
Revision history for this message
Stefan Strasser (strada) wrote :

I've seen the same error after working for several days - without actually mentioning a specific file. Cleanup and purge didn't help (did not show any errors).

I increased the verbosity and in my case it turned out to be a file somewhere deep below the following path:
/root/.cache/duplicity/7fdd4daf0969a512e2d6b6d043941dbd/...

Guessing that this directory is only needed as cache for speed up the backup-process I just deleted it and re-ran the backup. Now it worked again.

According to [1] it could be a problem related to very long path-file-names.

duplicity 0.6.08b
Ubuntu lucid
Python 2.6.5
Target system accessed by sFTP

[1] http://blog.gmane.org/gmane.comp.sysutils.backup.duplicity.general/month=20030801

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.