Skip to content

Instantly share code, notes, and snippets.

@tmont
Created November 6, 2014 06:48
Show Gist options
  • Save tmont/aeaaf521e15d83aa14e2 to your computer and use it in GitHub Desktop.
Save tmont/aeaaf521e15d83aa14e2 to your computer and use it in GitHub Desktop.
failed s3 cp output
2014-11-05 22:15:26,803 - Thread-8 - botocore.endpoint - DEBUG - Exception received when sending HTTP request.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/botocore/endpoint.py", line 155, in _get_response
proxies=self.proxies, timeout=self.timeout)
File "/Library/Python/2.7/site-packages/botocore/vendored/requests/sessions.py", line 464, in send
r = adapter.send(request, **kwargs)
File "/Library/Python/2.7/site-packages/botocore/vendored/requests/adapters.py", line 356, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='adstudio-assets-prod.s3.amazonaws.com', port=443): Max retries exceeded with url: /0.0.57-s3test/js/lib/angular-resource.js (Caused by <class 'httplib.BadStatusLine'>: '')
2014-11-05 22:15:26,806 - Thread-8 - botocore.hooks - DEBUG - Event needs-retry.s3.PutObject: calling handler <botocore.retryhandler.RetryHandler object at 0x10e84a250>
2014-11-05 22:15:26,807 - Thread-8 - botocore.retryhandler - DEBUG - retry needed, retryable exception caught: HTTPSConnectionPool(host='adstudio-assets-prod.s3.amazonaws.com', port=443): Max retries exceeded with url: /0.0.57-s3test/js/lib/angular-resource.js (Caused by <class 'httplib.BadStatusLine'>: '')
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/botocore/retryhandler.py", line 262, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/Library/Python/2.7/site-packages/botocore/retryhandler.py", line 310, in __call__
caught_exception)
File "/Library/Python/2.7/site-packages/botocore/retryhandler.py", line 219, in __call__
return self._check_caught_exception(attempt_number, caught_exception)
File "/Library/Python/2.7/site-packages/botocore/retryhandler.py", line 352, in _check_caught_exception
raise caught_exception
ConnectionError: HTTPSConnectionPool(host='adstudio-assets-prod.s3.amazonaws.com', port=443): Max retries exceeded with url: /0.0.57-s3test/js/lib/angular-resource.js (Caused by <class 'httplib.BadStatusLine'>: '')
2014-11-05 22:15:26,808 - Thread-8 - botocore.retryhandler - DEBUG - Retry needed, action of: 0.674755937987
2014-11-05 22:15:26,808 - Thread-8 - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.674755937987 seconds
2014-11-05 22:15:27,483 - Thread-8 - botocore.awsrequest - DEBUG - Rewinding stream: <open file u'/Users/tmont/code/ngplatform/build/static/js/lib/angular-resource.js', mode 'rb' at 0x10e9061e0>
2014-11-05 22:15:27,483 - Thread-8 - botocore.hooks - DEBUG - Event before-auth.s3: calling handler <function fix_s3_host at 0x10e4f8ed8>
2014-11-05 22:15:27,483 - Thread-8 - botocore.handlers - DEBUG - Checking for DNS compatible bucket for: https://adstudio-assets-prod.s3.amazonaws.com/0.0.57-s3test/js/lib/angular-resource.js
2014-11-05 22:15:27,484 - Thread-8 - botocore.handlers - DEBUG - Not changing URI, bucket is not DNS compatible: 0.0.57-s3test
2014-11-05 22:15:27,484 - Thread-8 - botocore.auth - DEBUG - Calculating signature using hmacv1 auth.
2014-11-05 22:15:27,484 - Thread-8 - botocore.auth - DEBUG - HTTP request method: PUT
2014-11-05 22:15:27,484 - Thread-8 - botocore.auth - DEBUG - StringToSign:
PUT
application/javascript
Thu, 06 Nov 2014 06:15:20 GMT
x-amz-acl:public-read
/0.0.57-s3test/js/lib/angular-resource.js
2014-11-05 22:15:27,484 - Thread-8 - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [PUT]>
2014-11-05 22:15:27,485 - Thread-8 - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (11): adstudio-assets-prod.s3.amazonaws.com
<snip>
2014-11-05 22:15:28,988 - Thread-8 - botocore.awsrequest - DEBUG - Received a non 100 Continue response from the server, NOT sending request body.
2014-11-05 22:15:28,989 - Thread-8 - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "PUT /0.0.57-s3test/js/lib/angular-resource.js HTTP/1.1" 403 None
2014-11-05 22:15:28,994 - Thread-8 - botocore.parsers - DEBUG - Response headers:
{'connection': 'close',
'content-type': 'application/xml',
'date': 'Thu, 06 Nov 2014 06:15:28 GMT',
'server': 'AmazonS3',
'transfer-encoding': 'chunked',
'x-amz-id-2': '0RfCkI2yxGzYYFyeoyUX9/+CtLMw1Y2SRGH22luk0QLMz9fspeH47usunG1MP7LOSQ/zGKaHPCo=',
'x-amz-request-id': 'E0D8D5FC5F2B6A46'}
2014-11-05 22:15:28,994 - Thread-8 - botocore.parsers - DEBUG - Response body:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>xxx</AWSAccessKeyId><StringToSign>PUT
application/javascript
Thu, 06 Nov 2014 06:15:20 GMT
x-amz-acl:public-read
/adstudio-assets-prod/0.0.57-s3test/js/lib/angular-resource.js</StringToSign><SignatureProvided>KS3Q6tWGQxfalQCmTMqiZdmcaMY=</SignatureProvided><StringToSignBytes>50 55 54 0a 0a 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 61 76 61 73 63 72 69 70 74 0a 54 68 75 2c 20 30 36 20 4e 6f 76 20 32 30 31 34 20 30 36 3a 31 35 3a 32 30 20 47 4d 54 0a 78 2d 61 6d 7a 2d 61 63 6c 3a 70 75 62 6c 69 63 2d 72 65 61 64 0a 2f 61 64 73 74 75 64 69 6f 2d 61 73 73 65 74 73 2d 70 72 6f 64 2f 30 2e 30 2e 35 37 2d 73 33 74 65 73 74 2f 6a 73 2f 6c 69 62 2f 61 6e 67 75 6c 61 72 2d 72 65 73 6f 75 72 63 65 2e 6a 73</StringToSignBytes><RequestId>E0D8D5FC5F2B6A46</RequestId><HostId>0RfCkI2yxGzYYFyeoyUX9/+CtLMw1Y2SRGH22luk0QLMz9fspeH47usunG1MP7LOSQ/zGKaHPCo=</HostId></Error>
2014-11-05 22:15:28,995 - Thread-8 - botocore.hooks - DEBUG - Event needs-retry.s3.PutObject: calling handler <botocore.retryhandler.RetryHandler object at 0x10e84a250>
2014-11-05 22:15:28,995 - Thread-8 - botocore.retryhandler - DEBUG - No retry needed.
2014-11-05 22:15:28,995 - Thread-8 - botocore.hooks - DEBUG - Event after-call.s3.PutObject: calling handler <function enhance_error_msg at 0x10e835ed8>
2014-11-05 22:15:28,995 - Thread-8 - botocore.hooks - DEBUG - Event after-call.s3.PutObject: calling handler <awscli.errorhandler.ErrorHandler object at 0x10e839150>
2014-11-05 22:15:28,995 - Thread-8 - awscli.errorhandler - DEBUG - HTTP Response Code: 403
2014-11-05 22:15:28,995 - Thread-8 - awscli.customizations.s3.tasks - DEBUG - A client error (SignatureDoesNotMatch) occurred when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/awscli/customizations/s3/tasks.py", line 94, in _execute_task
getattr(filename, filename.operation_name)(**kwargs)
File "/Library/Python/2.7/site-packages/awscli/customizations/s3/fileinfo.py", line 254, in upload
self._handle_upload(body)
File "/Library/Python/2.7/site-packages/awscli/customizations/s3/fileinfo.py", line 265, in _handle_upload
response_data, http = operate(self.service, 'PutObject', params)
File "/Library/Python/2.7/site-packages/awscli/customizations/s3/utils.py", line 220, in operate
http_response, response_data = operation.call(**kwargs)
File "/Library/Python/2.7/site-packages/botocore/operation.py", line 98, in call
parsed=response[1])
File "/Library/Python/2.7/site-packages/botocore/session.py", line 712, in emit
return self._events.emit(event_name, **kwargs)
File "/Library/Python/2.7/site-packages/botocore/hooks.py", line 152, in emit
response = handler(**kwargs)
File "/Library/Python/2.7/site-packages/awscli/errorhandler.py", line 70, in __call__
http_status_code=http_response.status_code)
ClientError: A client error (SignatureDoesNotMatch) occurred when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.
2014-11-05 22:15:29,000 - Thread-8 - awscli.customizations.s3.executor - DEBUG - Shutdown request received in worker thread, shutting down worker thread.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment