# "Unable to connect to Elasticsearch. Error: \[search\_phase\_execution\_exception\] all shards failed"

**URL:** https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-error-search-phase-execution-exception-all-shards-failed/283344
**Category:** Kibana
**Created:** [September 4, 2021, 1:32pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-error-search-phase-execution-exception-all-shards-failed/283344 "2021-09-04T13:32:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ShashikanthKomandoor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashikanthkomandoor/32/46221_2.png) [@ShashikanthKomandoor](https://discuss.elastic.co/u/ShashikanthKomandoor)
#### Post date: [September 4, 2021, 1:32pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-error-search-phase-execution-exception-all-shards-failed/283344/1 "2021-09-04T13:32:16Z")

</div>

Hi Team,

I have been running ELK Cluster of version 7.8 with 3 master nodes and 5 data nodes. I am running this on RHEL 7.5. I have installed httpd to proxy the requests to Kibana. I installed httpd, Kibana, Elasticsearch and Logstash (with groks) on each of the 3 master nodes. We have been running from past 2 months in production for pushing postfix maillog using filebeat.

I have recently encountered the error **"Kibana is not yet ready"** on the browser. I drilled and checked for the kibana logs (as I see all the elasticsearch services are working fine and able to retrieve data through CURL). I observed the error message as **"Unable to connect to Elasticsearch. Error: [search\_phase\_execution\_exception] all shards failed"**.

I am not sure where exactly the issue might be and how it could be resolved. I could notice that the index ".kibana\_task\_manager\_1" is showing RED and the shards of that index are unassigned.

I am not sure if the above error is related to our issue. How to resolve this without data loss of other indices.

---

<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: [September 5, 2021, 10:22pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-error-search-phase-execution-exception-all-shards-failed/283344/2 "2021-09-05T22:22:02Z")

</div>

Please share the full log you are seeing.

Also check your Elasticsearch logs.

---

<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: [October 3, 2021, 10:22pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-error-search-phase-execution-exception-all-shards-failed/283344/3 "2021-10-03T22:22:52Z")

</div>

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