Like I do every morning, I started my local elasticsearch server but
today it throws and error and it is impossible to connect to it:
$ bin/elasticsearch -f
[2011-08-10 09:32:49,791][INFO ][node ]
[Battletide] {elasticsearch/0.17.3}[4017]: initializing ...
[2011-08-10 09:32:49,798][INFO ][plugins ]
[Battletide] loaded [], sites []
[2011-08-10 09:32:51,718][INFO ][node ]
[Battletide] {elasticsearch/0.17.3}[4017]: initialized
[2011-08-10 09:32:51,718][INFO ][node ]
[Battletide] {elasticsearch/0.17.3}[4017]: starting ...
[2011-08-10 09:32:51,808][INFO ][transport ]
[Battletide] bound_address {inet[/0.0.0.0:9300]}, publish_address
{inet[/192.168.1.113:9300]}
[2011-08-10 09:33:21,935][WARN ][discovery ]
[Battletide] waited for 30s and no initial state was set by the
discovery
[2011-08-10 09:33:21,936][INFO ][discovery ]
[Battletide] elasticsearch/I14Q2RtrSN2XE9hS-LVxLQ
[2011-08-10 09:33:22,164][INFO ][http ]
[Battletide] bound_address {inet[/0.0.0.0:9200]}, publish_address
{inet[/192.168.1.113:9200]}
[2011-08-10 09:33:22,165][INFO ][node ]
[Battletide] {elasticsearch/0.17.3}[4017]: started
[2011-08-10 09:33:24,991][WARN ][discovery.zen ]
[Battletide] failed to connect to master [[Bastion][5S439--
dRIK8ELlKvBxbXg][inet[/192.168.2.101:9300]]], retrying...
org.elasticsearch.transport.ConnectTransportException: [Bastion][inet[/
192.168.2.101:9300]] connect_timeout[30s]
at
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:
562)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:
505)
at
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:
484)
at
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:
121)
at
org.elasticsearch.discovery.zen.ZenDiscovery.innterJoinCluster(ZenDiscovery.java:
283)
at org.elasticsearch.discovery.zen.ZenDiscovery.access
$500(ZenDiscovery.java:69)
at org.elasticsearch.discovery.zen.ZenDiscovery
$1.run(ZenDiscovery.java:239)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.net.ConnectException: connection timed out
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink
$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:371)
at
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink
$Boss.run(NioClientSocketPipelineSink.java:283)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:
108)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker
$1.run(DeadLockProofWorker.java:44)
... 3 more
If I try to connect through the API it says:
Response: 500 Internal Server Error
{"error":"MasterNotDiscoveredException[]","status":500}
12 hours ago it was working perfectly. I am using elasticsearch
0.17.3. What has happened? I have tried upgrading to elasticsearch
0.17.4 in case it was a bug or something, but no luck. What can I do
to solve it? Thanks!