BackendException error with S3

Asked by Bakos Attila

Hi, I'm using Duplicity 0.7.01 with Boto 2.35.2 on Ubuntu 14.04.1.
I get an empty Backend Exception message when I try to backup to S3.
A simplified example:

#!/bin/bash
export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
duplicity /root s3://s3-website.eu-central-1.amazonaws.com/bucket_name/folder_name

If I run this script I get no output for about a minute, then I get this line:
BackendException:
Any suggestions?

Question information

Language:
English Edit question
Status:
Solved
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Solved by:
Robin Miller
Solved:
Last query:
Last reply:
Revision history for this message
edso (ed.so) said :
#1

On 21.01.2015 11:31, Bakos Attila wrote:
> New question #261028 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/261028
>
> Hi, I'm using Duplicity 0.7.01 with Boto 2.35.2 on Ubuntu 14.04.1.
> I get an empty Backend Exception message when I try to backup to S3.
> A simplified example:
>
> #!/bin/bash
> export AWS_ACCESS_KEY_ID="..."
> export AWS_SECRET_ACCESS_KEY="..."
> duplicity /root s3://s3-website.eu-central-1.amazonaws.com/bucket_name/folder_name
>
> If I run this script I get no output for about a minute, then I get this line:
> BackendException:
> Any suggestions?
>

use '-v9' to enable max verbosity, see if that helps. ..ede/duply.net

Revision history for this message
Bakos Attila (0z-info) said :
#2

Thanks, this is the output I got:

Using archive dir: /root/.cache/duplicity/7d558669ee26e1cbcf70434876a2c820
Using backup name: 7d558669ee26e1cbcf70434876a2c820
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.copycombackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Failed: No module named requests_oauthlib
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Using temporary directory /tmp/duplicity-l91QRX-tempdir
Backend error detail: Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 1500, in <module>
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 1494, in with_tempdir
    fn()
  File "/usr/local/bin/duplicity", line 1327, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/duplicity/commandline.py", line 1055, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/usr/local/lib/python2.7/dist-packages/duplicity/commandline.py", line 948, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backend.py", line 221, in get_backend
    obj = get_backend_object(url_string)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backend.py", line 207, in get_backend_object
    return factory(pu)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line 161, in __init__
    self.resetConnection()
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line 187, in resetConnection
    raise BackendException(err.message)
BackendException

BackendException:

Revision history for this message
Best Robin Miller (robincello) said :
#3

Possibly it's due to the address you're connecting to, which looks like the S3 website URL, rather than the REST endpoint?

What happens if you change 's3-website.eu-central-1' to 's3-eu-central-1.amazonaws.com'?

-Robin

Revision history for this message
Bakos Attila (0z-info) said :
#4

That did the trick! Thanks a lot :)