# Snapshot on s3 compatible cloud object storage

**URL:** <https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 7, 2025, 12:27am UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201 "2025-02-07T00:27:10Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 7, 2025, 12:27am UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/1 "2025-02-07T00:27:10Z")

</div>

```auto
receiving error : 
{
    "error": {
        "root_cause": [
            {
                "type": "repository_verification_exception",
                "reason": "[es_repo] path is not accessible on master node"
            }
        ],
        "type": "repository_verification_exception",
        "reason": "[es_repo] path is not accessible on master node",
        "caused_by": {
            "type": "i_o_exception",
            "reason": "Unable to upload object [tests-jA7yKHu-Szm4iSAFznKUCQ/master.dat] using a single upload",
            "caused_by": {
                "type": "sdk_client_exception",
                "reason": "Unable to execute HTTP request: bucket.mydomain.test.com",
                "caused_by": {
                    "type": "unknown_host_exception",
                    "reason": "bucket.mydomain.test.com"
                }
            }
        }
    },
    "status": 500
}

we added access and secrets key to key store using volume mount and I can see value using show

bin/elasticsearch-keystore show s3.client.default.secret_key
bin/elasticsearch-keystore show s3.client.default.access_key

below is the command use to create repository

**actual values are replaced

curl -u "username:password" -X PUT "https://elasticsearch-test-es-http:9200/_snapshot/es_repo" -d '{
      "type": "s3",
      "settings": {
        "bucket": "bucket",
        "region": "us-east-1",
        "endpoint": "mydomain.test.com",
        "protocol": "https"
      }
    }' -H 'Content-Type: application/json' -k

can you please advise what else we need to configure
we are using cloud object store for bucket.
Elasticsearch version: 8.17

```

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 7, 2025, 1:35am UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/2 "2025-02-07T01:35:54Z")

</div>

> [@ragc007](#):
>
> ```auto
> "caused_by": {
> "type": "unknown_host_exception",
> "reason": "bucket.mydomain.test.com"
> }
> 
> ```

Are your ES hosts able to resolve the hostname [bucket.mydomain.test.com](http://bucket.mydomain.test.com) (well, your equivalent) to an IP address ?

---

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 7, 2025, 3:17pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/3 "2025-02-07T15:17:19Z")

</div>

> [@ragc007](#):
>
> ```auto
> {
> "error": {
> "root_cause": [
> {
> "type": "repository_verification_exception",
> "reason": "[es_repo] path is not accessible on master node"
> }
> ],
> "type": "repository_verification_exception",
> "reason": "[es_repo] path is not accessible on master node",
> "caused_by": {
> "type": "i_o_exception",
> "reason": "Unable to upload object [tests-jA7yKHu-Szm4iSAFznKUCQ/master.dat] using a single upload",
> "caused_by": {
> "type": "sdk_client_exception",
> "reason": "Unable to execute HTTP request: bucket.mydomain.test.com",
> "caused_by": {
> "type": "unknown_host_exception",
> "reason": "bucket.mydomain.test.com"
> }
> }
> }
> },
> "status": 500
> }
> 
> ```

Host domain is reachable from ES host but when it tries to connect to bucketname.endpoint, it fails to connect. why ES is looking for bucket.endpoint?

can you provide me steps to check the repository configuration on elasticsearch, are the step I provided earlier are correct?

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 7, 2025, 3:45pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/4 "2025-02-07T15:45:15Z")

</div>

Well, I am wondering what "s3 _compatible_ cloud object storage" means?

You are not using Amazon's S3 ?

There's an Elastic video on how to use S3 at:

[![](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bb98b8b90ba128e3e10e5c06dfb13401cb5caa61.jpeg "Connect a custom AWS S3 snapshot repository | Elastic Cloud | Support Troubleshooting") ](https://www.youtube.com/watch?v=ACqfyzWf-xs)

as well as steps within the official elasticsearch documentation.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 7, 2025, 3:48pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/5 "2025-02-07T15:48:41Z")

</div>

How did you configured the snapshot repository?

Please share the configurations.

Also, what is the the s3 compatible service you are using? MinIO?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 7, 2025, 5:45pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/6 "2025-02-07T17:45:58Z")

</div>

Hi @ragc007 Welcome to the community

What exact cloud storage are you using?

Don't forget to run the repository analysis API to check compatiabiltiy... if it does not pass it will not work. We have a very strict reliance on S3 Compatibility... many "S3 compatible" options are just "sort a" S3 compliant

> **[Repository analysis API | Elasticsearch Guide \[8.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/repo-analysis-api.html)**

---

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 10, 2025, 6:58pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/7 "2025-02-10T18:58:07Z")

</div>

we are using openstack cloud object storage compatible with s3

---

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 10, 2025, 7:01pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/8 "2025-02-10T19:01:25Z")

</div>

we are not able to create repository itself so can't analyze it.

---

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 10, 2025, 7:06pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/9 "2025-02-10T19:06:58Z")

</div>

we are not able to configure the repository, we are getting error as mentioned in issue description. steps are mention how we are trying to create repository adding access and secret key to key store and using curl command to create repo

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 10, 2025, 7:22pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/10 "2025-02-10T19:22:23Z")

</div>

Just to confirm, you already created the bucket in your S3 compatible tool, right?

---

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 10, 2025, 9:34pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/11 "2025-02-10T21:34:05Z")

</div>

yes we already created bucket.

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 11, 2025, 1:46am UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/12 "2025-02-11T01:46:25Z")

</div>

> [@S3 Snapshot on S3 compatible servers](https://discuss.elastic.co/t/s3-snapshot-on-s3-compatible-servers/217750):
>
> Hi, I've been trying to setup the snapshot plugin in order to be able to backup my cluster, but I'm running into some issues with setting up the repository in ElasticSearch 7.5. I'm using OVH OpenStack Swift with S3 compatibility enabled (works perfectly fine for other things like gitlab). I've seen the direct Swift integration for ElasticSearch snapshots but the plugin looks to not be maintained anymore so I would rather go with S3. So i've setup the access\_key and secret\_key in the keystor…

seems a related thread/topic.

I note in that thread path\_style\_access was set to true there, and its default is false according to the docs, so maybe try adding that?

---

<div class="post-metadata">

**Author:** ![ragc007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ragc007/32/137275_2.png) [@ragc007](https://discuss.elastic.co/u/ragc007)\
**Post date:** [February 11, 2025, 10:21pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/13 "2025-02-11T22:21:29Z")

</div>

This worked, thank you,

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [February 11, 2025, 11:01pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-compatible-cloud-object-storage/374201/14 "2025-02-11T23:01:13Z")

</div>

Lucky guess.

Good luck with your project.
