- Newest
- Most votes
- Most comments
For an upload of this size, I would recommend setting the S3 CLI's preferred transfer client to the newer Common Runtime mode, as follows:
aws configure set default.s3.preferred_transfer_client crt
I'm afraid I can't offer any guidance on the errors you're seeing, but this might help. And if it doesn't, I would recommend following https://docs.aws.amazon.com/AmazonS3/latest/userguide/tutorial-s3-mpu-additional-checksums.html so you have more control. Please let us know how you get on
The behavior you're experiencing with the S3 upload of a large 1TB file is not typical, but it's not uncommon for very large file uploads to encounter issues. Here are some insights and suggestions:
-
Multipart Upload: For files larger than 100MB, AWS S3 uses multipart uploads. Your debug log shows that it's uploading part numbers in the 8000+ range, which indicates the multipart upload is being used.
-
Completion Phase: It appears that all parts have been uploaded successfully (as indicated by the 200 status codes), and the process may be in the final stages of completing the multipart upload. This completion phase can take some time for very large files, especially when using the DEEP_ARCHIVE storage class.
-
Network Issues: The long pause could be due to network instability or timeouts, especially given the file size and storage class.
-
CLI Configuration: You might want to adjust some AWS CLI configuration parameters to optimize for large file uploads. Consider setting:
- multipart_threshold: 8MB (default)
- multipart_chunksize: 8MB (default)
- max_concurrent_requests: 10 (default)
- max_queue_size: 1000 (default)
You can increase these values to potentially improve upload performance.
-
Resuming Upload: If you do decide to interrupt the process, you can usually resume the upload using the same command with the --continue flag. This should pick up where it left off without starting over completely.
-
Monitoring: You can use another terminal to run 'aws s3 ls s3://my-bucket-name/' periodically to check if the file appears in the bucket, which would indicate completion.
-
S3 Transfer Acceleration: For future uploads, consider using S3 Transfer Acceleration, which can significantly improve upload speeds for large files, especially over long distances.
Given the current situation, it might be worth waiting a bit longer if possible, as the upload may eventually complete. If you do decide to interrupt, use the --continue option when restarting to avoid uploading the entire file again.
For future large uploads, consider splitting very large files into smaller chunks before uploading, or use specialized tools designed for handling extremely large file transfers to S3.
Sources
S3 Transfer Rates Capped at 2.8mb/s ??? How Can I Speed This Up? | AWS re:Post
cp — AWS CLI 2.25.11 Command Reference
Upload large files to S3 via CLI | AWS re:Post
low s3 speed from EC2 | AWS re:Post
answered 2 years ago
Relevant content
asked 3 years ago
asked 5 years ago

I know how to use AI, but I came here to see if I can get a response from a human :)
There's no point setting configs to defaults, since they're already "defaults".
"--continue" isn't a parameter of "aws s3 cp".
I already did "ls", as I said the file isn't in the bucket yet. (it's however in the pending multipart uploads list)
The command is still running, but no progress since, yet.