# Add second Node to Cluster (Windows)

**URL:** <https://discuss.elastic.co/t/add-second-node-to-cluster-windows/364286>\
**Category:** Elasticsearch\
**Created:** [August 2, 2024, 5:27pm UTC](https://discuss.elastic.co/t/add-second-node-to-cluster-windows/364286 "2024-08-02T17:27:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaakxuur](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Shaakxuur](https://discuss.elastic.co/u/Shaakxuur)\
**Post date:** [August 2, 2024, 5:27pm UTC](https://discuss.elastic.co/t/add-second-node-to-cluster-windows/364286/1 "2024-08-02T17:27:53Z")

</div>

Hello

I'm stuck at the moment, maybe someone can help me.

I am reading through the instructions step by step and am trying to recreate this on my Windows system.  
[https://www.elastic.co/guide/en/elastic-stack/8.14/installing-stack-demo-self.html#install-stack-self-elasticsearch-second](https://www.elastic.co/guide/en/elastic-stack/8.14/installing-stack-demo-self.html#install-stack-self-elasticsearch-second)

The first node worked without any problems.

The instructions say (8.)

_To enable this second Elasticsearch node to connect to the first, you need to configure an enrollment token._

_Be sure to run all of these configuration steps before starting the Elasticsearch service._

_You can find additional details about these steps in [Reconfigure a node to join an existing cluster](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/rpm.html#_reconfigure_a_node_to_join_an_existing_cluster_2) and also in [Enroll nodes in an existing cluster](https://www.elastic.co/guide/en/elasticsearch/reference/8.14/add-elasticsearch-nodes.html#_enroll_nodes_in_an_existing_cluster_5)._

_Return to your terminal shell on the first Elasticsearch node and generate a node enrollment token:_

```auto
sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node

```

I created the token on the first node

```auto
C:\mon\e\bin>elasticsearch-create-enrollment-token -s node
eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTcyLjIwLjI0OS41Mzo5MjAwIl0sImZnciI6IjJlYzA4YjIzNDBiNDM3MzNkNTA1NjQwOWRjNWU4NmM3OTZkYmFhN2YxYmJhM2MwMjUwOTFhNWE4YWM3NTA1ZTkiLCJrZXkiOiJMVGNFRkpFQkN6TGVhZXlKajYxejpHeU00UHNKb1NObUNYRk54ZUpmYUFBIn0=

```

Now the problem:  
On the second (new) node I get the error message that the security settings have not yet been made

```auto
C:\mon\e\bin>elasticsearch-reconfigure-node --enrollment-token eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTcyLjIwLjI0OS41Mzo5MjAwIl0sImZnciI6IjJlYzA4YjIzNDBiNDM3MzNkNTA1NjQwOWRjNWU4NmM3OTZkYmFhN2YxYmJhM2MwMjUwOTFhNWE4YWM3NTA1ZTkiLCJrZXkiOiJMVGNFRkpFQkN6TGVhZXlKajYxejpHeU00UHNKb1NObUNYRk54ZUpmYUFBIn0=
Generates all the necessary security configuration for a node in a secured cluster

Option Description
------ -----------
-E <KeyValuePair> Configure a setting
--enrollment-token The enrollment token to use
-h, --help Show help
-s, --silent Show minimal output
-v, --verbose Show verbose output

ERROR: Aborting enrolling to cluster. This node doesn't appear to be auto-configured for security. Expected configuration is missing from elasticsearch.yml., with exit code 64

```

This is correct because the elasticsearch.yml is still in its original state

The problem: If I follow the instructions and execute step 6 first:

_6. Run the Elasticsearch install command:_

```auto
*sudo rpm --install elasticsearch-8.14.3-x86_64.rpm*

```

_Unlike the setup for the first Elasticsearch node, in this case you don’t need to copy the output of the install command, since these settings will be updated in a later step._

If I then start the reconfigure process, I get this message:

```auto
C:\mon\e\bin>elasticsearch-reconfigure-node --enrollment-token eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTcyLjIwLjI0OS41Mzo5MjAwIl0sImZnciI6IjJlYzA4YjIzNDBiNDM3MzNkNTA1NjQwOWRjNWU4NmM3OTZkYmFhN2YxYmJhM2MwMjUwOTFhNWE4YWM3NTA1ZTkiLCJrZXkiOiJMVGNFRkpFQkN6TGVhZXlKajYxejpHeU00UHNKb1NObUNYRk54ZUpmYUFBIn0=

ERROR: Skipping security auto configuration because it appears that the node is not starting up for the first time. The node might already be part of a cluster and this auto setup utility is designed to configure Security for new clusters only., with exit code 80

```

So are the instructions wrong, have I made a mistake somewhere or does it work completely differently with Windows?

---

<div class="post-metadata">

**Author:** ![Mungo64](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mungo64](https://discuss.elastic.co/u/Mungo64)\
**Post date:** [August 9, 2024, 1:02pm UTC](https://discuss.elastic.co/t/add-second-node-to-cluster-windows/364286/2 "2024-08-09T13:02:23Z")

</div>

I have the exact same issue. Did you solve the problem, and if yes, how ?  
Greetings, Michael

---

<div class="post-metadata">

**Author:** ![Shaakxuur](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Shaakxuur](https://discuss.elastic.co/u/Shaakxuur)\
**Post date:** [August 9, 2024, 1:08pm UTC](https://discuss.elastic.co/t/add-second-node-to-cluster-windows/364286/3 "2024-08-09T13:08:48Z")

</div>

No, I´m still waiting for an answer 🙂
