Error for aws s3 backups - incompatible

Hello folks!
i have some problem trying to setup a scheduled back to “non-standard” aws 3 region (eu-south-1)
i think that aws s3 api required explicit region option --region eu-south-1 but i dont see any field for adding it on the s3 backup destination form.

the error message i receive in virtualmin is:
“eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to”

if i try another bucket created on eu-west-3 (which is a “standard” region) no problem at all

SYSTEM INFORMATION
OS type and version Ubunutu 22.04 Aws AMI
Webmin version 2.105
Virtualmin version 7.9.0
Related packages Aws S3 Backups

Theres no region is the form you just need the bucket name as I don’t see it in my backup.

Where are you adding region as I can’t find that?

Ok a quick goggle, sounds like you can only backup to your region, this is not virtualmin issue.

Just did a test and created a new region ap-south-1 (Mumbia) where I am in Australia using ap-southeast-2 (Sydney).
Backup works fine, maybe EU has tighter restriction (they like there rules there)

hi stefan , thanks for the reply but virtualmin is actually on a eu-south-1 instance. and i cant backup on eu-south-1 s3.
but “eu-south-1” is a non-standard enabled region, so the flag “–region” need to be used for back on it.
via the “cli” i can backup without problem, so i think the virtualmin “form” for setting up backups need to support that flag for backing up on “non-standard” regions…

P.S.

The full error is:

An error occurred (IllegalLocationConstraintException) when calling the PutObject operation: The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.

Sorry I have no idea what that means.

lets make it simple… actually virtualmin script for backups with S3 Destination could be manually modified? somebody knows where the script is located?

SOLVED, for those who encounter the same problem, uninstall aws cli (also if installed with pip) and use the official aws cli 2.x version.

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

thanks folks!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.