fuzhy
04/20/2023, 12:03 PMOr Tzabary
04/20/2023, 12:11 PMfuzhy
04/21/2023, 2:56 AMlevel=error msg="could not abort multipart upload" func="pkg/gateway/operations.(*DeleteObject).HandleAbortMultipartUpload" file="build/pkg/gateway/operations/deleteobject.go:36" error="NoSuchUpload: The specified multipart upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed.\n\tstatus code: 404, method=DELETE operation_id=delete_object service_name=s3_gateway upload_id=xxx user=admin
Or Tzabary
04/21/2023, 3:09 AMfuzhy
04/21/2023, 3:22 AMOr Tzabary
04/21/2023, 5:23 AMAbortMultiPartUpload
, though the error message you shared seems to be related to something else, it looks like the DeleteObject
handler was triggered with UploadId
(which triggers the AbortMultiPartUpload
and it was invalid).
I’ve added to the issue request to add examples, but to better understand what went wrong for you, can you please share what you tried to do with the S3 gateway?fuzhy
04/21/2023, 5:40 AMinput := &s3.AbortMultipartUploadInput{
Bucket: aws.String(repo),
Key: aws.String(filepath.Join(branch, prefix)),
UploadId: aws.String(uploadId),
}
// client is the aws s3 client from the provided lakefs address/accessKeyID/secretAccessKey
output, err := client.AbortMultipartUpload(ctx, input)
Or Tzabary
04/21/2023, 5:41 AMfuzhy
04/21/2023, 5:42 AMoperation error S3: AbortMultipartUpload, exceeded maximum number of attempts, 3, https response error StatusCode: 500, api error InternalError: We encountered an internal error, please try again.
And the previous error information is the log of lakefs.CreateMultipartUpload
and it return the uploadId. I can also call UploadPart
and CompleteMultipartUpload
with the uploadId.Or Tzabary
04/21/2023, 5:47 AMfuzhy
04/21/2023, 5:50 AMOr Tzabary
04/21/2023, 5:51 AMfuzhy
04/21/2023, 5:56 AMOr Tzabary
04/21/2023, 5:56 AMfuzhy
04/21/2023, 5:58 AM