backup failed after moving backup location

Bug #1049002 reported by Api
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Déjà Dup
Confirmed
Undecided
Unassigned

Bug Description

How to reproduce:
- full backup to a remote SSH location A
- then move the remote backup location to B and update the local cache files accordingly, so that dejadup continues with incremental backups wrt the previous full backup
I followed this guide http://blog.linux2go.dk/2011/01/20/moving-duplicity-and-hence-deja-dup-backups/
- then run dejadup again: you expect an incremental backup to location B, instead you get the following error
- as a side effect, DD deletes all local cache files, even those of other duplicity backups

Ubuntu 12.04.1 LTS 64 bit
deja-dup 22.0-0ubuntu2
duplicity 0.6.19-0ubuntu0ppa18~precise1

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1391, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1384, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1264, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 696, in set_values
    self.get_backup_chains(partials + backend_filename_list)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 819, in get_backup_chains
    map(add_to_sets, filename_list)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 809, in add_to_sets
    if set.add_filename(filename):
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 97, in add_filename
    (self.volume_name_dict, filename)
AssertionError: ({1: 'duplicity-full.20120625T080651Z.vol1.difftar.gpg', 2: 'duplicity-full.20120625T080651Z.vol2.difftar.gpg', 3: 'duplicity-
...
...
...
full.20120625T080651Z.vol943.difftar.gpg', 944: 'duplicity-full.20120625T080651Z.vol944.difftar.gpg', 945: 'duplicity-full.20120625T080651Z.vol945.difftar.gpg', 946: 'duplicity-full.20120625T080651Z.vol946.difftar.gpg'}, 'duplicity-full.20120625T080651Z.vol606.difftar.gpg')

Revision history for this message
Api (aa-pp-ii+launchpad) wrote :
Revision history for this message
Api (aa-pp-ii+launchpad) wrote :

You can find in attach the debug log of the failure.
Please note that from now on, backup always fails.

description: updated
Revision history for this message
Api (aa-pp-ii+launchpad) wrote :

I've re-run the backup many times:
- on the NEW remote SSH location, it always fails with the message reported in the bug log
- on the OLD remote SSH location, the backup is performed correctly
I've re-checked that both remote locations are correctly rsynced with proper file permissions and everything is perfectly identical.

description: updated
Revision history for this message
Hernan. (elmudometal) wrote :

How to reproduce:
- full backup to a remote ubuntu one
in ubuntu 12.10 ->32bit

Revision history for this message
sam tygier (samtygier) wrote :

I am seeing a similar message while trying to restore a file

deja-dup_26.0-0ubuntu1_amd64.deb
Linux Mint 15 Olivia

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 1286, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 693, in set_values
    self.get_backup_chains(partials + backend_filename_list)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", lineTraceback (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 1286, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 693, in set_values
    self.get_backup_chains(partials + backend_filename_list)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 816, in get_backup_chains
    map(add_to_sets, filename_list)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 806, in add_to_sets
    if set.add_filename(filename):
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 97, in add_filename
    (self.volume_name_dict, filename)
AssertionError: ({1: 'duplicity-full.20130105T232525Z.vol1.difftar', 2: 'duplicity-full.20130105T232525Z.vol2.difftar.gz',
...
full.20130105T232525Z.vol714.difftar.gz', 715: 'duplicity-full.20130105T232525Z.vol715.difftar.gz'}, 'duplicity-full.20130105T232525Z.vol1.difftar.gz')

Changed in deja-dup:
status: New → Confirmed
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.