aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.1k stars 4.01k forks source link

aws s3 recursive copy errors out #8662

Closed manivmtc closed 1 month ago

manivmtc commented 2 months ago

Describe the bug

The command aws s3 cp local_folder s3://some-bucket/ --recursive
failed with the following message:
An error occurred (RequestTimeTooSkewed) when calling the CreateMultipartUpload operation: The difference between the request time and the current time is too large.

Expected Behavior

The copy should succeed or the error message should provide ways to mitigate or solve the issue

Current Behavior

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

Reproduction Steps

This could be reproduced perhaps by messing a bit with the ntpdate program

Possible Solution

  1. Either the clockskew should be true by default as several users have suggested previously. OR
  2. There should be a way to set the correctClockSkew property as documented in javascript sdk

Additional Information/Context

No response

CLI version used

ws-cli/2.15.43 Python/3.11.8 Linux/5.15.0-88-generic exe/x86_64.ubuntu.20 prompt/off

Environment details (OS name and version, etc.)

Ubuntu 20.04.4 LTS Codename:focal

RyanFitzSimmonsAK commented 1 month ago

Hi @manivmtc, thanks for reaching out. We have an existing issue tracking this feature request (https://github.com/boto/boto3/issues/1252), which I'll bring up with the team. In the meantime, I'd recommend +1-ing that issue, and trying to sync your system clock if you haven't done so already. I'll leave an update in the tracking issue when I know more.

github-actions[bot] commented 1 month ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.