# ClusterBlockException : All shards failed

**URL:** https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755
**Category:** Elasticsearch
**Created:** [March 19, 2021, 6:35am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755 "2021-03-19T06:35:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![onkark](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@onkark](https://discuss.elastic.co/u/onkark)
#### Post date: [March 19, 2021, 6:35am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755/1 "2021-03-19T06:35:29Z")

</div>

Hi, I am getting the error like org.elasticsearch.cluster.block.ClusterBlockException : blocked by : [SERVICE\_UNAVAILABLE/1/state not recovered/initialized]

where the cluster health status is YELLOW and primary shards allocated are same as shards activated.

---

<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: [March 19, 2021, 6:43am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755/2 "2021-03-19T06:43:46Z")

</div>

Which version of Elasticsearch are you using? How is your cluster configured and deployed? Is there anything relevant in the Elasticsearch logs?

---

<div class="post-metadata">

### Author: ![onkark](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@onkark](https://discuss.elastic.co/u/onkark)
#### Post date: [March 19, 2021, 7:11am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755/3 "2021-03-19T07:11:40Z")

</div>

I'm using 7.6.2 version of Elasticsearch. All the settings are default regarding clusters and nodes. There is nothing more related to error beside the note " org.elasticsearch.cluster.block.ClusterBlockException : blocked by : [SERVICE\_UNAVAILABLE/1/state not recovered/initialized] ".

---

<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: [March 19, 2021, 7:13am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755/4 "2021-03-19T07:13:14Z")

</div>

Is this a single node cluster? Can you provide excerpts from the logs around that error?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 19, 2021, 8:34am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755/6 "2021-03-19T08:34:09Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<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 16, 2021, 8:35am UTC](https://discuss.elastic.co/t/clusterblockexception-all-shards-failed/267755/7 "2021-04-16T08:35:03Z")

</div>

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