Skip to content

upload files failed

0

2025-11-04-18-25-14.mp4 上传失败: com.amazonaws.services.s3.model.AmazonS3Exception: The specified upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchUpload; Request ID: BQ9SNQY15JFWXZR4), S3 Extended Request ID: +H6UqvtRYXyT1obT9qWS+OG7NExVYlHOqjcq/j0bHZQMh+yMH1bcMRTTJJ3VVYlWPq2XeRhYIElI9mVR+zjNiKnOBqZOSWyWVtU+XrTTHQw=

One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag. (Service: Amazon S3; Status Code: 400; Error Code: InvalidPart; Request ID: SH6R83SGYZ77DN5B)

1 Answer
0

The errors you're encountering indicate issues with a multipart upload to Amazon S3. Here's what's happening:

NoSuchUpload Error (404): This error means the specified multipart upload does not exist. This can occur when:

  • The upload ID is invalid
  • The multipart upload has been aborted
  • The multipart upload has already been completed
  • There may have been a timeout or the upload session expired before completion

InvalidPart Error (400): This error indicates that one or more of the parts you're trying to use to complete the multipart upload could not be found. This happens when:

  • The part was not successfully uploaded to S3
  • The ETag (entity tag) you're providing doesn't match the part's actual ETag
  • The part numbers in your completion request don't correspond to actually uploaded parts

To resolve these issues:

  1. Ensure you're properly initiating the multipart upload and storing the upload ID
  2. Verify that each part is successfully uploaded before attempting to complete the upload
  3. Keep track of the ETag returned for each uploaded part - you'll need to provide these when completing the upload
  4. Make sure part numbers are consecutive and match the parts you actually uploaded
  5. Complete the multipart upload promptly after uploading all parts to avoid session expiration
  6. If a multipart upload fails, you may need to abort it and start a new one rather than trying to resume with an invalid upload ID

Check your code to ensure you're properly handling the upload ID from the initiation step and correctly collecting the part numbers and ETags from each part upload before calling the complete multipart upload operation.
Sources
Using multipart uploads with directory buckets - Amazon Simple Storage Service
upload_part_copy - Boto3 1.42.50 documentation
NoSuchUpload - botocore 1.42.50 documentation
UploadPartCopy - Amazon Simple Storage Service

answered 9 months ago

EXPERT

reviewed 9 months 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.