# ClusterBlockException SERVICE\_UNAVAILABLE

**URL:** https://discuss.elastic.co/t/clusterblockexception-service-unavailable/235610
**Category:** Elasticsearch
**Created:** [June 3, 2020, 5:28pm UTC](https://discuss.elastic.co/t/clusterblockexception-service-unavailable/235610 "2020-06-03T17:28:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tiago\_Krebs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiago_krebs/32/69658_2.png) [@Tiago\_Krebs](https://discuss.elastic.co/u/Tiago_Krebs)
#### Post date: [June 3, 2020, 5:28pm UTC](https://discuss.elastic.co/t/clusterblockexception-service-unavailable/235610/1 "2020-06-03T17:28:59Z")

</div>

After some coordinators node left from Elastic cluster and return we start to see this erros on the logs:  
`org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];`.

And  
`[2020-06-03T16:26:48,311][ERROR][o.e.x.s.a.e.NativeUsersStore] [elh-bhs-ovh017p] security index is unavailable. short circuiting retrieval of user [readall]`.

We are tryint to stabilish a cluster again since than with all nodes and just with master nodes too. We set some `gateway` params on our confs to a small number to start the recovery sooner but the result is the same.

Seems like even after master election and some data nodes join the cluster the recovery doesn't happen. There is some election retry even when a master already exists, who keeps failing non stop.

Cluster stats, health and settings: [https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/stats](https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/stats)

elasticsearch.yml: [https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/elasticsearch.yml](https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/elasticsearch.yml)

master 1 logs: [https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/master\_1\_log](https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/master_1_log)

master 2 logs: [https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/master\_2\_log](https://gist.github.com/tiagokrebs/47e8387894c983b7533b46c62246176b/raw/6f4a9fb886aa6048ceadbf59b0e862ddd1a2ea57/master_2_log)

If you guys can contribute with some insight would be very appreciated.

---

<div class="post-metadata">

### Author: ![Tiago\_Krebs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiago_krebs/32/69658_2.png) [@Tiago\_Krebs](https://discuss.elastic.co/u/Tiago_Krebs)
#### Post date: [June 4, 2020, 4:28pm UTC](https://discuss.elastic.co/t/clusterblockexception-service-unavailable/235610/2 "2020-06-04T16:28:36Z")

</div>

Solved.  
We delete all data from all nodes and restart them, it's working fine now.

---

<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 2, 2020, 4:28pm UTC](https://discuss.elastic.co/t/clusterblockexception-service-unavailable/235610/3 "2020-07-02T16:28:45Z")

</div>

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