I'm using dokku to host a rails application that uses aws-s3 SDK gem to upload files to S3. When I try to upload a file to the server, it gives me the following error in my logs:
Aws::S3::Errors::RequestTimeTooSkewed (The difference between the request time and the current time is too large.):
S3 bucket is in us-east-1 while the timezone on my server is set to Chicago timezone.
date Mon Mar 21 23:33:33 CDT 2016
When I tail the dokku logs, it shows me the time in UTC format:
2016-03-22T04:28:39.425196210Z prod[web.2]: I, [2016-03-22T04:28:39.422140 #154] INFO -- : worker=2 ready
How can I sync up my time between dokku and OS? Does my OS need to be in sync with S3 time? If so, there is no Chicago timezone S3 buckets.
/etc/timezone
America/Chicago
/etc/localtime is symlinked to /usr/share/zoneinfo/America/Chicago
Aucun commentaire:
Enregistrer un commentaire