Error code: TransferAccAlreadyInUse Error message: The transfer acceleration is already used by cross-region replication.
Problem description
This error occurs when you try to disable transfer acceleration on a bucket that is configured as the destination bucket in a cross-region replication rule.
Causes
A PutBucketTransferAcceleration request with <Enabled>false</Enabled> was sent to a bucket that serves as the destination bucket in a cross-region replication configuration. Because that replication configuration requires transfer acceleration to be active on the destination bucket, OSS rejects the request and returns this error.
Examples
The following request triggers this error when sent to a destination bucket in a cross-region replication configuration:
PUT /?transferAcceleration HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: destBucket.oss.aliyuncs.com
Authorization: SignatureValue
<TransferAccelerationConfiguration>
<Enabled>false</Enabled>
</TransferAccelerationConfiguration>OSS returns the following error response, which includes the names of both buckets involved in the replication configuration:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>TransferAccAlreadyInUse</Code>
<Message>The transfer acceleration is already used by cross-region replication.</Message>
<SourceBucket>srcBucket</SourceBucket>
<DestinationBucket>destBucket</DestinationBucket>
<RequestId>5F1E76142A535D373683****</RequestId>
<HostId>oss-cn-hangzhou.aliyuncs.com</HostId>
<EC>0028-00000003</EC>
</Error>The error response fields are described below:
| Field | Description |
|---|---|
Code | The error code: TransferAccAlreadyInUse. |
Message | A human-readable description of the error. |
SourceBucket | The source bucket in the cross-region replication configuration. Use this to identify which replication rule is causing the conflict. |
DestinationBucket | The destination bucket from which you attempted to disable transfer acceleration. |
RequestId | The unique ID of the failed request. Provide this when contacting support. |
HostId | The endpoint that received the request. |
EC | The error code in numeric format: 0028-00000003. |
Solutions
Choose one of the following approaches based on your goal:
Keep the replication rule active: Do not disable transfer acceleration on the destination bucket. Transfer acceleration is required by the cross-region replication configuration and cannot be turned off while the rule exists.
Disable transfer acceleration on the destination bucket: Delete or modify the cross-region replication rule that uses transfer acceleration first, then send the
PutBucketTransferAccelerationrequest to disable transfer acceleration.
Use the SourceBucket and DestinationBucket fields in the error response to identify which replication rule is causing the conflict.