duplicity crash: "assert len(chain_list) == 2"

Bug #714556 reported by Stephen N. DeWitt, OFM
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned
Déjà Dup
Incomplete
Undecided
Unassigned

Bug Description

Ubuntu 10.10 (64 bit)
Deja-Dup 16.1.1-0ubuntu1
duplicity 0.6.10-0ubuntu1

I am trying to restore files from a backup on an external hardrive (NTFS). Every time I run the restore program it fails with an unknown error and gives the following output:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1257, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1250, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1155, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.6/dist-packages/duplicity/collections.py", line 687, in set_values
    backup_chains)
  File "/usr/lib/python2.6/dist-packages/duplicity/collections.py", line 700, in set_matched_chain_pair
    sig_chains = sig_chains and self.get_sorted_chains(sig_chains)
  File "/usr/lib/python2.6/dist-packages/duplicity/collections.py", line 913, in get_sorted_chains
    assert len(chain_list) == 2
AssertionError

I made the backup with the 32 bit version of 10.10 if that makes a difference.

Revision history for this message
Stephen N. DeWitt, OFM (sdewittofm) wrote :
Revision history for this message
Stephen N. DeWitt, OFM (sdewittofm) wrote :

deja-dup.gconf

Revision history for this message
Michael Terry (mterry) wrote :

That's an odd error. Can you give me a list of all the duplicity- files on the external drive?

Changed in deja-dup:
status: New → Incomplete
Revision history for this message
Stephen N. DeWitt, OFM (sdewittofm) wrote :

I have attached a file with the list.

Revision history for this message
Michael Terry (mterry) wrote :

I think there are two possibilities.
 1) The file 'duplicity-full-signatures.20110129T144142Z.sigtar' is odd. I believe it shouldn't be there on the drive. Try moving that out of the way and trying again.
 2) Your local cache of the remote files is somehow out of sync. To test this, move ~/.cache/duplicity out of the way and try again.

I'd say try #1 first. If it fails, move it back onto the drive and try #2. Let me know how it goes.

Revision history for this message
Michael Terry (mterry) wrote :

(to be specific about my #1, the version of that file with the .gpg ending is good and expected. I thought it was odd that there was a version without the .gpg suffix)

Revision history for this message
Stephen N. DeWitt, OFM (sdewittofm) wrote :

#1 seems to have fixed the problem and the restore is in process now. Many thanks, I have 6 months of files in that backup that are not available elsewhere.

Revision history for this message
Michael Terry (mterry) wrote :

Awesome! It would still be good to figure out why that non-gpg suffixed file was there, but good that you can get your data.

Ken, do you have ideas about why a non-gpg sigtar would appear in the backup?

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Not a clue. A temp file, maybe, that did not get deleted and duplicity ignored the error.

Revision history for this message
Lark (florent-g) wrote :

Same crash and error message here, both when restoring and backuping data.

I couldn't try trick #1 because I don't have any non-gpg sigtar in my backup
I tried trick #2, then launched a backup operation, and this deleted my whole backup data.

Could you tell me which informations are important for you to work on this bug ?

Regards

Michael Terry (mterry)
summary: - DD restore fails with an unknown error
+ duplicity crash: "assert len(chain_list) == 2"
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.