backup to amazon s3 difficulty

Asked by Martin Fisher

Hello

I am trying to use Deja Dup to backup to Amazon S3. I have set up an Amazon Web Services account, obtained my
Access key ID and Secret access key, and created a bucket. The backup fails, however (please see below). There appears to be an access denied problem. I am, however, confident that I am using the correct Access key ID and Secret access key (I down loaded them upon creation) and I have checked that the bucket works fine (I can upload a file using the AWS console). I have tried with buckets in the US Standard location and EU locations of Ireland and Frankfurt, all to no avail.

I am using Ubuntu 15.04, Deja Dup 32.0-0ubuntu5 and Duplicity 0.7.05-0ubuntu0ppa1130~ubuntu15.04.1 (the latter by using the ppa).

If anybody could advise me regarding this problem I would be very grateful.

Martin

Backup failed

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1525, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1519, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1357, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1095, 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 192, in resetConnection
    self.bucket = self.conn.create_bucket(self.bucket_name)
  File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 621, in create_bucket
    response.status, response.reason, body)
S3ResponseError: S3ResponseError: 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>92048338F59FCA6E</RequestId><HostId>3KCGLOQfVBnlbS70ljcFyIGKGDptipKqMkI34cJxm/+gNI5XIMcL3xh8my/lZPjmLb51XmwbdzY=</HostId></Error>

Question information

Language:
English Edit question
Status:
Solved
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Fisher
Solved:
Last query:
Last reply:
Revision history for this message
Martin Fisher (yusuf-martin) said :
#1

On a whim I regenerated the key pair for AWS and now the problem described has gone away. I have no idea why.