Applicable to:
- Plesk for Linux
Symptoms
-
Adding OVHcloud OpenStack-based S3-compatible storage as a custom S3 storage in Plesk in Tools & Settings > Backup Manager > Remote Storage Settings > Amazon S3 Backup fails:
PLESK_ERROR: Unable to check bucket and directory existence. Make sure you are using correct IAM policy (400 Bad Request (Request-ID: tx2ef843a36acf491fb4b79-005df2411f)).
-
The error message stays the same despite what is set in the field Path - the bucket root or a directory inside the bucket.
-
Key and secret are created correctly according to the corresponding OVH article.
-
Accessing the bucket and working with it using AWS CLI works correctly.
Cause
The region for a custom S3-compatible endpoint is not specified in the file /usr/local/psa/admin/conf/panel.ini
.
Resolution
-
Install the extension Panel.ini Editor (if it is not installed already).
-
Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor.
-
Add the following lines into the end of the file:
CONFIG_TEXT: [ext-s3-backup]
RegionForCustomEndpoint = GRANote: Replace
GRA
with the name of the region of your S3-compatible storage provider. Also, in some cases, region should be specified in lowercase,gra
(clarify this with the storage provider). -
Click Save to save the changes.
Comments
2 comments
Hi, you will need to write the "RegionForCustomEndpoint" in lowercase.
For example:
RegionForCustomEndpoint = gra
Hello @Ruben Colmenarejo!
Thank you for information, I have updated the note under step 4 (as different storage providers may have their regions named differently).
Please sign in to leave a comment.