The eu-central-1 location constraint is incompatible for the region specific endpoint this request was sent to

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

Similar issue to The EU location constraint is incompatible for the region specific endpoint this request was sent to

When I try to copy or ls to my s3 bucket in eu-south-2 I get:

 rclone ls test-0-bucket:dtest 
2024/04/10 18:32:08 Failed to ls: IllegalLocationConstraintException: The eu-central-1 location constraint is incompatible for the region specific endpoint this request was sent to.

Run the command 'rclone version' and share the full output of the command.

- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 6.1.0-rc2+ (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

AWS S3

rclone ls test-0-bucket:dtest 

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[test-0-bucket]
type = s3
provider = AWS
env_auth = false
access_key_id = XXX
secret_access_key = XXX
region = eu-south-2
acl = private
server_side_encryption = aws:kms
sse_kms_key_id = XXX
storage_class = STANDARD
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/04/10 18:36:59 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "ls" "test-0-bucket:dtest" "-vv"]
2024/04/10 18:36:59 DEBUG : Creating backend with remote "test-0-bucket:dtest"
2024/04/10 18:36:59 DEBUG : Using config file from "/home/k/.config/rclone/rclone.conf"
2024/04/10 18:36:59 DEBUG : 4 go routines active
2024/04/10 18:36:59 Failed to ls: IllegalLocationConstraintException: The eu-central-1 location constraint is incompatible for the region specific endpoint this request was sent to.
	status code: 400, request id: GD67SPNXW9P12VEC, host id: AiR7XI5PtcHDJAv4++tGlyZLM+/Kmwuy4lfhvxe9m9uAh2J5k8Q+GOPe1PGOy6O0C5JQokHBmjp8SgDfLE3pZNZb9eBtDzJE

With --dump bodies I see:

2024/04/10 18:36:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/04/10 18:36:54 DEBUG : HTTP REQUEST (req 0xc000a62d80)
2024/04/10 18:36:54 DEBUG : GET /?delimiter=&encoding-type=url&list-type=2&max-keys=1000&prefix= HTTP/1.1
Host: dtest.s3.eu-south-2.amazonaws.com
User-Agent: rclone/v1.66.0
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20240410T163654Z
Accept-Encoding: gzip

2024/04/10 18:36:54 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/04/10 18:36:54 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/04/10 18:36:54 DEBUG : HTTP RESPONSE (req 0xc000a62d80)
2024/04/10 18:36:54 DEBUG : HTTP/1.1 400 Bad Request
Connection: close
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Wed, 10 Apr 2024 16:36:54 GMT
Server: AmazonS3
X-Amz-Bucket-Region: eu-central-1

aws s3 ls works fine. I have double checked that my bucket is in eu-south-2.

welcome to the forum,

can you post something to confirm that?

seems to work for me, maybe i am not replicating your setup correctly?

rclone config redacted aws_eu-south-2:
[aws_eu-south-2]
type = s3
provider = AWS
access_key_id = XXX
secret_access_key = XXX
region = eu-south-2
storage_class = STANDARD
rclone ls aws_eu-south-2:zork-eu-south-2 --dump=headers -vv 
2024/04/10 13:07:32 DEBUG : rclone: Version "v1.66.0" starting with parameters ["c:\\data\\rclone\\rclone.exe" "ls" "aws_eu-south-2:zork-eu-south-2" "--dump=headers" "-vv"]
2024/04/10 13:07:32 DEBUG : Creating backend with remote "aws_eu-south-2:zork-eu-south-2"
2024/04/10 13:07:32 DEBUG : Using config file from "c:\\data\\rclone\\rclone.conf"
2024/04/10 13:07:32 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2024/04/10 13:07:32 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2024/04/10 13:07:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/04/10 13:07:32 DEBUG : HTTP REQUEST (req 0xc0007777a0)
2024/04/10 13:07:32 DEBUG : GET /?delimiter=&encoding-type=url&list-type=2&max-keys=1000&prefix= HTTP/1.1
Host: zork-eu-south-2.s3.eu-south-2.amazonaws.com
User-Agent: rclone/v1.66.0
Authorization: XXXX
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20240410T170732Z
Accept-Encoding: gzip

2024/04/10 13:07:32 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/04/10 13:07:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/04/10 13:07:33 DEBUG : HTTP RESPONSE (req 0xc0007777a0)
2024/04/10 13:07:33 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Wed, 10 Apr 2024 17:07:34 GMT
Server: AmazonS3
X-Amz-Bucket-Region: eu-south-2
X-Amz-Id-2: xI65epuUlss49oM13lVakBWiJKF34ksbWLgsNYmJyYHOlwUJ3KjmvKj0s77r80skRgSIL1j6hZ/hZQEMMKBZf3oouHIVsPi6
X-Amz-Request-Id: 48XBWT8HM6H7YZKK

2024/04/10 13:07:33 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
        1 file.ext
2024/04/10 13:07:33 DEBUG : 4 go routines active

Forgive me, I had the wrong impression that the rclone config name was the bucket name as well. But I see I have to specify the bucket name in the command.

 rclone ls test-0-bucket:mybucket/dtest 

The location errors confused me, specially because in the config menu there's no settings for eu-south-2.

Thank you for your help.

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