Duplicity fails with assertion error 'assert first.difftype != "diff", patch_seq'

Bug #891566 reported by Marc-Etienne Vargenau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

I am trying to restore a directory "Bureau".

Duplicity restores some files, then fails with assertion error.

duplicity --file-to-restore Bureau file:///proj-aif/mvargena/ /home/mvargena/Bureau
[sudo] password for mvargena:
Les métadonnées locales et distantes sont déjà synchronisées. Aucune synchronisation nécessaire.
Date de dernière sauvegarde intégrale : Tue Feb 8 10:34:04 2011
GnuPG passphrase:
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1359, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1342, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1276, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 591, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 521, in Write_ROPaths
    for ropath in rop_iter:
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 494, in integrate_patch_iters
    final_ropath = patch_seq2ropath( normalize_ps( patch_seq ) )
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 461, in patch_seq2ropath
    assert first.difftype != "diff", patch_seq
AssertionError: [(('Domoservices.ods',) reg)]

duplicity --version
duplicity 0.6.15

python --version
Python 2.7.2+

cat /etc/motd
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686)

Revision history for this message
Marc-Etienne Vargenau (marc-etienne-vargenau) wrote :
Revision history for this message
Marc-Etienne Vargenau (marc-etienne-vargenau) wrote :

Hello,

Removing the duplicity cache at ~/.cache/duplicity/ solved the problem.

Still, the assertion error should be replaced by a meaningful error indicating the cache corruption.

Best regards,

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.