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[6296]: step time server 91.189.94.4 offset 2584.662208 sec 

 

http://digitalsanctum.com/2009/08/22/solved-time-synchronization-issues-with-amazon-s3/

 

IT-Homer 专栏

你可能感兴趣的:(Solved: Time Synchronization Issues with Amazon S3)