0032-00000008

Updated at:

Problem description

The destination bucket specified in the XML body of the PutBucketLogging request does not exist.

Causes

In the PutBucketLogging request, the destination bucket specified by the TargetBucket parameter in the LoggingEnabled child node of the BucketLoggingStatus node does not exist.

Examples

For example, you initiate the following request:

PUT /?logging HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Authorization: SignatureValue 
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
    <LoggingEnabled>
    		<TargetBucket>Bucket-Not-Exist</TargetBucket>
        <TargetPrefix>TargetPrefix</TargetPrefix>
    </LoggingEnabled>
</BucketLoggingStatus>

The error is returned for the sample request if the Bucket-Not-Exist bucket specified by the TargetBucket parameter in the LoggingEnabled node does not exist.

Solutions

Make sure that you specify a valid value for the TargetBucket parameter.

PUT /?logging HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Authorization: SignatureValue 
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
    <LoggingEnabled>
        <TargetBucket>TargetBucket</TargetBucket>
        <TargetPrefix>TargetPrefix</TargetPrefix>
    </LoggingEnabled>
</BucketLoggingStatus>

References