Getting connection timeouts when trying to start ES on OS X


(Steve-5) #1

When trying to run Elasticsearch on OSX 10.9 and 10.8.5 I receive the
following timeout errors. I looked at which ports are in use and 9300 is
not used. Does anyone know what I'm doing wrong? Do I need to configure
something?

Steve

$ bin/elasticsearch -f

[2013-11-14 10:18:02,530][INFO ][node ] [Night Rider]
version[0.90.7], pid[35183], build[36897d0/2013-11-13T12:06:54Z]

[2013-11-14 10:18:02,530][INFO ][node ] [Night Rider]
initializing ...

[2013-11-14 10:18:02,537][INFO ][plugins ] [Night Rider]
loaded [], sites []

[2013-11-14 10:18:04,414][INFO ][node ] [Night Rider]
initialized

[2013-11-14 10:18:04,414][INFO ][node ] [Night Rider]
starting ...

[2013-11-14 10:18:04,497][INFO ][transport ] [Night Rider]
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address
{inet[/192.168.0.182:9300]}

[2013-11-14 10:18:34,508][WARN ][discovery ] [Night Rider]
waited for 30s and no initial state was set by the discovery

[2013-11-14 10:18:34,508][INFO ][discovery ] [Night Rider]
elasticsearch/kR-viw0-TzGKDhS7gw4b8w

[2013-11-14 10:18:34,513][INFO ][http ] [Night Rider]
bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address
{inet[/192.168.0.182:9200]}

[2013-11-14 10:18:34,513][INFO ][node ] [Night Rider]
started

[2013-11-14 10:18:37,571][WARN ][discovery.zen ] [Night Rider]
failed to connect to master
[[Karma][QJCZeQwVRjCX70x5VfxsuA][inet[/192.168.0.197:9300]]], retrying...

org.elasticsearch.transport.ConnectTransportException:
[Karma][inet[/192.168.0.197:9300]] connect_timeout[30s]

at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:693)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:622)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:590)

at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)

at
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:335)

at
org.elasticsearch.discovery.zen.ZenDiscovery.access$500(ZenDiscovery.java:76)

at org.elasticsearch.discovery.zen.ZenDiscovery$1.run(ZenDiscovery.java:283)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by: org.elasticsearch.common.netty.channel.ConnectTimeoutException:
connection timed out: /192.168.0.197:9300

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)

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

[2013-11-14 10:19:10,613][WARN ][discovery.zen ] [Night Rider]
failed to connect to master
[[Karma][QJCZeQwVRjCX70x5VfxsuA][inet[/192.168.0.197:9300]]], retrying...

org.elasticsearch.transport.ConnectTransportException:
[Karma][inet[/192.168.0.197:9300]] connect_timeout[30s]

at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:693)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:622)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:590)

at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)

at
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:335)

at
org.elasticsearch.discovery.zen.ZenDiscovery.access$500(ZenDiscovery.java:76)

at org.elasticsearch.discovery.zen.ZenDiscovery$1.run(ZenDiscovery.java:283)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by: org.elasticsearch.common.netty.channel.ConnectTimeoutException:
connection timed out: /192.168.0.197:9300

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)

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

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #2

Hey,

why are there two different IP addresses in your log? 192.168.0.182 and
192.168.0.197? Do those try to communicate somehow and cant?
Apart from that the startup of your node looks ok. Can you open
http://192.168.0.182/ with a browser and get back a neat JSON reply?

--Alex

On Thu, Nov 14, 2013 at 7:29 PM, Steve smclurkin@gmail.com wrote:

When trying to run Elasticsearch on OSX 10.9 and 10.8.5 I receive the
following timeout errors. I looked at which ports are in use and 9300 is
not used. Does anyone know what I'm doing wrong? Do I need to configure
something?

Steve

$ bin/elasticsearch -f

[2013-11-14 10:18:02,530][INFO ][node ] [Night Rider]
version[0.90.7], pid[35183], build[36897d0/2013-11-13T12:06:54Z]

[2013-11-14 10:18:02,530][INFO ][node ] [Night Rider]
initializing ...

[2013-11-14 10:18:02,537][INFO ][plugins ] [Night Rider]
loaded [], sites []

[2013-11-14 10:18:04,414][INFO ][node ] [Night Rider]
initialized

[2013-11-14 10:18:04,414][INFO ][node ] [Night Rider]
starting ...

[2013-11-14 10:18:04,497][INFO ][transport ] [Night Rider]
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
192.168.0.182:9300]}

[2013-11-14 10:18:34,508][WARN ][discovery ] [Night Rider]
waited for 30s and no initial state was set by the discovery

[2013-11-14 10:18:34,508][INFO ][discovery ] [Night Rider]
elasticsearch/kR-viw0-TzGKDhS7gw4b8w

[2013-11-14 10:18:34,513][INFO ][http ] [Night Rider]
bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/
192.168.0.182:9200]}

[2013-11-14 10:18:34,513][INFO ][node ] [Night Rider]
started

[2013-11-14 10:18:37,571][WARN ][discovery.zen ] [Night Rider]
failed to connect to master
[[Karma][QJCZeQwVRjCX70x5VfxsuA][inet[/192.168.0.197:9300]]], retrying...

org.elasticsearch.transport.ConnectTransportException: [Karma][inet[/
192.168.0.197:9300]] connect_timeout[30s]

at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:693)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:622)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:590)

at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)

at
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:335)

at
org.elasticsearch.discovery.zen.ZenDiscovery.access$500(ZenDiscovery.java:76)

at
org.elasticsearch.discovery.zen.ZenDiscovery$1.run(ZenDiscovery.java:283)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by: org.elasticsearch.common.netty.channel.ConnectTimeoutException:
connection timed out: /192.168.0.197:9300

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)

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

[2013-11-14 10:19:10,613][WARN ][discovery.zen ] [Night Rider]
failed to connect to master
[[Karma][QJCZeQwVRjCX70x5VfxsuA][inet[/192.168.0.197:9300]]], retrying...

org.elasticsearch.transport.ConnectTransportException: [Karma][inet[/
192.168.0.197:9300]] connect_timeout[30s]

at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:693)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:622)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:590)

at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)

at
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:335)

at
org.elasticsearch.discovery.zen.ZenDiscovery.access$500(ZenDiscovery.java:76)

at
org.elasticsearch.discovery.zen.ZenDiscovery$1.run(ZenDiscovery.java:283)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by: org.elasticsearch.common.netty.channel.ConnectTimeoutException:
connection timed out: /192.168.0.197:9300

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)

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

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Steve-5) #3

Thanks Alex,

I didn't even noticed the two IP addresses. The issues was that I was
running VirtualBox on my Mac with a Bridged Adapter so I had two IP
Addresses.

Steve

On Thursday, November 14, 2013 1:28:53 PM UTC-8, Alexander Reelsen wrote:

Hey,

why are there two different IP addresses in your log? 192.168.0.182 and
192.168.0.197? Do those try to communicate somehow and cant?
Apart from that the startup of your node looks ok. Can you open
http://192.168.0.182/ with a browser and get back a neat JSON reply?

--Alex

On Thu, Nov 14, 2013 at 7:29 PM, Steve <smcl...@gmail.com <javascript:>>wrote:

When trying to run Elasticsearch on OSX 10.9 and 10.8.5 I receive the
following timeout errors. I looked at which ports are in use and 9300 is
not used. Does anyone know what I'm doing wrong? Do I need to configure
something?

Steve

$ bin/elasticsearch -f

[2013-11-14 10:18:02,530][INFO ][node ] [Night Rider]
version[0.90.7], pid[35183], build[36897d0/2013-11-13T12:06:54Z]

[2013-11-14 10:18:02,530][INFO ][node ] [Night Rider]
initializing ...

[2013-11-14 10:18:02,537][INFO ][plugins ] [Night Rider]
loaded [], sites []

[2013-11-14 10:18:04,414][INFO ][node ] [Night Rider]
initialized

[2013-11-14 10:18:04,414][INFO ][node ] [Night Rider]
starting ...

[2013-11-14 10:18:04,497][INFO ][transport ] [Night Rider]
bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
192.168.0.182:9300]}

[2013-11-14 10:18:34,508][WARN ][discovery ] [Night Rider]
waited for 30s and no initial state was set by the discovery

[2013-11-14 10:18:34,508][INFO ][discovery ] [Night Rider]
elasticsearch/kR-viw0-TzGKDhS7gw4b8w

[2013-11-14 10:18:34,513][INFO ][http ] [Night Rider]
bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/
192.168.0.182:9200]}

[2013-11-14 10:18:34,513][INFO ][node ] [Night Rider]
started

[2013-11-14 10:18:37,571][WARN ][discovery.zen ] [Night Rider]
failed to connect to master
[[Karma][QJCZeQwVRjCX70x5VfxsuA][inet[/192.168.0.197:9300]]], retrying...

org.elasticsearch.transport.ConnectTransportException: [Karma][inet[/
192.168.0.197:9300]] connect_timeout[30s]

at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:693)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:622)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:590)

at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)

at
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:335)

at
org.elasticsearch.discovery.zen.ZenDiscovery.access$500(ZenDiscovery.java:76)

at
org.elasticsearch.discovery.zen.ZenDiscovery$1.run(ZenDiscovery.java:283)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by:
org.elasticsearch.common.netty.channel.ConnectTimeoutException: connection
timed out: /192.168.0.197:9300

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)

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

[2013-11-14 10:19:10,613][WARN ][discovery.zen ] [Night Rider]
failed to connect to master
[[Karma][QJCZeQwVRjCX70x5VfxsuA][inet[/192.168.0.197:9300]]], retrying...

org.elasticsearch.transport.ConnectTransportException: [Karma][inet[/
192.168.0.197:9300]] connect_timeout[30s]

at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:693)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:622)

at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:590)

at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:129)

at
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:335)

at
org.elasticsearch.discovery.zen.ZenDiscovery.access$500(ZenDiscovery.java:76)

at
org.elasticsearch.discovery.zen.ZenDiscovery$1.run(ZenDiscovery.java:283)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by:
org.elasticsearch.common.netty.channel.ConnectTimeoutException: connection
timed out: /192.168.0.197:9300

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)

at
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)

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

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4