# Two nodes on the same Debian server

**URL:** <https://discuss.elastic.co/t/two-nodes-on-the-same-debian-server/193956>\
**Category:** Elasticsearch\
**Created:** [August 6, 2019, 8:00am UTC](https://discuss.elastic.co/t/two-nodes-on-the-same-debian-server/193956 "2019-08-06T08:00:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nonow53](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nonow53/32/81767_2.png) [@Nonow53](https://discuss.elastic.co/u/Nonow53)\
**Post date:** [August 6, 2019, 8:00am UTC](https://discuss.elastic.co/t/two-nodes-on-the-same-debian-server/193956/1 "2019-08-06T08:00:42Z")

</div>

Hello,

We installed a first ES node on a Debian server with the dedicated package distribution.  
It works well. Environment variables are in /etc/default/elasticsearch.  
Then, we have been tried to install a second ES node on this same Debian server.  
It does not start correctly because it takes the configuration and data paths of the first node.  
We have been tried many tests and workarounds but it does not work. We have copied the /etc/default/elasticsearch file to /etc/default/elasticsearch-masteronly and we have set an other path for ES\_PATH\_CONF variable.  
The startup script takes in account the ES\_PATH\_CONF from /etc/default/elasticsearch. Thus, at startup, the node fails because the path is already locked by the other node (it is normal).  
The problem occurs too when we try to start form the command line by passing the path configuration and the path data values, without systemd script.  
It ignores ES\_PATH\_CONF variable 😥  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#config-files-location](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#config-files-location)  
Is the value hard-coded in the Debian package ?

On Debian, is it possible to install 2 nodes on the same server ?

Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![Nonow53](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nonow53/32/81767_2.png) [@Nonow53](https://discuss.elastic.co/u/Nonow53)\
**Post date:** [September 2, 2019, 8:40am UTC](https://discuss.elastic.co/t/two-nodes-on-the-same-debian-server/193956/2 "2019-09-02T08:40:09Z")

</div>

Hello,

Do you have any feedback about this problem ?  
Thanks

---

<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 30, 2019, 8:40am UTC](https://discuss.elastic.co/t/two-nodes-on-the-same-debian-server/193956/3 "2019-09-30T08:40:12Z")

</div>

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