Solved: Time Synchronization Issues with Amazon S3
A while back I setup a script to create backups and store them on Amazon S3. Until recently, this has worked great. The script kept bombing with the following error when it actually tried to connect to S3 to upload the backup:
I'm not sure the reason why this happens (it may have something to do with the fact that the server in question is running as a virtual machine) but after some digging I realized the server I'm attempting to do the backup from had an inaccurate date.
To fix this you can run something like the following from the command prompt:
shane@ubuntu-ci:~/s3sync$ sudo ntpdate ntp.ubuntu.com [sudo] password for shane: 22 Aug 14:46:49 ntpdate: step time server 126.96.36.199 offset 2584.662208 sec
Generally, it's also a good idea to have this setup as a daily cron job. If you're running with Ubuntu, here are some instructions.