Duplicity: Key Error 418

Asked by Rebecca on 2018-05-06

Hi

My restore from backup has stalled halfway with only this error as a reference. Could anyone explain the error and perhaps the solution to this error? Attached is the log that is left by the application.

Traceback (innermost last):
  File "/usr/bin/duplicity", line 1555, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1541, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1393, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1472, in do_backup
    restore(col_stats)
  File "/usr/bin/duplicity", line 728, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 558, in Write_ROPaths
    for ropath in rop_iter:
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 521, in integrate_patch_iters
    for patch_seq in collated:
  File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 276, in collate2iters
    relem1 = riter1.next()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 128, in difftar2path_iter
    multivol_fileobj.close() # aborting in middle of multivol
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 249, in close
    if not self.addtobuffer():
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 237, in addtobuffer
    self.tarinfo_list[0] = self.tar_iter.next()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 344, in next
    self.set_tarfile()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 333, in set_tarfile
    self.current_fp = self.fileobj_iter.next()
  File "/usr/bin/duplicity", line 764, in get_fileobj_iter
    backup_set.volume_name_dict[vol_num],
 KeyError: 418

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
2018-05-08
Last reply:
2018-05-08

Hello Rebecca,

I cannot see the attachment with your log file. You can upload it here:
https://paste.ubuntu.com/
if you cannot attach it.

Kind regards,
Aaron

One thing that will be very important will be the duplicity command that you ran, so please check this is in the beginning of your log file, or also provide this.

Rebecca (beckylum) said : #3

The command i used:
duplicity --force -t 7D "file:///media/rebecca/My Passport/Temp_Backup" .

and the pastebin is here:

https://paste.ubuntu.com/p/KNfC3hxnKm/

edso (ed.so) said : #4

On 5/6/2018 13:03, Rebecca wrote:
> Question #668671 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/668671
>
> Status: Needs information => Open
>
> Rebecca gave more information on the question:
> The command i used:
> duplicity --force -t 7D "file:///media/rebecca/My Passport/Temp_Backup" .
>
> and the pastebin is here:
>
> https://paste.ubuntu.com/p/KNfC3hxnKm/
>

this looks incomplete. can you dump and post the _full_ output of your command? raising log verbosity to debug might give more info as well. eg.

duplicity --force -v9 -t 7D "file:///media/rebecca/My Passport/Temp_Backup" . > /tmp/duperror.log 2>&1

this can get very big. so zipping the result and upload the archive to a cloud/filehoster might be needed.

..ede/duply.net

Rebecca (beckylum) said : #5

Hi edso,

I have rerun using your command and have loaded the log to the google drive:

https://drive.google.com/open?id=1j78I7XS4VyGwayAKkGRRkhh0kp8i8JbO

I hope that helps.

edso (ed.so) said : #6

On 08.05.2018 13:33, Rebecca wrote:
> Question #668671 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/668671
>
> Status: Answered => Open
>
> Rebecca is still having a problem:
> Hi edso,
>
> I have rerun using your command and have loaded the log to the google
> drive:
>
> https://drive.google.com/open?id=1j78I7XS4VyGwayAKkGRRkhh0kp8i8JbO
>
> I hope that helps.
>

it does. two issues

1.
> Making directory .
> Writing home of type dir
> Making directory ./home
> Writing home/rebecca of type dir
> Error '[Errno 13] Permission denied: './home/rebecca'' processing home/rebecca
> Skipping home/rebecca/..profile.swp because of previous error
> Skipping home/rebecca/.AndroidStudio2.3 because of previous error

there is some issue w/ creating file in the current folder. choose a different target folder.

2.
that's a fatal one unfortunately.

you are missing the file 'duplicity-full.20180227T142615Z.vol418.difftar.gpg' (Key 418) on your backend, so duplicity errs out when trying to process it.

you may try '--ignore-errors' as documented in the man page
  http://duplicity.nongnu.org/duplicity.1.html
, but there will be lost files unless you miraculously find and place the missing file on the backend again.

..ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Rebecca for more information if necessary.

To post a message you must log in.