# Oracle cloud S3 repository - No Snapshots after restart

**URL:** <https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 7, 2020, 2:47pm UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363 "2020-02-07T14:47:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alrik\_Geselle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alrik_geselle/32/45312_2.png) [@Alrik\_Geselle](https://discuss.elastic.co/u/Alrik_Geselle)\
**Post date:** [February 7, 2020, 2:47pm UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/1 "2020-02-07T14:47:04Z")

</div>

Hi there,

I have a problem with the snapshot API when it comes to use it with a S3 repository on oracle cloud.

My elasticsearch 7.5.2 instance is running inside a docker container.

`GET /_snapshot/s3_repository/`

returns my repository settings

```
{
  "s3_repository" : {
    "type" : "s3",
    "settings" : {
      "bucket" : "xxxxxxxxxx",
      "base_path" : "xxxxxxxxxxx",
      "endpoint" : "xxxxxxxxxx.compat.objectstorage.eu-frankfurt-1.oraclecloud.com",
      "protocol" : "https",
      "region" : "eu-frankfurt-1"
    }
  }
}

```

After that I start the backup via

```
PUT /_snapshot/s3_repository/snapshot-test
{
  "indices": "test"
}

```

Now I can see my saved snapshots

`GET /_snapshot/s3_repository/_all`

which returns

```
{
  "snapshots" : [
    {
      "snapshot" : "snapshot-test",
      "uuid" : "dKowu34RSDmSMoPRJPgH7g",
      "version_id" : 7050299,
      "version" : "7.5.2",
      "indices" : [
        "test"
      ],
      "include_global_state" : true,
      "state" : "SUCCESS",
      "start_time" : "2020-02-07T14:35:44.556Z",
      "start_time_in_millis" : 1581086144556,
      "end_time" : "2020-02-07T14:35:45.156Z",
      "end_time_in_millis" : 1581086145156,
      "duration_in_millis" : 600,
      "failures" : [],
      "shards" : {
        "total" : 1,
        "failed" : 0,
        "successful" : 1
      }
    }
  ]
}

```

The next step shows the problem. After restarting the elasticsearch docker container I still see my repo but the saved snapshots list is empty

`GET /_snapshot/s3_repository/_all`

```
{
  "snapshots" : []
}

```

What's the problem here? Did I miss something?

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [February 7, 2020, 10:37pm UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/2 "2020-02-07T22:37:31Z")

</div>

Hi @Alrik_Geselle,

what's the physical contents of the path of your repository in the bucket? Is there any `snap-` or `meta-` prefix blobs in there?

---

<div class="post-metadata">

**Author:** ![Alrik\_Geselle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alrik_geselle/32/45312_2.png) [@Alrik\_Geselle](https://discuss.elastic.co/u/Alrik_Geselle)\
**Post date:** [February 10, 2020, 6:54am UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/3 "2020-02-10T06:54:50Z")

</div>

Hi @Armin_Braun,

yes there meta and snapshot files. But there is no subfolder named "s3\_repository". All files are directly in the storage path. I think this will be problematic when I want to use my oracle S3 storage for a second repository.

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [February 10, 2020, 7:12am UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/4 "2020-02-10T07:12:18Z")

</div>

If you want your data to go to the subfolder "s3\_repository" you'll have to set

```
  "base_path" : "s3_repository",

```

in your repository setting when you create the repo. If you don't set anything for the base path, then the root of the bucket will be used. Could it be that you used a tricky base path like simply `/` or so that the Oracle S3 implementation may not properly support? (that's my best guess so far).  
Ideally, I'd try just using `"s3_repository"` as the base path without any slashes or so and see if that solves things to start with and then try and narrow down the issue if that helped.

---

<div class="post-metadata">

**Author:** ![Alrik\_Geselle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alrik_geselle/32/45312_2.png) [@Alrik\_Geselle](https://discuss.elastic.co/u/Alrik_Geselle)\
**Post date:** [February 10, 2020, 2:56pm UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/5 "2020-02-10T14:56:15Z")

</div>

Thank you for your answer.

As you can see, I already set a base path to my repo settings but still the root will be used.  
I tested it again with an Amazon S3 repo and it works. So I think it must be an Oracle S3 problem. Is there anything you guys can do to locate/fix this problem?

---

<div class="post-metadata">

**Author:** ![Armin\_Braun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armin_braun/32/20092_2.png) [@Armin\_Braun](https://discuss.elastic.co/u/Armin_Braun)\
**Post date:** [February 10, 2020, 3:11pm UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/6 "2020-02-10T15:11:16Z")

</div>

> [@Alrik\_Geselle](#):
>
> As you can see, I already set a base path to my repo settings but still the root will be used.

This is really strange. The way I've seen this happen so far with non-AWS S3 is when using a root path that contained `/` or some other special characters that led to the URL not being properly decoded.

> Is there anything you guys can do to locate/fix this problem?

Not really I'm afraid. This seems to be something to contact Oracle cloud support about to me. There simply seems to be some non-S3-compliant behaviour here on their end that is breaking the S3 SDK. That's not something we can work around I'm afraid.

---

<div class="post-metadata">

**Author:** ![Alrik\_Geselle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alrik_geselle/32/45312_2.png) [@Alrik\_Geselle](https://discuss.elastic.co/u/Alrik_Geselle)\
**Post date:** [February 11, 2020, 9:34am UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/7 "2020-02-11T09:34:11Z")

</div>

Ok thank you very much. We will contact our Oracle Cloud service partner.

---

<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:** [March 10, 2020, 9:34am UTC](https://discuss.elastic.co/t/oracle-cloud-s3-repository-no-snapshots-after-restart/218363/8 "2020-03-10T09:34:13Z")

</div>

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