# Failed to start elasticsearch

**URL:** <https://discuss.elastic.co/t/failed-to-start-elasticsearch/20681>\
**Category:** Elasticsearch\
**Created:** [November 11, 2014, 8:13am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/20681 "2014-11-11T08:13:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary\_Zhao](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@Gary\_Zhao](https://discuss.elastic.co/u/Gary_Zhao)\
**Post date:** [November 11, 2014, 8:13am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/20681/1 "2014-11-11T08:13:05Z")

</div>

Hello

I'm new to elasticsearch. I succeeded to run it on my Mac, but failed to  
run on Linux (error is as below). Anyone knows why it failed and how to  
solve it? Thanks

$ bin/elasticsearch  
[2014-11-11 08:03:12,313][INFO][node] [Midnight Man]  
version[1.4.0], pid[31913], build[bc94bd8/2014-11-05T14:26:12Z]  
[2014-11-11 08:03:12,313][INFO][node] [Midnight Man]  
initializing ...  
[2014-11-11 08:03:12,318][INFO][plugins] [Midnight Man]  
loaded [], sites []  
[2014-11-11 08:03:15,170][INFO][node] [Midnight Man]  
initialized  
[2014-11-11 08:03:15,170][INFO][node] [Midnight Man]  
starting ...  
[2014-11-11 08:03:15,289][INFO][transport] [Midnight Man]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.20.130.80:9300]}  
[2014-11-11 08:03:15,315][INFO][discovery] [Midnight Man]  
elasticsearch/HcDA15X4SAK8dVw2nJtlmA  
[2014-11-11 08:03:18,351][WARN][discovery.zen] [Midnight Man]  
failed to connect to master  
[[Indech][N\_Q0GXbwS6ePoGhWyyHtkQ][bksrv3][inet[/10.20.42.80:9300]]],  
retrying...  
org.elasticsearch.transport.ConnectTransportException:  
[Indech][inet[/10.20.42.80:9300]] connect\_timeout[30s]  
at  
org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:807)  
at  
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:741)  
at  
org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:714)  
at  
org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:150)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery.joinElectedMaster(ZenDiscovery.java:441)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:393)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery.access$5900(ZenDiscovery.java:80)  
at  
org.elasticsearch.discovery.zen.ZenDiscovery$JoinThreadControl$1.run(ZenDiscovery.java:1314)  
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:745)  
Caused by: java.net.ConnectException: Connection refused: /10.20.42.80:9300  
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)  
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152)  
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

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e7007bc6-fbae-4155-a988-c80cf2060bf4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e7007bc6-fbae-4155-a988-c80cf2060bf4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:50am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/20681/2 "2017-07-06T00:50:53Z")

</div>


