# I can't get the S3 Snapshot Repository Plugin to work with MinIO

**URL:** <https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668>\
**Category:** Elasticsearch\
**Created:** [March 15, 2020, 11:18pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668 "2020-03-15T23:18:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 15, 2020, 11:18pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/1 "2020-03-15T23:18:31Z")

</div>

```
PUT _snapshot/MinIO
{
  "type": "s3",
  "settings": {
    "client": "minio",
    "bucket": "asozial-private",
    "base_path": "elasticsearch",
    "compress": true
  }
}

```

It causes the following error message:

```
{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_verification_exception",
        "reason" : "[MinIO] path [elasticsearch] is not accessible on master node"
      }
    ],
    "type" : "repository_verification_exception",
    "reason" : "[MinIO] path [elasticsearch] is not accessible on master node",
    "caused_by" : {
      "type" : "i_o_exception",
      "reason" : "Unable to upload object [elasticsearch/tests-xHUOwf1rR_GMvBZaw1WBMw/master.dat] using a single upload",
      "caused_by" : {
        "type" : "amazon_s3_exception",
        "reason" : "The specified bucket does not exist (Service: Amazon S3; Status Code: 404; Error Code: NoSuchBucket; Request ID: 15FC9C765C2B9467; S3 Extended Request ID: 1c9b6e80-14a3-4006-90f6-2a6f93d95ed1)"
      }
    }
  },
  "status" : 500
}

```

The Bucket does indeed exist and shows up in MinIO Browser:  
[Screenshot (Embeding doesn't work...)](https://cdn.discordapp.com/attachments/573528379232354305/688866370741338124/unknown.png)

MinIO is configured as Backblaze B2 Gateway.

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 10:52am UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/2 "2020-03-16T10:52:01Z")

</div>

This is my client configuration:

```
s3.client:
    minio:
	endpoint: "localhost:9000"
        protocol: http
```

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 11:02am UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/3 "2020-03-16T11:02:31Z")

</div>

I got the upload working by changing the client config to this:

```
s3.client:
    minio:
	endpoint: "localhost:9000"
        protocol: http
        path_style_access: true

```

But now it has problems with deleting the test data:

```
{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_verification_exception",
        "reason" : "[MinIO] cannot delete test data at [elasticsearch]"
      }
    ],
    "type" : "repository_verification_exception",
    "reason" : "[MinIO] cannot delete test data at [elasticsearch]",
    "caused_by" : {
      "type" : "i_o_exception",
      "reason" : "Failed to delete blobs [[elasticsearch/tests-QTQgEQg7SWqUb1XLJ_fbjQ/]]",
      "caused_by" : {
        "type" : "multi_object_delete_exception",
        "reason" : "One or more objects could not be deleted (Service: null; Status Code: 200; Error Code: null; Request ID: 15FCC36691B923E1; S3 Extended Request ID: null)"
      }
    }
  },
  "status" : 500
}

```

The files also strangely don't show up in MinIO Browser, even though they do show up in B2.

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 2:00pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/4 "2020-03-16T14:00:01Z")

</div>

Making and restoring snapshots works, apparently.  
The files of the snapshots also do show up, but the test data still doesn't.

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 2:03pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/5 "2020-03-16T14:03:01Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/6/26a8cef05e9f1f978844c2747467dbef50f8af51.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd3dfa112784fe82e6b75ae7d938685fc87589cb.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3b7ff1c0a3ac66bdc3aba03db3eb52379469f462.png)

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 2:05pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/6 "2020-03-16T14:05:01Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/c/acccde8f64cc029af9b2ffd15f274b9d2edc03eb.png)

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 2:08pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/7 "2020-03-16T14:08:31Z")

</div>

There are also empty hidden (overwritten) files in the test data:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79bf2a67769144b1e9056c8e0682ad605a2c93bd.png)

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [March 16, 2020, 4:10pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/8 "2020-03-16T16:10:01Z")

</div>

Apparently the files with

> (hidden)

next to their name are the newer versions.  
I thought it was the other way around.  
That means the test data is successfully deleted, but for some reason Elasticsearch thinks that it failed.  
When deleting the snapshot that I had made earlier it also said that it failed, but it didn't.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 13, 2020, 4:10pm UTC](https://discuss.elastic.co/t/i-cant-get-the-s3-snapshot-repository-plugin-to-work-with-minio/223668/9 "2020-04-13T16:10:04Z")

</div>

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