Duplicity und S3 Frankfurt Bucket-Fehler: Bitte verwenden Sie AWS4-HMAC-SHA256

978
Messa

Ich versuche, meine Dateien über Duplicity in Amazon S3 - Bucket in der Region Frankfurt (eu-central-1) zu sichern .

Mein Befehl:

/usr/bin/duplicity \ --exclude-if-present do-not-backup \ --s3-use-new-style \ --s3-use-ia \ --sign-key 9CCF...585 \ --encrypt-key 9CCF...585 \ --encrypt-key 9D43...725 \ --use-agent \ / \ s3+http://my-example-frankfurt-bucket/backups/ 

AWS kehrt jedoch 400 Bad Requestmit folgendem zurück <Message>:

Der von Ihnen bereitgestellte Autorisierungsmechanismus wird nicht unterstützt. Bitte verwenden Sie AWS4-HMAC-SHA256.

Full Traceback:

Traceback (most recent call last): File "/usr/bin/duplicity", line 1553, in <module> with_tempdir(main) File "/usr/bin/duplicity", line 1547, in with_tempdir fn() File "/usr/bin/duplicity", line 1382, in main action = commandline.ProcessCommandLine(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1126, in ProcessCommandLine backup, local_pathname = set_backend(args[0], args[1]) File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1015, in set_backend globals.backend = backend.get_backend(bend) 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 166, in __init__ self.resetConnection() File "/usr/lib/python2.7/dist-packages/duplicity/backends/_boto_single.py", line 191, in resetConnection location=self.my_location) File "/usr/lib/python2.7/dist-packages/boto/s3/connection.py", line 625, in create_bucket response.status, response.reason, body) S3ResponseError: S3ResponseError: 400 Bad Request <?xml version="1.0" encoding="UTF-8"?> <Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>3F4...7DF7</RequestId><HostId>9nXs0JD...UeaU2WyRiw=</HostId></Error> 

Verwendete Versionen: Duplicity 0.7.11, boto 2.44.0

0

1 Antwort auf die Frage

4
Messa

Ich habe das Problem behoben, indem ich den S3-Hostnamen direkt angegeben habe - obwohl ich nicht sicher bin, wie genau es behoben wird :)

/usr/bin/duplicity \ --exclude-if-present do-not-backup \ --s3-use-new-style \ --s3-use-ia \ --sign-key 9CCF...585 \ --encrypt-key 9CCF...585 \ --encrypt-key 9D43...725 \ --use-agent \ / \ s3://s3.eu-central-1.amazonaws.com/my-example-frankfurt-bucket/backups/ 

BTW. Die Liste der AWS-Endpunkte finden Sie hier: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region