# ES8.14 has 5 nodes. But master is down and reinstalled. How to join the new cluster?

**URL:** https://discuss.elastic.co/t/es8-14-has-5-nodes-but-master-is-down-and-reinstalled-how-to-join-the-new-cluster/366025
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [September 4, 2024, 9:56am UTC](https://discuss.elastic.co/t/es8-14-has-5-nodes-but-master-is-down-and-reinstalled-how-to-join-the-new-cluster/366025 "2024-09-04T09:56:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hoover\_he](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hoover_he/32/137301_2.png) [@hoover\_he](https://discuss.elastic.co/u/hoover_he)
#### Post date: [September 4, 2024, 9:56am UTC](https://discuss.elastic.co/t/es8-14-has-5-nodes-but-master-is-down-and-reinstalled-how-to-join-the-new-cluster/366025/1 "2024-09-04T09:56:03Z")

</div>

ES8.14 has 5 nodes. But master was down and reinstalled. How to join the new cluster?

1. ES8.14 has 5 nodes. But master[node-04] was down and reinstalled.
2. The current es cluster is running well with new master[node-05].
3. I generated the "/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node" in node-02.
4. Executed the "/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token newToken" in node-04.  
Unable to communicate with the node on http s://node-04:9200/\_security/enroll/node. Error was Connection refused  
ERROR: Aborting enrolling to cluster. Could not communicate with the node on any of the addresses from the enrollment token. All of [node-04:9200] were attempted., with exit code 69
5. "elasticsearch-create-enrollment-token -s node" will generate new token based on the old master value [node-04] in elasticsearch.yml, not from the new master[node-05]. Right?  
Like this scenario, how can I let node-04 join the new cluster?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [September 4, 2024, 11:48pm UTC](https://discuss.elastic.co/t/es8-14-has-5-nodes-but-master-is-down-and-reinstalled-how-to-join-the-new-cluster/366025/2 "2024-09-04T23:48:03Z")

</div>

> [@hoover\_he](#):
>
> - I generated the "/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node" in node-02.
> - Executed the "/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token newToken" in node-04.  
> Unable to communicate with the node on http s://node-04:9200/\_security/enroll/node. Error was Connection refused

That error message doesn't align with the steps you say you took.

If you generated a token on `node-02` then the error message should not be mentioning `node-04`.

Can you double check that what you've written above is exactly what happened?
