dimanche 29 mars 2015

Aws PHP SDK S3 RequestTimeTooSkewed Error

Up until last night, I was able to upload files to S3 using the AWS PHP SDK without any problem. Since this morning (clock's changed because of the Daylight Saving) I've been getting RequestTimeTooSkewed error.


I compared AWS' and my server's time and they are identical (apart from AWS being on GMT and my server is on UTC)



wget http://ift.tt/1ClJdKJ --no-check-certificate --server-response
--2015-03-29 11:23:06-- http://ift.tt/1ClJdKJ
Resolving email.us-east-1.amazonaws.com (email.us-east-1.amazonaws.com)... 207.171.162.129
Connecting to email.us-east-1.amazonaws.com (email.us-east-1.amazonaws.com)|207.171.162.129|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 404 Not Found
x-amzn-RequestId: 981a9ae9-d5fd-11e4-8f83-65a61f41c957
Content-Length: 29
Date: Sun, 29 Mar 2015 10:23:08 GMT
2015-03-29 11:23:07 ERROR 404: Not Found.


And on my server



date -u
Sun Mar 29 11:23:08 UTC 2015


Am I missing something here? Is my server being UTC a problem?





1 commentaire: