How to fix Amazon S3-RequestTimeTooSkewed?

If you have configured a Amazon S3 backup server under cPanl backup configuration to upload backup files at some point come you may across an error -"RequestTimeTooSkewed".

Firstly , you need to know that Amazon S3 uses NTP system clock . The error means that our server time and that of Amazon clocks are out of sync.

For this you will need to install NTP on your server -
apt-get install ntp
OR
yum install ntp

Then , configure NTP to use Amazon server - nano /etc/ntp.conf
Add hash to default server and add below to the /etc/ntp.conf file.

server 0.amazon.pool.ntp.org iburst
server 1.amazon.pool.ntp.org iburst
server 2.amazon.pool.ntp.org iburst
server 3.amazon.pool.ntp.org iburst

Restart NTP service on the server -

service ntpd restart
OR
/bin/systemctl start ntpd.service

In case the service ntpd service doesn't start and gives an error then you will need to check - /var/log/messages
Error: cap_set_proc() failed to drop root privileges: Operation not permitted
This means container does not have sys_time enabled . You will need to login to the node to make further changes -
Login to Node:
#vzctl stop
#vzctl set 101 --capability sys_time:on --save (Replace 101 with container ID)
#vzctl start

Lastly check connection to Amazon server -

telnet s3.amazonaws.com 80
Trying 205.251.242.241...
Connected to s3.amazonaws.com.
Escape character is '^]'.
GET / HTTP/1.0

You should be able to backup data to Amazon S3 server now.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to setup a WordPress website on plain Centos server?

The following steps have been successfully tested on a plain centos server. Now lets start...

How to backup and restore large MySQL databases using mysqldump?

1. Backup database: #mysqldump -u username -p[username_password] databasename >...

How to install Memcached on CentOS?

Memcached is very fast caching system for MySQL. It is a distributed, high-performance, in-memory...

How to install AVG Antivirus scanner on Ubuntu?

AVG free is antivirus which protects from spyware as well malware. It is free to use for private...

How to install latest version of git on CentOS release 6.8 (Final)?

Install latest version of git on CentOS release 6.8 - Step 1. Install Dependencies - yum install...

Powered by WHMCompleteSolution