-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3-to-S3 copy_to exception: "parts must contain etag for each part" #870
Comments
Can you share a code example of how you are invoking |
in_uri = URI in_url
out_uri = URI out_url
in_obj = Kino.s3.buckets[in_uri.host].objects[in_uri.path.sub(/^\//,'')]
filesize = in_obj.content_length.to_i
# Copy S3 -> S3
# direct S3-to-S3 (incl. multipart) copy
out_obj = in_obj.copy_to out_uri.path.sub(/^\//,''),
bucket_name: out_uri.host,
content_length: filesize,
reduced_redundancy: true,
use_multipart_copy: true,
acl: :bucket_owner_full_control The exception handler (which produces the backtrace above) looks like this: rescue Kino::NoRetryError, OAuth2::Error, StandardError => e
# manually move the message into the dead letter queue
Delivery.dead_letter_q.send_message(msg.body) if msg rescue nil
error = "Delivery job #{job && job.id} failed (#{e.class}): #{e.message}\n\t#{e.backtrace.join("\n\t")}"
Kino.log.error error
Kino.notify error, "Delivery error"
job.update_job status: Kino::JOB_STATUS_FAILED, message: "(#{e.class}) #{e.message}" # rescue nil I did skip some non-related code (IMHO) but hope this shows the use. Pretty basic I think. Interesting to me that I'm catching an ArgumentError deep inside the SDK call stack, which to me seems outside my control. |
Good news, I was able to track down the issue here and I believe I have a fix. I'll publish a bug-fix release with this patch. |
When copying (large, i.e. 50 GB+) objects between buckets in different regions, cross-account, with
#copy_to
, we receive this exception:Also, the transfer is very slow (~ 900 KB/s, from us-east-1 to us-west-). [aws-sdk-v1-1.64.0]
The text was updated successfully, but these errors were encountered: