← Back to team overview

desktop-packages team mailing list archive

[Bug 877631] Re: AssertionError after interruption/restart of backup

 

OK, I got in touch with Louis.

Reproduction steps:

1) Make sure your LANGUAGE is de, es, fr, id, it, pt_BR, or sl and you have the appropriate language packs installed.
2) Follow the reproduction steps are in comment #11.

Why this bug happens:

In duplicity 0.6.15, a new feature was added to report to frontends
(like deja-dup) whether the backup was encrypted.  This was used in
deja-dup to detect encryption on the fly and thus streamline the UI by
dropping a preference checkbox.

To support older versions of duplicity, deja-dup added some detection
code that relied on parsing a string intended for the user.  Which is
not normally a wise thing to do.  But in 0.6.14 and before, that string
was not marked for translation, so I felt it was safe to parse the
string.

Then, it was discovered that a bug existed in 0.6.15's detection
feature, and I reverted to the string parsing method of detection for
that version.  But in the mean time, that string had been marked for
translation for 0.6.15's release.

So for those languages that translate that string, deja-dup does not
notice the encryption and will continue an encrypted backup as
unencrypted, creating this bug.

The fix:

Implement a slightly different string parsing that does not depend on
the translation for 0.6.15.  I am working on a patch for 22 and will
backport that to 20 once it is approved.

** Also affects: deja-dup (Ubuntu Oneiric)
   Importance: Undecided
       Status: New

** Also affects: deja-dup/20
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to deja-dup in Ubuntu.
https://bugs.launchpad.net/bugs/877631

Title:
  AssertionError after interruption/restart of backup

Status in Déjà Dup Backup Tool:
  Incomplete
Status in Déjà Dup 20 series:
  New
Status in “deja-dup” package in Ubuntu:
  New
Status in “deja-dup” source package in Oneiric:
  New

Bug description:
  when starting a backup with Ubuntu 11.10 it starts to initialize but
  then fails with the following error message:

  "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 1222, in main
      globals.archive_dir).set_values()
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 684, in set_values
      self.get_backup_chains(partials + backend_filename_list)
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 807, in get_backup_chains
      map(add_to_sets, filename_list)
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 797, in add_to_sets
      if set.add_filename(filename):
    File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 94, in add_filename
      (self.volume_name_dict, filename)
  AssertionError: ({1: u'duplicity-full.20111018T090402Z.vol1.difftar.gpg', 10: u'duplicity-full.20111018T090402Z.vol10.difftar.gpg', 11: u'duplicity-full.20111018T090402Z.vol11.difftar.gpg', 12: u'duplicity-full.20111018T090402Z.vol12.difftar.gpg', 13: u'duplicity-full.20111018T090402Z.vol13.difftar.gpg', 14: u'duplicity-full.20111018T090402Z.vol14.difftar.gpg', 15: u'duplicity-full.20111018T090402Z.vol15.difftar.gpg', 16: u'duplicity-full.20111018T090402Z.vol16.difftar.gpg', 17: u'duplicity-full.20111018T090402Z.vol17.difftar.gpg', 18: u'duplicity-full.20111018T090402Z.vol18.difftar.gpg', 19: u'duplicity-full.20111018T090402Z.vol19.difftar.gpg', 20: u'duplicity-full.20111018T090402Z.vol20.difftar.gpg', 21: u'duplicity-full.20111018T090402Z.vol21.difftar.gpg', 22: u'duplicity-full.20111018T090402Z.vol22.difftar.gpg', 23: u'duplicity-full.20111018T090402Z.vol23.difftar.gpg', 24: u'duplicity-full.20111018T090402Z.vol24.difftar.gpg', 25: u'duplicity-full.20111018T090402Z.vol25.difftar.gpg'}, u'duplicity-full.20111018T090402Z.vol25.difftar.gz')"

  I'm trying to make a backup to my Ubuntu One online storage with my backup being encrypted.
  Before this error occured, I was making my initial backup when the program returned an error code 302 ("Got status code 302") and aborted when it was close to being finished.

  I'm using
  deja-dup  20.0-0ubuntu3
  duplicity  0.6.15-0ubuntu2

  For more information, please see the attachment containing two logs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/deja-dup/+bug/877631/+subscriptions