# ERROR: Failed to determine the health of the cluster. , with exit code 69

**URL:** https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522
**Category:** Kibana
**Created:** [August 26, 2024, 4:59am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522 "2024-08-26T04:59:52Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![17HungLe02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/17hungle02/32/137047_2.png) [@17HungLe02](https://discuss.elastic.co/u/17HungLe02)
#### Post date: [August 26, 2024, 4:59am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/1 "2024-08-26T04:59:52Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/d/cd5422f650b2909b299718db2c31385e0394dfb8.png)  
I run the command to create token but the result is like this, what should I do?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [August 26, 2024, 5:04am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/2 "2024-08-26T05:04:24Z")

</div>

Hi @17HungLe02  
Welcome to the community...

Perhaps take a look at

> [@Unable to generate a enrollement token with scope level to node ERROR: Failed to determine the health of the cluster. , with exit code 69](https://discuss.elastic.co/t/unable-to-generate-a-enrollement-token-with-scope-level-to-node-error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/361887/1):
>
> my elasticsearch config file content # ======================== Elasticsearch Configuration ========================= # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the configuration, make sure you # understand what are you trying to accomplish and the consequences. # # The primary way of configuring a node is via this file. This template lists # the most important settings you may want to configure for a production cluste…

But you should really supply more information like

The version you're on.  
What you installation method is.  
What your configuration is? Otherwise we may just be guessing.  
How did you set up manually or auto configuration

---

<div class="post-metadata">

### Author: ![17HungLe02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/17hungle02/32/137047_2.png) [@17HungLe02](https://discuss.elastic.co/u/17HungLe02)
#### Post date: [August 26, 2024, 6:39am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/3 "2024-08-26T06:39:41Z")

</div>

i followed this guide `(https://www.elastic.co/guide/en/kibana/8.9/targz.html)` This is version 8.9 and i setup auto

---

<div class="post-metadata">

### Author: ![17HungLe02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/17hungle02/32/137047_2.png) [@17HungLe02](https://discuss.elastic.co/u/17HungLe02)
#### Post date: [August 26, 2024, 7:10am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/4 "2024-08-26T07:10:00Z")

</div>

i have a new problem  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a8eb2e9ce9fde858c285a3fa46cceb30c93767a.png)  
what is this?

---

<div class="post-metadata">

### Author: ![17HungLe02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/17hungle02/32/137047_2.png) [@17HungLe02](https://discuss.elastic.co/u/17HungLe02)
#### Post date: [August 26, 2024, 7:16am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/5 "2024-08-26T07:16:28Z")

</div>

Which lines do I need to remove # from in the kibana.yml file?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [August 26, 2024, 1:59pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/6 "2024-08-26T13:59:20Z")

</div>

> [@17HungLe02](#):
>
> i have a new problem  
> ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a8eb2e9ce9fde858c285a3fa46cceb30c93767a.png)  
> what is this?

That means during the auto setup the the Kibana process could not update the kibana.yml file which would appear to me that the user you started Kibana with does not have permission to write to the Kibana extract files.... Most likely due to permissions. Make sure that file is writable by

`chmod 666 kibana.yml`

[Start elasticsearch first](https://www.elastic.co/guide/en/kibana/8.9/targz.html#targz-enroll)  
Get the enrollment token that will be printed .

Then start Kibana... Watch the console and click on the link that shows in the console... Paste in the enrollment token.

---

<div class="post-metadata">

### Author: ![17HungLe02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/17hungle02/32/137047_2.png) [@17HungLe02](https://discuss.elastic.co/u/17HungLe02)
#### Post date: [August 26, 2024, 2:15pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/7 "2024-08-26T14:15:56Z")

</div>

i try restart elasticsearch and it doesn't seem to work

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/9/9965e2fc2616e60b6ce64bcbbe749e0dac835dae.png)

pls help me sir

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [August 26, 2024, 4:56pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/365522/8 "2024-08-26T16:56:55Z")

</div>

Hi @17HungLe02

Sorry you are providing such little information and screenshots... instead of text.

I would start from scratch clean up / erase everything and try again...

set the permissions on the kibana.yml... before you start anything

Start Elastic ... let it come all the way up you should get all the credentials tokens everything...

then start kibana...

Do you have docker ? It might be easier...
