Wednesday, March 2, 2022

An error occurred (RequestTimeTooSkewed) when calling the ListObjectsV2 operation

 Problem:

 When trying to access S3 bucket from a VM machine, I get this error:

 [oracle@pon01 backup]$ aws s3 ls s3://db-bucket

An error occurred (RequestTimeTooSkewed) when calling the ListObjectsV2 operation: The difference between the request time and the current time is too large.



Analysis:

The machine time is not in sync with the universal time, it was 54 minutes lagging behind.

Checking the current machine time:

# date

Checking the current universal time from s3.amazonaws.com:

# curl http://s3.amazonaws.com -v


Solution:

Sync the local machine time with the universal time shown in curl output:

[As root user]

# date -s "15:45:00"

No comments:

Post a Comment