# ERROR: Failed to determine the health of the cluster

**URL:** https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/321332
**Category:** Elasticsearch
**Created:** [December 15, 2022, 4:10pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/321332 "2022-12-15T16:10:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mikes1962](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mikes1962](https://discuss.elastic.co/u/mikes1962)
#### Post date: [December 15, 2022, 4:10pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/321332/1 "2022-12-15T16:10:11Z")

</div>

I'm trying to install elasticsearch on RedHat 8.5 with SELinux enabled and enforcing. Additionally, the account I'm using has very limited sudo privileges so I run a python script to execute the commands. So I am executing the following sequence of commands:

sed,-i,s/true/false/g,/etc/elasticsearch/elasticsearch.yml

sed,-i,s/xpack.security.enabled: false/xpack.security.enabled: true/,/etc/elasticsearch/elasticsearch.yml

sed,-i,s/xpack.security.enrollment.enabled: false/xpack.security.enrollment.enabled: true/,/etc/elasticsearch/elasticsearch.yml

systemctl,restart,elasticsearch

The above commands appear to run successfully. However when I attempt the following:  
/usr/share/elasticsearch/bin/elasticsearch-reset-password,-u,elastic,-i

/usr/share/elasticsearch/bin/elasticsearch-reset-password,-u,kibana\_system,-i

Both return the following:

ERROR: Failed to determine the health of the cluster.

with no further information. I'm very new to elasticsearch so any suggestions on how to troubleshoot this would be greatly appreciated.

Thanks

---

<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: [December 18, 2022, 10:52pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/321332/2 "2022-12-18T22:52:59Z")

</div>

Welcome to our community! 😃

Can you curl Elasticsearch? What do it's logs show?

---

<div class="post-metadata">

### Author: ![mikes1962](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mikes1962](https://discuss.elastic.co/u/mikes1962)
#### Post date: [December 20, 2022, 5:13pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/321332/3 "2022-12-20T17:13:53Z")

</div>

Thank you for your reply. I found the problem. Another program was using port 9200.

---

<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: [January 17, 2023, 5:14pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster/321332/4 "2023-01-17T17:14:42Z")

</div>

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