Skip to main content
NetApp Knowledge Base

PUT OBJECT COPY with zero-byte source object sometimes hangs

Views:
304
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
esg
Last Updated:

Applies to

StorageGRID 11.4

Issue

  • S3 API CopyObject fails with zero-byte source object
  • Issuing CopyObject by curl freezes without error pop-ups:

$
...
curl -iksS -X PUT <url>/<destination-bucket>/<zero-byte-object-copy> -H content-length:0 -H x-amz-content-sha256:<content-sha256> -H x-amz-copy-source:/<source-bucket>/<zero-byte-object> -H x-amz-date:<YYYYmmddTHHMMSSZ> -H Authorization:AWS4-HMAC-SHA256 Credential=<credential>,SignedHeaders=<headers>,Signature=<signature>
^C  << command hangs and is aborted manually
$

  • Issuing CopyObject by AWS Command Line fails with error Read timeout on endpoint URL:

$ aws s3api --debug --endpoint-url <url> --no-verify-ssl copy-object --bucket <destination-bucket> --key <zero-byte-object-copy> --copy-source /<source-bucket>/<zero-byte-object>
...
Read timeout on endpoint URL:
"<url>/<destination-bucket>/<zero-byte-object-copy>"
$

  • CopyObject succeeds with non-zero-byte source object
  • Issuing s3 cp command to copy a zero-byte file to a different name gets Read timed out error:

DEBUG - retry needed, retryable exception caught: HTTPSConnectionPool(host='hostname', port=xxx): Read timed out. (read timeout=xx)

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.