# Is its possible to restore a FAILED snapshot (only 2 shards failed) on elasticsearch@5.0.0?

**URL:** <https://discuss.elastic.co/t/is-its-possible-to-restore-a-failed-snapshot-only-2-shards-failed-on-elasticsearch-5-0-0/122539>\
**Category:** Elasticsearch\
**Created:** [March 5, 2018, 2:52pm UTC](https://discuss.elastic.co/t/is-its-possible-to-restore-a-failed-snapshot-only-2-shards-failed-on-elasticsearch-5-0-0/122539 "2018-03-05T14:52:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nuno\_Rodrigues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuno_rodrigues/32/28435_2.png) [@Nuno\_Rodrigues](https://discuss.elastic.co/u/Nuno_Rodrigues)\
**Post date:** [March 5, 2018, 2:52pm UTC](https://discuss.elastic.co/t/is-its-possible-to-restore-a-failed-snapshot-only-2-shards-failed-on-elasticsearch-5-0-0/122539/1 "2018-03-05T14:52:06Z")

</div>

I have a snapshot that failed due to "Indices don't have primary shards [idx-2018-02, idx-2017-12]".

According to the docs i should be able to restore the successfully snapshotted shards by setting partial to true.  
But if i do:

curl -XPOST "server:9200/\_snapshot/backups/snp-2018-03-05/\_restore?pretty" -d '  
{  
"include\_global\_state": true,  
"partial": true  
}  
'

I get:

unsupported snapshot state [FAILED]

---

<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 2, 2018, 2:52pm UTC](https://discuss.elastic.co/t/is-its-possible-to-restore-a-failed-snapshot-only-2-shards-failed-on-elasticsearch-5-0-0/122539/2 "2018-04-02T14:52:07Z")

</div>

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