Initial install question

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: CORES
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

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.

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

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.

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??

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