# Initial install question

**URL:** <https://discuss.elastic.co/t/initial-install-question/77152>\
**Category:** Elasticsearch\
**Created:** [March 2, 2017, 2:33pm UTC](https://discuss.elastic.co/t/initial-install-question/77152 "2017-03-02T14:33:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalamar666](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dalamar666](https://discuss.elastic.co/u/dalamar666)\
**Post date:** [March 2, 2017, 2:33pm UTC](https://discuss.elastic.co/t/initial-install-question/77152/1 "2017-03-02T14:33:02Z")

</div>

Hi,

I have been through many documents on how to get elastic search up and running. I cannot get it to connect when I use the ./elasticsearch command. I am using Ubuntu server 16.04 and the latest version of elastic search from the repository.

These are the only settings in my configuration file. I also set the elasticsearch in the service limits.  
[cluster.name](http://cluster.name): CORES  
[node.name](http://node.name): ${HOSTNAME}  
path.conf: /etc/elasticsearch/  
path.data: /var/lib/elasticsearch  
bootstrap.mlockall: true  
network.bind\_host: 127.0.0.1  
network.publish\_host: 10.160.21.65  
network.host: 127.0.0.1  
transport.tcp.port: 9300  
transport.tcp.compress: true  
http.port: 9200

This is the error I receive

[2017-03-02 09:14:47,791][WARN][cluster.service] [ELSNETAPPLP1] failed to reconnect to node [ELSNETAPPLP1][y\_UXxGOOTu2caplOrofa7Q][ELSNETAPPLP1][inet[/10.160.21.65:9300]]  
org.elasticsearch.transport.ConnectTransportException: [ELSNETAPPLP1][inet[/10.160.21.65:9300]] connect\_timeout[30s]  
at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:825)  
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:758)  
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:731)  
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:216)  
at org.elasticsearch.cluster.service.InternalClusterService$ReconnectToNodes.run(InternalClusterService.java:584)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: java.net.ConnectException: Connection refused: /10.160.21.65:9300  
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)  
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)  
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)  
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
... 3 more  
[2017-03-02 09:15:47,829][WARN][cluster.service] [ELSNETAPPLP1] failed to reconnect to node [ELSNETAPPLP1][y\_UXxGOOTu2caplOrofa7Q][ELSNETAPPLP1][inet[/10.160.21.65:9300]]  
org.elasticsearch.transport.ConnectTransportException: [ELSNETAPPLP1][inet[/10.160.21.65:9300]] connect\_timeout[30s]  
at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:825)  
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:758)  
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:731)  
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:216)  
at org.elasticsearch.cluster.service.InternalClusterService$ReconnectToNodes.run(InternalClusterService.java:584)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: java.net.ConnectException: Connection refused: /10.160.21.65:9300  
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)  
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)  
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)  
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)

This error is the only thing in my CORES.log file. The CORES\_index\_search\_showlog.log is empty as well as CORES\_index\_indexing\_slowlog.log

---

<div class="post-metadata">

**Author:** ![dalamar666](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dalamar666](https://discuss.elastic.co/u/dalamar666)\
**Post date:** [March 2, 2017, 8:41pm UTC](https://discuss.elastic.co/t/initial-install-question/77152/2 "2017-03-02T20:41:38Z")

</div>

Something to add in. When I run sudo service elasticsearch status I get:  
● elasticsearch.service - LSB: Starts elasticsearch  
Loaded: loaded (/etc/init.d/elasticsearch; bad; vendor preset: enabled)  
Active: active (exited) since Thu 2017-03-02 15:39:15 EST; 9s ago  
Docs: man:systemd-sysv-generator(8)  
Process: 28953 ExecStop=/etc/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)  
Process: 28987 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0/SUCCESS)

Mar 02 15:39:15 ELSNETAPPLP1 systemd[1]: Starting LSB: Starts elasticsearch...  
Mar 02 15:39:15 ELSNETAPPLP1 systemd[1]: Started LSB: Starts elasticsearch.

However, when I run a ps -A it is not in the list. A netstat -plnt does not show port 9200 or 9300 open and listening.

---

<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:** [March 3, 2017, 4:54am UTC](https://discuss.elastic.co/t/initial-install-question/77152/3 "2017-03-03T04:54:13Z")

</div>

> [@dalamar666](#):
>
> network.bind\_host: 127.0.0.1network.publish\_host: 10.160.21.65

I don't think you can bind to localhost but publish as non-loopback?

---

<div class="post-metadata">

**Author:** ![dalamar666](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dalamar666](https://discuss.elastic.co/u/dalamar666)\
**Post date:** [March 3, 2017, 12:36pm UTC](https://discuss.elastic.co/t/initial-install-question/77152/4 "2017-03-03T12:36:30Z")

</div>

Mark,

I had it set to publish the actual IP because I was under the impression that was the IP that was being sent out to other clients to connect to. I may be wrong though.

---

<div class="post-metadata">

**Author:** ![dalamar666](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dalamar666](https://discuss.elastic.co/u/dalamar666)\
**Post date:** [March 3, 2017, 6:01pm UTC](https://discuss.elastic.co/t/initial-install-question/77152/5 "2017-03-03T18:01:38Z")

</div>

Something interesting I have found. With the information put in, I have it listening and responding on IPV6 but not IPV4.

Any thoughts on how to get it to IPV4??

---

<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 31, 2017, 6:02pm UTC](https://discuss.elastic.co/t/initial-install-question/77152/6 "2017-03-31T18:02:01Z")

</div>

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