# Unallocated shards when restoring index from snapshot

**URL:** <https://discuss.elastic.co/t/unallocated-shards-when-restoring-index-from-snapshot/245892>\
**Category:** Elasticsearch\
**Created:** [August 21, 2020, 9:42am UTC](https://discuss.elastic.co/t/unallocated-shards-when-restoring-index-from-snapshot/245892 "2020-08-21T09:42:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vchalmel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vchalmel/32/11681_2.png) [@vchalmel](https://discuss.elastic.co/u/vchalmel)\
**Post date:** [August 21, 2020, 9:42am UTC](https://discuss.elastic.co/t/unallocated-shards-when-restoring-index-from-snapshot/245892/1 "2020-08-21T09:42:03Z")

</div>

I'm trying to create an index by restoring a custom S3 repo snapshot. (on an elastic cloud deployment) but it doesn't work, The restored index is created but on an unassigned shard.

How to either prevent or fix this ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 25, 2020, 4:46am UTC](https://discuss.elastic.co/t/unallocated-shards-when-restoring-index-from-snapshot/245892/2 "2020-08-25T04:46:50Z")

</div>

Is there any error? Anything in the logs? Are you restoring to the same version of Elasticsearch (or newer) as the cluster the snapshot was taken from?

---

<div class="post-metadata">

**Author:** ![vchalmel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vchalmel/32/11681_2.png) [@vchalmel](https://discuss.elastic.co/u/vchalmel)\
**Post date:** [August 28, 2020, 1:02pm UTC](https://discuss.elastic.co/t/unallocated-shards-when-restoring-index-from-snapshot/245892/3 "2020-08-28T13:02:02Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> Is there any error? Anything in the logs? Are you restoring to the same version of Elasticsearch (or newer) as the cluster the snapshot was taken from?

Hello, I didn't noticed anything useful in the logs. I solved the issue by creating an index pattern identical to the source index settings before restoring.

My hypothesis is that the use of a custom stopwords file in the analysis settings was responsible.

---

<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:** [September 25, 2020, 1:02pm UTC](https://discuss.elastic.co/t/unallocated-shards-when-restoring-index-from-snapshot/245892/4 "2020-09-25T13:02:08Z")

</div>

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