# Getting an exception in ES 2.3.1

**URL:** https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199
**Category:** Elasticsearch
**Created:** [April 22, 2016, 6:02pm UTC](https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199 "2016-04-22T18:02:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![parthu](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@parthu](https://discuss.elastic.co/u/parthu)
#### Post date: [April 22, 2016, 6:02pm UTC](https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199/1 "2016-04-22T18:02:48Z")

</div>

I've read quite a bit about this error(IllegalIndexShardsStateException) on the Internet, but still not able to do anything about it.  
How can I ensure this error doesn't come up?

[logstash-2016.04.22][[logstash-2016.04.22][3]] IllegalIndexShardStateException[CurrentState[POST\_RECOVERY] operation only allowed when started/recovering, origin [PRIMARY]]  
at org.elasticsearch.index.shard.IndexShard.ensureWriteAllowed(IndexShard.java:

I also heard that this issue has been fixed. But I keep getting it. Can anyone 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: [April 24, 2016, 12:03am UTC](https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199/2 "2016-04-24T00:03:10Z")

</div>

What is happening when you get this error?

---

<div class="post-metadata">

### Author: ![parthu](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@parthu](https://discuss.elastic.co/u/parthu)
#### Post date: [April 26, 2016, 3:44pm UTC](https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199/3 "2016-04-26T15:44:10Z")

</div>

Nothing happens, but I get this error in the logs and then the logs also say that the cluster health is changing from "red" to "yellow" and later from "yellow" to "green".

But how can I avoid getting this error in the logs?

---

<div class="post-metadata">

### Author: ![gphadke](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gphadke](https://discuss.elastic.co/u/gphadke)
#### Post date: [May 27, 2016, 7:53pm UTC](https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199/4 "2016-05-27T19:53:41Z")

</div>

I am too seeing this error, what does it mean?

---

<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: [July 5, 2017, 10:48pm UTC](https://discuss.elastic.co/t/getting-an-exception-in-es-2-3-1/48199/5 "2017-07-05T22:48:25Z")

</div>


