# Cant run two separate versions of Elasticsearch on the same machine

**URL:** <https://discuss.elastic.co/t/cant-run-two-separate-versions-of-elasticsearch-on-the-same-machine/58965>\
**Category:** Elasticsearch\
**Created:** [August 25, 2016, 5:30pm UTC](https://discuss.elastic.co/t/cant-run-two-separate-versions-of-elasticsearch-on-the-same-machine/58965 "2016-08-25T17:30:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apt275](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@apt275](https://discuss.elastic.co/u/apt275)\
**Post date:** [August 25, 2016, 5:30pm UTC](https://discuss.elastic.co/t/cant-run-two-separate-versions-of-elasticsearch-on-the-same-machine/58965/1 "2016-08-25T17:30:55Z")

</div>

I am trying to run two separate versions of Elasticsearch as follows

```
version 1.7.2

cluster.name: elastic172
http.port: 9200
transport.tcp.port: 9301

```

and

```
version 2.3.5

cluster.name: elastic235
http.port: 9201
transport.tcp.port: 9300

```

i keep rest of the settings as default. Version 1.7.2 starts up just fine and i can test it using `curl`

Version 2.3.5 starts up as well, however it runs into some exception like

```
    [2016-08-25 13:33:23,596][WARN][bootstrap] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
[2016-08-25 13:33:23,760][INFO][node] [Neuronne] version[2.3.5], pid[28287], build[90f439f/2016-07-27T10:36:52Z]
[2016-08-25 13:33:23,760][INFO][node] [Neuronne] initializing ...
[2016-08-25 13:33:24,318][INFO][plugins] [Neuronne] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2016-08-25 13:33:24,340][INFO][env] [Neuronne] using [1] data paths, mounts [[/home (bluej670:/newhome/home)]], net usable_space [1.1tb], net total_space [3.6tb], spins? [possibly], types [nfs]
[2016-08-25 13:33:24,341][INFO][env] [Neuronne] heap size [989.8mb], compressed ordinary object pointers [true]
[2016-08-25 13:33:24,341][WARN][env] [Neuronne] max file descriptors [8192] for elasticsearch process likely too low, consider increasing to at least [65536]
[2016-08-25 13:33:25,767][INFO][node] [Neuronne] initialized
[2016-08-25 13:33:25,767][INFO][node] [Neuronne] starting ...
[2016-08-25 13:33:25,827][INFO][transport] [Neuronne] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2016-08-25 13:33:25,831][INFO][discovery] [Neuronne] elastic235/F3LQQNenSIKsm8zocG2muQ
[2016-08-25 13:33:25,958][WARN][transport.netty] [Neuronne] exception caught on transport layer [[id: 0x68b84cce, /127.0.0.1:43077 => /127.0.0.1:9301]], closing connection
java.lang.NullPointerException
    at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:207)

```

and then it goes on for while and at the end i see

```
[2016-08-25 13:33:30,358][INFO][cluster.service] [Neuronne] new_master {Neuronne}{F3LQQNenSIKsm8zocG2muQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-08-25 13:33:30,381][INFO][http] [Neuronne] publish_address {127.0.0.1:9201}, bound_addresses {[::1]:9201}, {127.0.0.1:9201}
[2016-08-25 13:33:30,381][INFO][node] [Neuronne] started
[2016-08-25 13:33:30,394][INFO][gateway] [Neuronne] recovered [0] indices into cluster_state

```

but here is the result if i curl it

```
curl <myHostName>:9201
curl: (7) couldn't connect to host

```

am i missing something in either yml?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 25, 2016, 9:20pm UTC](https://discuss.elastic.co/t/cant-run-two-separate-versions-of-elasticsearch-on-the-same-machine/58965/2 "2016-08-25T21:20:17Z")

</div>

> [@apt275](#):
>
> [2016-08-25 13:33:25,827][INFO][transport] [Neuronne] publish\_address {127.0.0.1:9300}, bound\_addresses {[::1]:9300}, {127.0.0.1:9300}

Does `<myHostName>` resolve to 127.0.0.1? Because per the above log, that is what ES is listening on.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 26, 2016, 1:46am UTC](https://discuss.elastic.co/t/cant-run-two-separate-versions-of-elasticsearch-on-the-same-machine/58965/3 "2016-08-26T01:46:42Z")

</div>

I would make 1.7 settings more restrictive.

Disable multicast  
Change unicast list of nodes to only 127.0.0.1:9300

HTH

---

<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:25pm UTC](https://discuss.elastic.co/t/cant-run-two-separate-versions-of-elasticsearch-on-the-same-machine/58965/4 "2017-07-05T22:25:06Z")

</div>


