# This node doesn't appear to be auto-configured for security. Expected configuration is missing from elasticsearch.yml

**URL:** https://discuss.elastic.co/t/this-node-doesnt-appear-to-be-auto-configured-for-security-expected-configuration-is-missing-from-elasticsearch-yml/339649
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [July 31, 2023, 7:03am UTC](https://discuss.elastic.co/t/this-node-doesnt-appear-to-be-auto-configured-for-security-expected-configuration-is-missing-from-elasticsearch-yml/339649 "2023-07-31T07:03:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![KunwarAkanksha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kunwarakanksha/32/79144_2.png) [@KunwarAkanksha](https://discuss.elastic.co/u/KunwarAkanksha)
#### Post date: [July 31, 2023, 7:03am UTC](https://discuss.elastic.co/t/this-node-doesnt-appear-to-be-auto-configured-for-security-expected-configuration-is-missing-from-elasticsearch-yml/339649/1 "2023-07-31T07:03:20Z")

</div>

Kindly Help, While the Elasticsearch is with the default elasticsearch.yml it is giving such error  
/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token   
Generates all the necessary security configuration for a node in a secured cluster

Option Description

* * *

-E 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.

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [August 2, 2023, 6:59am UTC](https://discuss.elastic.co/t/this-node-doesnt-appear-to-be-auto-configured-for-security-expected-configuration-is-missing-from-elasticsearch-yml/339649/2 "2023-08-02T06:59:02Z")

</div>

The [doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/reconfigure-node.html#reconfigure-node) for `elasticsearch-reconfigure-node` CLI says

> The `elasticsearch-reconfigure-node` tool reconfigures an Elasticsearch node that was installed through an RPM or DEB package to join an existing cluster with security features enabled.

Does that match your environment?

---

<div class="post-metadata">

### Author: ![KunwarAkanksha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kunwarakanksha/32/79144_2.png) [@KunwarAkanksha](https://discuss.elastic.co/u/KunwarAkanksha)
#### Post date: [August 10, 2023, 4:14am UTC](https://discuss.elastic.co/t/this-node-doesnt-appear-to-be-auto-configured-for-security-expected-configuration-is-missing-from-elasticsearch-yml/339649/3 "2023-08-10T04:14:28Z")

</div>

I solved the error by reinstalling the elasticsearch and then again enrolling for the cluster token but still don't know the exact reason for the above error.... Environment and all are same while I reinstalled the elasticsearch

---

<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: [September 7, 2023, 4:14am UTC](https://discuss.elastic.co/t/this-node-doesnt-appear-to-be-auto-configured-for-security-expected-configuration-is-missing-from-elasticsearch-yml/339649/4 "2023-09-07T04:14:46Z")

</div>

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