# Basic Setup failures joining an existing cluster

**URL:** https://discuss.elastic.co/t/basic-setup-failures-joining-an-existing-cluster/351830
**Category:** Elasticsearch
**Created:** [January 25, 2024, 7:53pm UTC](https://discuss.elastic.co/t/basic-setup-failures-joining-an-existing-cluster/351830 "2024-01-25T19:53:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bryanrood](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bryanrood](https://discuss.elastic.co/u/bryanrood)
#### Post date: [January 25, 2024, 7:53pm UTC](https://discuss.elastic.co/t/basic-setup-failures-joining-an-existing-cluster/351830/1 "2024-01-25T19:53:41Z")

</div>

Hi there,  
I have been beating my head against a tree trying to get nodes added to my new ES cluster.  
I'm trying to build a 6 node ES cluster. I got the first node working and I'm trying to add the second node. I can generate the token just fine.  
The problem I'm having now is I keep getting a autoconfig dir ownership mismatch.  
ES is installed from my user and it creates an elasticsearch user account that has no login allowed.  
However, the /etc/elasticsearch, /elastic(my data mount) folder are all owned by root, so I get the following error when trying to join the cluster from the /usr/share/elasticsearch folder:

[brood@ares2 elasticsearch]$ bin/elasticsearch --enrollment-token

ERROR: Aborting auto configuration because of config dir ownership mismatch. Config dir is owned by root but auto-configuration directory would be owned by brood, with exit code 78

---

<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: [February 22, 2024, 7:53pm UTC](https://discuss.elastic.co/t/basic-setup-failures-joining-an-existing-cluster/351830/2 "2024-02-22T19:53:59Z")

</div>

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