Backup to AWS S3 fails with a Python stacktrace

Asked by Jacob Horbulyk on 2017-10-06

I'm trying to set up backups from my Ubuntu system to AWS S3. (I've explictly picked an existing S3 bucket following these steps: http://blog.domenech.org/2013/01/backing-up-ubuntu-using-deja-dup-backup-and-aws-s3.html) When I do this, and start the backup I get the following python stacktrace:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1532, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1526, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1364, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1108, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 223, in get_backend
    obj = get_backend_object(url_string)
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 209, in get_backend_object
    return factory(pu)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line 161, in __init__
    self.resetConnection()
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line 187, in resetConnection
    if "NoSuchBucket" in e.error_code:
TypeError: argument of type 'NoneType' is not iterable

Looking at the stack trace, it would appear that AWS is returning with an error and then a python library is choking when it tries to parse the error response. Should I open a bug with this project or is there a known bug in a dependancy library causing this?

Question information

Language:
English Edit question
Status:
Answered
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-06
Last reply:
2017-10-06
Michael Terry (mterry) said : #1

Yeah try opening a bug, not sure what’s causing that.

On Fri, Oct 6, 2017, at 05:27, Jacob Horbulyk wrote:
> New question #658995 on Déjà Dup:
> https://answers.launchpad.net/deja-dup/+question/658995
>
> I'm trying to set up backups from my Ubuntu system to AWS S3. (I've> explictly picked an existing S3 bucket following these steps:
> http://blog.domenech.org/2013/01/backing-up-ubuntu-using-deja-dup-backup-and-aws-s3.html)> When I do this, and start the backup I get the following python
> stacktrace:
>
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 1532, in <module>
> with_tempdir(main)
> File "/usr/bin/duplicity", line 1526, in with_tempdir
> fn()
> File "/usr/bin/duplicity", line 1364, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File "/usr/lib/python2.7/dist-
> packages/duplicity/commandline.py", line> 1108, in ProcessCommandLine
> globals.backend = backend.get_backend(args[0])
> File "/usr/lib/python2.7/dist-packages/duplicity/backend.py",
> line 223,> in get_backend
> obj = get_backend_object(url_string)
> File "/usr/lib/python2.7/dist-packages/duplicity/backend.py",
> line 209,> in get_backend_object
> return factory(pu)
> File
> "/usr/lib/python2.7/dist-
> packages/duplicity/backends/_boto_single.py",> line 161, in __init__
> self.resetConnection()
> File
> "/usr/lib/python2.7/dist-
> packages/duplicity/backends/_boto_single.py",> line 187, in resetConnection
> if "NoSuchBucket" in e.error_code:
> TypeError: argument of type 'NoneType' is not iterable
>
> Looking at the stack trace, it would appear that AWS is
> returning with an> error and then a python library is choking when it tries to parse the> error response. Should I open a bug with this project or is there a
> known bug in a dependancy library causing this?
>
> --
> You received this question notification because you are an answer
> contact for Déjà Dup.

Can you help with this problem?

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

To post a message you must log in.