# Issue while restoring elasticsearch data

**URL:** <https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [March 1, 2021, 10:37am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780 "2021-03-01T10:37:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 1, 2021, 10:37am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/1 "2021-03-01T10:37:14Z")

</div>

Hi Everyone,

I am having issue while restoring the ES snapshot. I am facing snapshot restore exception error. But I have my snapshots while I do the backup. Not able to find out why it is happening. I am using ES 6.8.  
kindly suggest me something how to get out from this

---

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [March 1, 2021, 1:58pm UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/2 "2021-03-01T13:58:36Z")

</div>

Check if index you are restoring already exists.  
If it exists , it will throw an error.'

---

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 1, 2021, 2:14pm UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/3 "2021-03-01T14:14:48Z")

</div>

Actually, I am testing backup and restore for elastic search for our application in an already existing cluster in which backup data are already there. Shall I delete the backup folder before restoring??

---

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 1, 2021, 2:21pm UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/4 "2021-03-01T14:21:22Z")

</div>

In the indices section , I was using name of all indices. Now, I changed it to "\*".So the earlier error of "snapshot restore exception" is gone but a new error is showing up now. Below is the error

"error":{"root\_cause":[{"type":"repository\_missing\_exception"

---

<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:** [March 2, 2021, 2:16am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/5 "2021-03-02T02:16:17Z")

</div>

Welcome to our community! 😃

Can you please post the entire error you are seeing.

---

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 2, 2021, 4:00am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/7 "2021-03-02T04:00:14Z")

</div>

"error":{"root\_cause":[{"type":"snapshot\_restore\_exception","reason":"[es\_gcs\_repository:] snapshot does not exist"}],"type":"snapshot\_restore\_exception","reason":"[es\_gcs\_repository:] snapshot does not exist"},"status":500}

---

<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:** [March 2, 2021, 4:03am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/8 "2021-03-02T04:03:03Z")

</div>

Ok, so what repos do you have setup?

---

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 2, 2021, 4:07am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/9 "2021-03-02T04:07:01Z")

</div>

I have setup a gcs repository named as" es\_gcs\_repository" for keeping the snapshot of elastic search data.

---

<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:** [March 2, 2021, 4:08am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/10 "2021-03-02T04:08:11Z")

</div>

What's `GET /_snapshot/_all` show?

---

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 2, 2021, 4:12am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/11 "2021-03-02T04:12:08Z")

</div>

its giving below results:

es\_gcs\_repository": {  
"type": "gcs",  
"settings": {  
"bucket name:   
client: \< \>  
"base\_path: \< path where snapshot are getting stored\>

---

<div class="post-metadata">

**Author:** ![tiwariak1992](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tiwariak1992](https://discuss.elastic.co/u/tiwariak1992)\
**Post date:** [March 2, 2021, 4:32am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/12 "2021-03-02T04:32:29Z")

</div>

I have one more doubt here. When, I am backing up the data for indices, I can see that data is being backed up there is in the storage bucket but I can not see the name of indices inside the storage bucket where all the snapshots are stored. So, is it the right way that ES backs up the data or is there anything wrong from my end??

---

<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 30, 2021, 4:33am UTC](https://discuss.elastic.co/t/issue-while-restoring-elasticsearch-data/265780/13 "2021-03-30T04:33:14Z")

</div>

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