# \[illegal\_state\_exception\] alias \[x\] has more than one write index \[y,z\]

**URL:** <https://discuss.elastic.co/t/illegal-state-exception-alias-x-has-more-than-one-write-index-y-z/323843>\
**Category:** Kibana\
**Tags:** snapshot-and-restore\
**Created:** [January 24, 2023, 2:34pm UTC](https://discuss.elastic.co/t/illegal-state-exception-alias-x-has-more-than-one-write-index-y-z/323843 "2023-01-24T14:34:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazaro\_mobicare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lazaro_mobicare/32/116336_2.png) [@lazaro\_mobicare](https://discuss.elastic.co/u/lazaro_mobicare)\
**Post date:** [January 24, 2023, 2:34pm UTC](https://discuss.elastic.co/t/illegal-state-exception-alias-x-has-more-than-one-write-index-y-z/323843/1 "2023-01-24T14:34:38Z")

</div>

Hi! I'm having the following problem when trying to restore an index snapshot: `[illegal_state_exception] alias [x] has more than one write index [y,z]`. I followed the following [resolution](https://www.elastic.co/pt/blog/troubleshooting-elasticsearch-ilm-common-issues-and-fixes) but I came across another problem: the 'y' index appears with the 'is\_write\_index' parameter set to true, the 'z' index does not appear at all. Using this methods 'GET \_cat/aliases/z' 'GET x/\_alias'.

Elasticsearch version: 7.9.3

---

<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:** [February 21, 2023, 2:34pm UTC](https://discuss.elastic.co/t/illegal-state-exception-alias-x-has-more-than-one-write-index-y-z/323843/2 "2023-02-21T14:34:41Z")

</div>

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