I can consistently reproduce something apparently similar with one of my
backups.  Interestingly it happens after "processed volume 51 of 51",
but to judge by the filenames it was a long way from done restoring, and
there are a total of 76 increments in the full backup.


Writing bzr-explorer/.bzr/repository/pack-names of type reg
Writing bzr-explorer/.bzr/repository/packs of type dir
Making directory /home/mbp/tmp/trial-restore/bzr-explorer/.bzr/repository/packs
Writing 
bzr-explorer/.bzr/repository/packs/3a9b176eabd8dfe6b0283df2f776eb15.pack of 
type reg
Deleting /tmp/duplicity-R7p10d-tempdir/mktemp-tYge6x-52
Processed volume 51 of 51
Traceback (most recent call last):
  File "/home/mbp/work/duplicity/duplicity-bin", line 1245, in <module>
    with_tempdir(main)
  File "/home/mbp/work/duplicity/duplicity-bin", line 1238, in with_tempdir
    fn()
  File "/home/mbp/work/duplicity/duplicity-bin", line 1192, in main
    restore(col_stats)
  File "/home/mbp/work/duplicity/duplicity-bin", line 539, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/home/mbp/work/duplicity/duplicity/patchdir.py", line 522, in 
Write_ROPaths
    ITR( ropath.index, ropath )
  File "/home/mbp/work/duplicity/duplicity/lazy.py", line 335, in __call__
    last_branch.fast_process, args)
  File "/home/mbp/work/duplicity/duplicity/robust.py", line 37, in 
check_common_error
    return function(*args)
  File "/home/mbp/work/duplicity/duplicity/patchdir.py", line 575, in 
fast_process
    ropath.copy( self.base_path.new_index( index ) )
  File "/home/mbp/work/duplicity/duplicity/path.py", line 416, in copy
    other.writefileobj(self.open("rb"))
  File "/home/mbp/work/duplicity/duplicity/path.py", line 591, in writefileobj
    buf = fin.read(_copy_blocksize)
  File "/home/mbp/work/duplicity/duplicity/patchdir.py", line 200, in read
    if not self.addtobuffer():
  File "/home/mbp/work/duplicity/duplicity/patchdir.py", line 225, in 
addtobuffer
    self.tarinfo_list[0] = self.tar_iter.next()
  File "/home/mbp/work/duplicity/duplicity/patchdir.py", line 332, in next
    self.set_tarfile()
  File "/home/mbp/work/duplicity/duplicity/patchdir.py", line 321, in 
set_tarfile
    self.current_fp = self.fileobj_iter.next()
  File "/home/mbp/work/duplicity/duplicity-bin", line 575, in get_fileobj_iter
    backup_set.volume_name_dict[vol_num],
KeyError: 52

The backup contents are private but I'm happy to send you edited data if
that helps.

** Changed in: duplicity
       Status: Invalid => Confirmed

-- 
Crash when restoring data KeyError
https://bugs.launchpad.net/bugs/498933
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to