Symptoms
-
When setting up the Amazon S3 Backup extension with a new AWS account in Plesk at Domains > example.com > Backup Manager > Remote Storage Settings > Amazon S3 Backup, the operation fails with the following error message:
PLESK_ERROR: BucketAlreadyOwnedByYou (client): Your previous request to create the named bucket succeeded and you already own it.
-
The Amazon S3 Bucket was created in the non-US region.
-
The new AWS account was created and granted proper permissions as in this documentation page.
Cause
This is a Amazon S3 Backup extension bug with ID EXTPLESK-1538, which will be fixed in future extension updates.
Resolution
As a workaround, clean up Amazon S3 credentials cache from Plesk (psa) database
-
Connect to the Plesk server via SSH.
-
Create a backup of the Plesk database:
# plesk db dump psa > psa.sql
- Replace example.com with your subscription name and run the command to get the subscription ID:
# plesk db “SELECT id,displayName FROM domains WHERE displayName = ‘example.com‘”
+—-+————-+
| id | displayName |
+—-+————-+
| 15 | example.com |
+—-+————-+ -
Delete the Amazon S3 credentials cache for the subscription using the ID from the above step:
# plesk db “DELETE FROM dom_param where param = ‘ext-s3-backup-credentials’ and dom_id = 15“
-
Set up the Amazon S3 credentials at Domains > example.com > Backup Manager > Remote Storage Settings > Amazon S3 Backup.