# Running 1.x & 5.x SxS

**URL:** <https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 6:41pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289 "2017-02-23T18:41:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 23, 2017, 6:41pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/1 "2017-02-23T18:41:43Z")

</div>

I am trying to install es 5.2.1 on win2008 r2 server; it already runs 1.x ES. I am getting:

```auto
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): "D:\Java\jdk1.8.0_40x64\jre"
Failed installing 'elasticsearch-service-x64' service

```

I am using the default jvm.options file. I have also detailed the issue at [Github here](https://github.com/elastic/elasticsearch/issues/20899#issuecomment-282070416)

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 23, 2017, 8:25pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/2 "2017-02-23T20:25:23Z")

</div>

Can you please provide the contents of the service logs? These files are located in the logs directory and have names that indicate they are the service logs.

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 23, 2017, 9:36pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/3 "2017-02-23T21:36:59Z")

</div>

I have been able to install the service, but now when I start the service I get this in the service log: elasticsearch-service-x64-stderr.2017-02-23.log

```auto
2017-02-23 21:34:48 Commons Daemon procrun stderr initialized
Exception in thread "main" ed to bind to [9300-9400]]; nested: BindException[Cannot assign requested address: bind];
Likely root cause: java.net.BindException: Cannot assign requested address: bind
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:437)
	at sun.nio.ch.Net.bind(Net.java:429)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
	at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:127)
	at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:554)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1258)
	at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:502)
	at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:487)
	at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980)
	at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:250)
	at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:363)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:445)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
	at java.lang.Thread.run(Thread.java:745)
Refer to the log for complete error details.

```

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 23, 2017, 9:39pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/4 "2017-02-23T21:39:17Z")

</div>

Sounds like some other service is listening on 9300, can I config this port in elasticsearch.yml?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 23, 2017, 9:49pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/5 "2017-02-23T21:49:49Z")

</div>

I should say here, my elasticsearch.yml has `http.port: 9250` - so not sure what that that `[9300-9400]` there is.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 24, 2017, 3:17am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/6 "2017-02-24T03:17:05Z")

</div>

> [@aateeque](#):
>
> java.net.BindException: Cannot assign requested address: bind

Can you share your elasticsearch.yml?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 9:53am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/7 "2017-02-24T09:53:21Z")

</div>

Sure:

```auto
cluster.name: clust
node.name: <node1>
http.port: 9250
node.master: true
node.data: true
network.host: <node1>
path.data: ./../../../data/elasticsearch_5.2
path.logs: ./../../../log/elasticsearch_5.2
discovery.zen.fd.ping_timeout: 60s
discovery.zen.fd.ping_interval: 15s
discovery.zen.fd.ping_retries: 5
# discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["<node1>", "<node2>"]
http.cors.allow-origin: "*"
http.cors.enabled: true
xpack.security.enabled: false
action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*

```

I remember reading that port 9300 is used by default by the java client. Is that the port ES uses to communicate with the cluster by any chance? If so, what's the override config for it?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 10:30am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/8 "2017-02-24T10:30:43Z")

</div>

Right, I've fixed that one....now I get

```auto
[2017-02-24T10:23:21,398][INFO][o.e.b.BootstrapChecks] [lonms14041] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
initial heap size [536870912] not equal to maximum heap size [8589934592]; this can cause resize pauses and prevents mlockall from locking the entire heap
[2017-02-24T10:23:21,411][INFO][o.e.n.Node] [lonms14041] stopping ...
[2017-02-24T10:23:21,506][INFO][o.e.n.Node] [lonms14041] stopped
[2017-02-24T10:23:21,507][INFO][o.e.n.Node] [lonms14041] closing ...
[2017-02-24T10:23:21,530][INFO][o.e.n.Node] [lonms14041] closed

```

---

<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:** [February 24, 2017, 11:00am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/9 "2017-02-24T11:00:53Z")

</div>

Read: [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 12:09pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/10 "2017-02-24T12:09:50Z")

</div>

Can you please confirm one thing, `network.host` is any other node in the cluster's hostname/ip right?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 12:12pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/11 "2017-02-24T12:12:05Z")

</div>

Actually ignore that. That's the hostname of the node, isn't it?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 12:17pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/12 "2017-02-24T12:17:46Z")

</div>

Where does ES get the path to `jvm.options` from? Is default set to `./../config`?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 12:30pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/13 "2017-02-24T12:30:30Z")

</div>

In `jvm.options` I have:

```auto
-Xms2g
-Xmx2g

```

but I see the following bootstrap error:

```auto
ERROR: bootstrap checks failed
initial heap size [536870912] not equal to maximum heap size [8589934592]; this can cause resize pauses and prevents mlockall from locking the entire heap

```

Why isn't the max heap value 2g as I'd expect from the config? Any clues?

---

<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:** [February 24, 2017, 1:08pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/14 "2017-02-24T13:08:14Z")

</div>

> Any clues?

Not really. Apparently it does not read the `jvm.options` file you are looking at.  
I wonder if you have any system properties like `JAVA_OPTIONS` which could "conflicts" but really unsure if this should be the case even if you have such a setting.

---

<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:** [February 24, 2017, 1:09pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/15 "2017-02-24T13:09:16Z")

</div>

> Any clues?

Not really. Apparently it does not read the `jvm.options` file you are looking at.  
I wonder if you have any system properties like `JAVA_OPTIONS` which could "conflicts" but really unsure if this should be the case even if you have such a setting.

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 24, 2017, 2:12pm UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/16 "2017-02-24T14:12:35Z")

</div>

Any tracing/logging options I could enable that would say where/what it's loading?

---

<div class="post-metadata">

**Author:** ![aateeque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aateeque/32/15811_2.png) [@aateeque](https://discuss.elastic.co/u/aateeque)\
**Post date:** [February 27, 2017, 9:24am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/17 "2017-02-27T09:24:39Z")

</div>

@dadoonet any suggestions?

---

<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:** [February 27, 2017, 9:46am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/18 "2017-02-27T09:46:19Z")

</div>

No I don't have any.

May be someone else saw the same error?

---

<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:** [February 27, 2017, 9:46am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/19 "2017-02-27T09:46:29Z")

</div>

No I don't have any.

May be someone else saw the same error?

---

<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:** [March 27, 2017, 9:46am UTC](https://discuss.elastic.co/t/running-1-x-5-x-sxs/76289/20 "2017-03-27T09:46:29Z")

</div>

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