# How do I tell an S3 backend the exact region to use?

**URL:** https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875
**Category:** Support
**Created:** [January 15, 2020, 8:49am UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875 "2020-01-15T08:49:02Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![anon8404338](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@anon8404338](https://forum.duplicati.com/u/anon8404338)
#### Post date: [January 15, 2020, 8:49am UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/1 "2020-01-15T08:49:02Z")

</div>

I am using my own S3-compatible Minio backend and I had to set its region for another reason. But now Duplicati balks at the changed region. I’d like to set the exact region string for Duplicati to use. How can I do that?

---

<div class="post-metadata">

### Author: ![anon8404338](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@anon8404338](https://forum.duplicati.com/u/anon8404338)
#### Post date: [January 16, 2020, 10:42pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/2 "2020-01-16T22:42:00Z")

</div>

Nobody? I’m running into problems because a MinIO backend (S3-compatible) is used by two frontends, one of which is Duplicati. The other demands a region setting on MinIO, but as soon as I set the region, the Duplicate backup fails.

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [January 17, 2020, 1:54pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/3 "2020-01-17T13:54:31Z")

</div>

Does the below help? I don’t use S3… Yes, it says “create”, but it’s the only region I see.

![image](https://forum.duplicati.com/uploads/default/original/2X/d/d31ef512484e6d2382c867cec65d21340798e873.png)

![image](https://forum.duplicati.com/uploads/default/original/2X/a/ad10b632add82c0fbce3f4acd6202d14b012624e.png)

As a side note, the current Beta S3 client is Amazon’s, but MinIO’s client is in next Beta.

View from [Release: 2.0.5.0 (experimental) 2020-01-03](https://forum.duplicati.com/t/release-2-0-5-0-experimental-2020-01-03/8781)  
 ![image](https://forum.duplicati.com/uploads/default/original/2X/c/cf33321013383f16c25df7a92c077f882d3b39d9.png)

---

<div class="post-metadata">

### Author: ![anon8404338](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@anon8404338](https://forum.duplicati.com/u/anon8404338)
#### Post date: [January 17, 2020, 2:51pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/4 "2020-01-17T14:51:52Z")

</div>

The problem I’m having is that my MinIO had not configured a region at all and that worked (only Duplicati was using it). But the other software using the same MinIO storage apparently checks for and requires a non-empty bucket region when it checks. So, I did set it to a value in MinIO (my home town). Then the other software worked, but it made Duplicati fail.

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [January 17, 2020, 3:06pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/5 "2020-01-17T15:06:50Z")

</div>

> [@anon8404338](#):
>
> Then the other software worked, but it made Duplicati fail.

Do the Duplicati region settings I showed help or not? I was hoping to hear specific results from a test, which might actually be two tests if you try the MinIO client to see if it works any better than Amazon’s.

Ideally result would be a success because my S3 expertise ends with your typing the desired region…

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [January 18, 2020, 12:05pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/6 "2020-01-18T12:05:37Z")

</div>

> [@anon8404338](#):
>
> The problem I’m having is that my MinIO had not configured a region at all and that worked (only Duplicati was using it). But the other software using the same MinIO storage apparently checks for and requires a non-empty bucket region when it checks. So, I did set it to a value in MinIO (my home town). Then the other software worked, but it made Duplicati fail.

Not sure what the region is doing with MinIO. For AWS hosted S3 buckets, the region parameter is only applied when creating the bucket, and ignored otherwise (it is also used in Duplicati to choose the host to send data to, for efficiency reasons). For AWS buckets, you can just create the bucket using the AWS console, and then ignore the region setting afterwards.

The way I understand MinIO, you are hosting it yourself, so there really is just one region (the machine running MinIO). It would help if you post the exact error message, but generally, I think you should not set a region for MinIO targets.

---

<div class="post-metadata">

### Author: ![anon8404338](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@anon8404338](https://forum.duplicati.com/u/anon8404338)
#### Post date: [January 18, 2020, 1:40pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/7 "2020-01-18T13:40:56Z")

</div>

> it is also used in Duplicati to choose the host to send data to, for efficiency reasons

That could be it. I need URL-style and not host-style addressing. If Duplicati changes the host when I enter a region, the DNS will not resolve.

I will create a region minio and see what error message I get.

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [January 18, 2020, 3:50pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/8 "2020-01-18T15:50:43Z")

</div>

Another idea from the forum. You can look at the original issue and symptoms to see if it matches yours.

> [@Error Failed to connect: The authorization header is malformed; the region is wrong; expecting 'us-east-1'](https://forum.duplicati.com/t/error-failed-to-connect-the-authorization-header-is-malformed-the-region-is-wrong-expecting-us-east-1/7305/2):
>
> For the record, needed to set s3-ext-authenticationregion to match the same as “region” in the default attributes.

---

<div class="post-metadata">

### Author: ![anon8404338](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@anon8404338](https://forum.duplicati.com/u/anon8404338)
#### Post date: [January 18, 2020, 7:54pm UTC](https://forum.duplicati.com/t/how-do-i-tell-an-s3-backend-the-exact-region-to-use/8875/9 "2020-01-18T19:54:48Z")

</div>

That worked. I should have tried that in the first place.
