Problem description
The source object specified by the x-oss-copy-source header in the UploadPartCopy request is an Archive object.
Causes
The x-oss-copy-source header in the UploadPartCopy request specifies a source object whose storage class is Archive. The source object is not restored, or real-time access of Archive objects is not enabled for the bucket in which the source object is stored.
Examples
The following example shows a request that triggers this error:
PUT /multipart.data?partNumber=2&uploadId=63C06A5CFF6F4AE4A6BB3AD7F01C**** HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 09 Apr 2019 07:01:56 GMT
Authorization: OSS qn6q**************:77Dv****************
x-oss-copy-source: /oss-example/src-object-archive
In this request, the /oss-example/src-object-archive object is an Archive object that is not restored, and real-time access of Archive objects is not enabled for the bucket.
Solutions
To resolve this issue, use one of the following methods:
-
Restore the object. After the object is restored, the UploadPartCopy request succeeds. For more information, see Restore objects.
-
Enable real-time access of Archive objects for the bucket. After you enable this feature, all Archive objects in the bucket can be read without restoration, and the UploadPartCopy request succeeds. For more information, see Real-time access of Archive objects.