# Node Auto Configuration

**URL:** <https://discuss.elastic.co/t/node-auto-configuration/297543>\
**Category:** Elasticsearch\
**Created:** [February 17, 2022, 8:33pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543 "2022-02-17T20:33:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![francescouk](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@francescouk](https://discuss.elastic.co/u/francescouk)\
**Post date:** [February 17, 2022, 8:33pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/1 "2022-02-17T20:33:38Z")

</div>

Hi there, I´m trying to deploy a new cluster using Elasticsearch 8 but it seens that is not working the way I expected.  
4 Servers:  
3 Elasticsearch  
1 kibana

All in the same network.  
I´m following the steps using the Elasticsearch website to add new nodes which is:

```auto
bin/elasticsearch-create-enrollment-token -s node

```

After created the token, I´m trying to add the second node(server) using:

```auto
bin/elasticsearch --enrollment-token <enrollment-token>

```

After that, I´m receiving the following error:

```auto
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.

```

Is there something I need to change to make it work?

Thanks for the attention.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 18, 2022, 8:45pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/2 "2022-02-18T20:45:14Z")

</div>

Hi there, it looks like you had attempted to start Elasticsearch on the second node before you actually ran the command you’re showing us. Th enrollment process is designed for initial bootstrap and will not attempt to configure nodes that have already started.

Given the command you are using I presume that you are installing via an archive, so just delete the Elasticsearch dir on the second node, unpack the archive and try again !

Hope this helps

---

<div class="post-metadata">

**Author:** ![francescouk](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@francescouk](https://discuss.elastic.co/u/francescouk)\
**Post date:** [February 18, 2022, 9:40pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/3 "2022-02-18T21:40:25Z")

</div>

That´s the thing, what I´ve done was, installed the Elasticsearch on a new server.

```auto
apt install elasticsearch

```

And that´s it!

I was thinking like to add something to the Elasticsearch.yml but it seens that because you never mentioned, is something else.

Did not even started the Elasticsearch ☹

But to make sure, I´ll remove the Elasticsearch from the server, reboot and start again. We never know.

Thanks

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 18, 2022, 9:46pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/4 "2022-02-18T21:46:18Z")

</div>

Ah apologies ! You’re using the deb package , that’s slightly different 🙂

You need to follow this documentation in your second and third node : [Install Elasticsearch with Debian Package | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#_reconfigure_a_node_to_join_an_existing_cluster)

---

<div class="post-metadata">

**Author:** ![szajbus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/szajbus/32/6559_2.png) [@szajbus](https://discuss.elastic.co/u/szajbus)\
**Post date:** [February 19, 2022, 9:45pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/5 "2022-02-19T21:45:07Z")

</div>

I had similar problem with rpm packages on CentOS.

When installing Elasticsearch through yum, the service is automatically started, so you can't later reconfigure the node.

Instead, I installed the package through `rpm --install`, so that it doesn't autostart.

I assume similar solution would work for Debian based distros, just download it manually and install with `dpkg -i`.

I believe the official docs could be more helpful on this.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 20, 2022, 8:21am UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/6 "2022-02-20T08:21:06Z")

</div>

Thanks for your feedback @szajbus ! Elasticsearch _should not_ start automatically when installed by packages (irrespective to the security configuration) and if we do so it's a bug. I just verified that Elasticsearch **doesn't** automatically start when you install it with a DEB package via APT, as expected.

I'll take a look at the behavior with YUM and the RPM package and make sure we fix this behavior if needed

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 20, 2022, 10:44am UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/7 "2022-02-20T10:44:45Z")

</div>

Hi again @szajbus , I couldn't replicate the behavior you are experiencing. Following our docs in [Install Elasticsearch with RPM | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/rpm.html) and installing Elasticsearch with YUM, the service did **not** automatically start - as expected - and I was able to run the `elasticsearch-reconfigure-node` CLI tool directly after installation.

Can you please verify that you can replicate the behavior you observed and if so, share with us the actual steps you performed, the OS you are running this in so that we can further investigate ? Thanks

---

<div class="post-metadata">

**Author:** ![francescouk](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@francescouk](https://discuss.elastic.co/u/francescouk)\
**Post date:** [February 21, 2022, 4:53pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/8 "2022-02-21T16:53:10Z")

</div>

> [@ikakavas](#):
>
> elasticsearch-reconfigure-node

That did it work. I´ve used the command bellow on each node:

```auto
elasticsearch-reconfigure-node

```

Really appreciate for your help! 🙂

---

<div class="post-metadata">

**Author:** ![szajbus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/szajbus/32/6559_2.png) [@szajbus](https://discuss.elastic.co/u/szajbus)\
**Post date:** [February 21, 2022, 7:42pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/9 "2022-02-21T19:42:28Z")

</div>

Hi @ikakavas, I think it was in fact a mistake on my side. I used a custom ansible playbook that started the service automatically. I'm sorry for confusion!

---

<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:** [March 21, 2022, 7:43pm UTC](https://discuss.elastic.co/t/node-auto-configuration/297543/10 "2022-03-21T19:43:11Z")

</div>

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