lundi 27 avril 2015

CircleCI with AWS: RequestTimeTooSkewed error

I'm running tests on CircleCI and getting this error about the time being wrong when posting to AWS S3 (via Paperclip's S3 integration).

AWS::S3::Errors::RequestTimeTooSkewed: The difference between the request time and the current time is too large.

I've tried setting up NTP or doing a curl request to update the time, but even root is not permissioned as it's a shared environment.

sudo date -s "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')"

date: cannot set date: Operation not permitted

It works fine on my local environment and in production. How can I get these tests to pass?

Aucun commentaire:

Enregistrer un commentaire