Skip to content

cannot copy some file to s3

0

i encrypt file.tar.gz using gpg and used aws s3 cli copy those files to aws s3 bucket some successful some can not i got error SSL validation failed for https://mybycket/myfile.tar.gz.gpg EOF occurred in violation of protocol (_ssl.c:2427)

aws-cli/2.25.10 Python/3.12.9 Linux/6.8.0-57-generic exe/x86_64.ubuntu.24

1 Answer
0

The error you're encountering suggests there might be an issue with the SSL connection when trying to upload your encrypted files to S3. This could be caused by a few different factors:

  1. Network connectivity issues: Intermittent network problems or unstable internet connection can cause SSL validation failures.

  2. AWS CLI version: Ensure you're using the latest version of the AWS CLI. While your version (2.25.10) is relatively recent, updating to the latest version might resolve potential bugs.

  3. Python version: The Python version you're using (3.12.9) is current, but it's worth checking if there are any known issues with this specific version and the AWS CLI.

  4. File size: If some of your encrypted files are particularly large, they might be hitting upload limits. For files larger than 100MB, it's recommended to use multipart uploads.

  5. S3 bucket configuration: Verify that your S3 bucket is correctly configured to accept the uploads and that you have the necessary permissions.

To troubleshoot this issue:

  1. Try uploading the files that failed again. If it's an intermittent network issue, they might succeed on a retry.

  2. Use the --debug flag with your AWS CLI command to get more detailed error information.

  3. For large files, try using the aws s3 cp command with the --multipart-upload option.

  4. Verify your IAM permissions to ensure you have the necessary access to upload to the S3 bucket.

  5. Check if you can upload the same files using the AWS Management Console to isolate whether it's a CLI-specific issue.

If the problem persists, you may need to contact AWS support for further assistance, especially if you've verified your permissions and network connection are correct.
Sources
Upload large files to S3 via CLI | AWS re:Post
How to copy a large file on ec2 from stdin to s3? | AWS re:Post

answered a year ago

AWS
EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.