Backup "failed with an unknown error."

Asked by Charles F. Dingman

I had been backing up my home directory to Amazon S3 using Deja Dup for about 2 months without incident until 2-3 days ago when I started getting a Backup Failed message that stated that it had "failed with an unknown error."
It provides the following detail in the error window (not sure that it is exactly the same each time, but the final few lines seem consistent):
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1245, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1238, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1143, in main
    globals.archive_dir).set_values()
  File "/usr/lib64/python2.6/site-packages/duplicity/collections.py", line 682, in set_values
    backup_chains = self.get_sorted_chains(backup_chains)
  File "/usr/lib64/python2.6/site-packages/duplicity/collections.py", line 920, in get_sorted_chains
    assert chain_list[1].archive_dir # other is local
AttributeError: BackupChain instance has no attribute 'archive_dir'

I had not yet tested my ability to restore from the backup before this error started to occur.

I am running Fedora 13, Deja-Dup 14.2.

Advice would be appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Terry
Solved:
Last query:
Last reply:
Revision history for this message
Best Michael Terry (mterry) said :
#1

You have hit a bug in duplicity: https://bugs.launchpad.net/duplicity/+bug/401153

The workaround is to delete your Deja Dup cache files:
rm -r ~/.cache/deja-dup

Revision history for this message
Charles F. Dingman (charles-dingman) said :
#2

Thanks Michael Terry, that solved my question.

Revision history for this message
Tom Burnett (tcburnett) said :
#3

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1323, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1316, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1168, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 930, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 155, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/u1backend.py", line 72, in __init__
    import ubuntuone.couch.auth as auth
ImportError: No module named couch.auth