# Cluster name in config file not updated (first install)

**URL:** https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364
**Category:** Elasticsearch
**Created:** [September 23, 2016, 10:29am UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364 "2016-09-23T10:29:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ebarrier](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@ebarrier](https://discuss.elastic.co/u/ebarrier)
#### Post date: [September 23, 2016, 10:29am UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/1 "2016-09-23T10:29:49Z")

</div>

Hi,  
I am running Ubuntu 16.04 LTS.  
I have started to install Graylog which need Elasticsearch, following this tutorial ([http://docs.graylog.org/en/2.1/pages/installation/os/ubuntu.html](http://docs.graylog.org/en/2.1/pages/installation/os/ubuntu.html)).  
As it says, in the /etc/elasticsearch/elasticsearch.yml config file, I set "graylog" as for [cluster.name](http://cluster.name).

But when I do `curl 'localhost:9200'` I get the output

`"name" : "Topaz", "cluster_name" : "elasticsearch", ...`

The cluster name is not the one I have set up.

Doing `systemctl daemon-reload` or `systemctl enable elasticsearch.service` or `systemctl start elasticsearch.service` does not fix it.

I cannot find any similar problem on internet. I guess the fix is super easy but I can't figure it out.  
Thanks in advance

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [September 23, 2016, 10:45am UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/2 "2016-09-23T10:45:09Z")

</div>

Hi @ebarrier,

is it possible that you have another Elasticsearch process running on this machine? Can you just stop your server and check if you still get a response? If yes, then somewhere on your system another Elasticsearch process is still running. Alternatively you can also check with `ps`.

Daniel

---

<div class="post-metadata">

### Author: ![ebarrier](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@ebarrier](https://discuss.elastic.co/u/ebarrier)
#### Post date: [September 23, 2016, 12:21pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/3 "2016-09-23T12:21:31Z")

</div>

Thank you for your response Daniel.  
With `ps aux` I could find only one process called "elastic+".  
After killing it, `curl 'localhost:9200'`did not work as expected (Connection refused).

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [September 23, 2016, 12:27pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/4 "2016-09-23T12:27:27Z")

</div>

Hi @ebarrier,

ok, this means you don't have another process running, that's good. Does Elasticsearch pick up the new name now after you've started it again?

Daniel

---

<div class="post-metadata">

### Author: ![ebarrier](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@ebarrier](https://discuss.elastic.co/u/ebarrier)
#### Post date: [September 23, 2016, 12:37pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/5 "2016-09-23T12:37:48Z")

</div>

Unfortunately no.  
Reloading or restarting the service does not show me the cluster name that I have written in the config file.

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [September 23, 2016, 12:41pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/6 "2016-09-23T12:41:58Z")

</div>

Hi @ebarrier,

ok, just double checking: You did install Elasticsearch from the deb package, didn't you? Can you please set temporarily in your `elasticsearch.yml`:

```auto
http.port: 10200

```

Then restart the node and issue `curl 'localhost:10200'`? I am just curious whether this is the correct config file (it should be for the deb package...).

Daniel

---

<div class="post-metadata">

### Author: ![ebarrier](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@ebarrier](https://discuss.elastic.co/u/ebarrier)
#### Post date: [September 23, 2016, 1:41pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/7 "2016-09-23T13:41:50Z")

</div>

Thanks Daniel, I found my mistake (very stupid and trivial as I assumed...).  
I searched my disk for all files that could be duplicated but nothing. There is only one conf file as it should be.  
I changed the config file with port 10200 like you said, but port 9200 works, not 10200. So the config was **ignored** somehow.

Then it hit me that the lines were still commented out... So stupid...  
Thank you for your time Daniel, you put my mind on the right tracks.  
I hope at least I made you laugh a bit : )

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [September 23, 2016, 1:43pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/8 "2016-09-23T13:43:31Z")

</div>

Hi @ebarrier,

> [@ebarrier](#):
>
> Then it hit me that the lines were still commented out... So stupid...

we've all been there, no worries.

> [@ebarrier](#):
>
> I hope at least I made you laugh a bit : )

Oh, yes. 🙂

Good luck now!

Daniel

---

<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: [July 5, 2017, 10:17pm UTC](https://discuss.elastic.co/t/cluster-name-in-config-file-not-updated-first-install/61364/9 "2017-07-05T22:17:44Z")

</div>


