aws,

AWS S3: "Read timeout on endpoint URL"

Nov 29, 2022 · 1 min read · Post a comment

This is a sort of a second part of the “AWS S3” error series that I’ve encountered a week ago. In the previous post I had the (RequestTimeTooSkewed) The difference between the request time and the current time is too large error, and this time being Read timeout on endpoint URL:... while trying to backup the production DB backups using the aws s3 sync command. This could also happen while running aws s3 cp too.

Prerequisites

  • AWS Account
  • S3 bucket
  • AWS CLI

Solution(s)

the easy fix

Add --cli-read-timeout parameter to the aws s3 cp and aws s3 sync commands whichever you are having issues with. For instance:

aws s3 sync <source_dir> s3://<some_bucket_name> --cli-read-timeout 0

a better solution

Although setting -cli-read-timeout to 0 is basically hacky, as recommended by AWS customize the upload configurations.

finally

Update the AWS CLI tool.

Conclusion

If you have another great solution feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.