Hello All,

The following command...

s3cmd -c  s3cfg restore --recursive s3://bucket/path/to/restore/data

results in the following error....

ERROR: S3 error: 403 (SignatureDoesNotMatch): The request signature we 
calculated does not match the signature you provided. Check your Secret Access 
Key and signing method. For more information, see REST Authentication and SOAP 
Authentication for details.

I am able to successfully perform essentially the same task with...

s3cmd --config /home/cass/.s3cfg_cassandra sync --preserve --skip-existing 
s3://bucket/path/to/restore/data /path/to/restore/to

There's a lot of debug output. Here are the last few redacted lines....

DEBUG: Using signature v2
DEBUG: SignHeaders: u'POST\n\n\n\nx-amz-date:Tue, 19 Jun 2018 10:07:33 
+0000\n/<REDACTED>
DEBUG: Processing request, please wait...
DEBUG: get_hostname REDACTED
DEBUG: ConnMan.get(): re-using connection: https:// REDACTED
DEBUG: format_uri(): REDACTED?restore
DEBUG: Sending request method_string='POST', uri=u' REDACTED?restore', 
headers={'Authorization': u'AWS REDACTED ', 'x-amz-date': 'Tue, 19 Jun 2018 
10:07:33 +0000'}, body=(169 bytes)
DEBUG: ConnMan.put(): connection put back to pool (REDACTED)
DEBUG: Response:
{'data': '<Error><Code>SignatureDoesNotMatch</Code><Message>The request 
signature we calculated does not match the signature you provided. Check your 
Secret Access Key and signing method. For more information, see REST 
Authentication and SOAP Authentication for details.</Message><RequestId> 
REDACTED </RequestId></Error>',
'headers': {'content-length': '330',
             'content-type': 'application/xml',
             'date': 'Tue, 19 Jun 2018 10:07:33 GMT',
             'x-amz-id-2': '',
             'x-amz-request-id': REDACTED },
'reason': 'Forbidden',
'status': 403}
DEBUG: S3Error: 403 (Forbidden)
DEBUG: HttpHeader: date: Tue, 19 Jun 2018 10:07:33 GMT
DEBUG: HttpHeader: x-amz-id-2:
DEBUG: HttpHeader: content-length: 330
DEBUG: HttpHeader: x-amz-request-id: REDACTED
DEBUG: HttpHeader: content-type: application/xml
DEBUG: ErrorXML: Code: 'SignatureDoesNotMatch'
DEBUG: ErrorXML: Message: 'The request signature we calculated does not match 
the signature you provided. Check your Secret Access Key and signing method. 
For more information, see REST Authentication and SOAP Authentication for 
details.'
DEBUG: ErrorXML: RequestId: REDACTED
ERROR: S3 error: 403 (SignatureDoesNotMatch): The request signature we 
calculated does not match the signature you provided. Check your Secret Access 
Key and signing method. For more information, see REST Authentication and SOAP 
Authentication for details.

Any idea what might be up here. I did try setting use_path_mode = true in my 
config to no avail. I'd like to use the restore mode as I prefer the semantics 
and there's less chance of an error in my view. I am using third-party S3 
(Swisscom).

Cheers,

Rhys
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to