# ElasticSearch snapshots are not visisble

**URL:** <https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [October 17, 2022, 3:05pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808 "2022-10-17T15:05:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 17, 2022, 3:05pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/1 "2022-10-17T15:05:31Z")

</div>

Hi,

I have Elasticsearch cluster running and s3 bucket that contains snapshot files to this cluster. However, when I first listed \_snapshot/\_all no repository, and/or snapshots were found. I added the repository using the PUT \_snapshot/\_my\_repo command that points to corresponding s3 bucket. Listing the snapshots afterwards is not showing any. Is ther any way to add snapshot data into repository? WHat is overall structure of snapshot dedicated repository?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 17, 2022, 11:42pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/2 "2022-10-17T23:42:47Z")

</div>

It'd be useful if you shared your snapshot config and the output of listing the snapshots.

---

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 18, 2022, 5:07am UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/3 "2022-10-18T05:07:23Z")

</div>

Hi,

Thank you for your reply.  
The output of the snapshot listing is just the name of the repository and an empty list .  
How can I find the snapshot config file, I have a bunch of files on s3, which one of them is config?  
I am asking all these questions because I do not know how those snapshots have been taken.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 18, 2022, 5:23am UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/4 "2022-10-18T05:23:34Z")

</div>

Let's start with the output from `GET _snapshot` please.

---

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 18, 2022, 5:39am UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/5 "2022-10-18T05:39:00Z")

</div>

Hi,

Here is what I get after calling GET xxxx:9200/\_snapshot

```auto
{
   "my_s3_repository":{
      "type":"s3",
      "settings":{
         "bucket":"elastic-snapshots"
      }
   },
   "rep_1":{
      "type":"s3",
      "settings":{
         "bucket":"elastic-snapshots",
         "base_path":"AOI-XML/indices/D_-FOSjzSLmck9ET4n7-Vg/"
      }
   }
}

```

Both of those repositories were created after the snapshots were taken.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 18, 2022, 9:15am UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/6 "2022-10-18T09:15:22Z")

</div>

Then it'd be good if you shared the API call you used to add the other repo you are referring to so we can check it.

---

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 18, 2022, 9:29am UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/7 "2022-10-18T09:29:53Z")

</div>

```auto
curl -X PUT "10.116.37.xxx:9200/_snapshot/rep_1?pretty" -H 'Content-Type: application/json' -d'
{
  "type": "s3",
  "settings": {
    "bucket": "elastic-snapshots"
  }
}

```

Just to make sure we are talking about the same thing. I just joined the team, the cluster was managed by another person. The cluster crushed and I am trying to recover it. ES service is back but Kibana is missing. I am trying to use existing snapshots in s3 bucket.

Initially there were no visible repositories when calling \_snapshot API so I added one that could correspond to the dedicated s3 bucket.

Are the existing snapshots are appearing into newly registered ES repository automatically? If so how ES finds the snapshots?

I added verify call here. It looks like everything is right there:

```auto

 curl -X POST "http://10.116.37.xxx:9200/_snapshot/rep_1/_verify?pretty"
{
  "nodes" : {
    "cx52o2FQRnmCJ4ReU8xCUQ" : {
      "name" : "node-ELK3"
    },
    "2qfDaKt9Rgei_3hvscmIrA" : {
      "name" : "datanode-2"
    },
    "nQtgMGm8RjGJkrYmOH9lLw" : {
      "name" : "datanode-1"
    },
    "b4UtklaXQmuycSgwlikE7Q" : {
      "name" : "nodel-ELK4"
    },
    "AlnFm0gKRtit-rYm2jFfFA" : {
      "name" : "node-ELK2"
    }
  }
}

```

I am wondering how do I correctly point to repository, is index.latest should be on the root?

---

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [October 18, 2022, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/8 "2022-10-18T14:12:39Z")

</div>

The issue was the path to snapshot root, index.late file should be on the root

---

<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:** [November 15, 2022, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-are-not-visisble/316808/9 "2022-11-15T14:12:57Z")

</div>

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