# Connection problem to elasticsearch

**URL:** https://discuss.elastic.co/t/connection-problem-to-elasticsearch/22243
**Category:** Elasticsearch
**Created:** [February 18, 2015, 5:57pm UTC](https://discuss.elastic.co/t/connection-problem-to-elasticsearch/22243 "2015-02-18T17:57:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ali\_Lotfdar](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Ali\_Lotfdar](https://discuss.elastic.co/u/Ali_Lotfdar)
#### Post date: [February 18, 2015, 5:57pm UTC](https://discuss.elastic.co/t/connection-problem-to-elasticsearch/22243/1 "2015-02-18T17:57:44Z")

</div>

Hello All,

I am completely confused in managing and connection elasticsearch. Thanks a  
lot to help me solve my problem.

-I started to create some Index inside ElasticSearch but even when I delete  
them they return! I found that it is because they are still available in  
other nodes! Thanks to let me know how i can delete the completely?  
-Also I have to open two nodes to be able to work with ElasticSearch  
otherwise I encounter with 'no known master node '!  
-When I had a problem and I close a node, nothing will work till I restart  
my computer!  
-Also all my index status are red!

I just explain the status to inform you about the condition. Thank you to  
help me to get rid of this dilemma!

Just please consider that I am new user of Elasticsearch and apologize for  
such question!

[2015-02-18 12:44:59,846][INFO][node] [Helleyes]  
version[1.4.2], pid[483], build[927caff/2014-12-16T14:11:12Z]

[2015-02-18 12:44:59,847][INFO][node] [Helleyes]  
initializing ...

[2015-02-18 12:44:59,861][INFO][plugins] [Helleyes]  
loaded [marvel], sites [marvel]

[2015-02-18 12:45:02,745][INFO][node] [Helleyes]  
initialized

[2015-02-18 12:45:02,746][INFO][node] [Helleyes]  
starting ...

[2015-02-18 12:45:02,811][INFO][transport] [Helleyes]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9305]}, publish\_address  
{inet[/192.168.110.133:9305]}

[2015-02-18 12:45:02,827][INFO][discovery] [Helleyes]  
elasticsearch/boK22-mkRPGMo-1TSnXhZw

[2015-02-18 12:45:06,599][INFO][cluster.service] [Helleyes]  
new\_master  
[Helleyes][boK22-mkRPGMo-1TSnXhZw][webdev99s-Mac-mini.local][inet[/192.168.110.133:9305]],  
reason: zen-disco-join (elected\_as\_master)

[2015-02-18 12:45:06,708][INFO][http] [Helleyes]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9205]}, publish\_address  
{inet[/192.168.110.133:9205]}

[2015-02-18 12:45:06,709][INFO][node] [Helleyes]  
started

[2015-02-18 12:45:07,594][INFO][discovery.zen] [Helleyes]  
updating discovery.zen.minimum\_master\_nodes from [-1] to [2]

[2015-02-18 12:45:07,710][INFO][gateway] [Helleyes]  
recovered [23] indices into cluster\_state

[2015-02-18 12:45:07,711][WARN][discovery.zen] [Helleyes] not  
enough master nodes on change of minimum\_master\_nodes from [-1] to [2],  
current nodes:  
{[Helleyes][boK22-mkRPGMo-1TSnXhZw][webdev99s-Mac-mini.local][inet[/192.168.110.133:9305]],}

[2015-02-18 12:45:07,719][ERROR][cluster.action.shard] [Helleyes]  
unexpected failure during [shard-started ([logstash-2015.02.05][0],  
node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
from gateway]]

org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: no  
longer master. source: [shard-started ([logstash-2015.02.05][0],  
node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
from gateway]]

at  
org.elasticsearch.cluster.ClusterStateUpdateTask.onNoLongerMaster(ClusterStateUpdateTask.java:53)

at  
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:324)

at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)

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)

[2015-02-18 12:45:07,722][ERROR][cluster.action.shard] [Helleyes]  
unexpected failure during [shard-started ([test3][2],  
node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
from gateway]]

org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: no  
longer master. source: [shard-started ([test3][2],  
node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
from gateway]]

at  
org.elasticsearch.cluster.ClusterStateUpdateTask.onNoLongerMaster(ClusterStateUpdateTask.java:53)

at  
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:324)

at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)

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)

[2015-02-18 12:45:08,302][WARN][cluster.action.shard] [Helleyes]  
can't send shard started for [.marvel-2015.02.13][0],  
node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]. no master known.

[2015-02-18 12:45:10,771][WARN][cluster.action.shard] [Helleyes]  
can't send shard started for [.marvel-2015.02.18][0],  
node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]. no master known.

[2015-02-18 12:45:12,808][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:45:42,811][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:45:42,832][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:46:12,833][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:46:12,841][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:46:12,842][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:46:12,842][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:46:12,844][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:46:42,845][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:46:42,853][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:47:12,854][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:47:12,858][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:47:12,858][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:47:12,859][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:47:22,871][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:47:52,872][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:47:52,878][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:48:22,879][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:48:22,881][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:48:22,881][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:48:22,881][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:48:32,892][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:49:02,893][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:49:02,899][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:49:32,900][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:49:32,903][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:49:32,904][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:49:32,904][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:49:42,916][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:50:12,918][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:50:12,924][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:50:42,925][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:50:42,929][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:50:42,929][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:50:42,929][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:50:52,940][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:51:22,941][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:51:22,951][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:51:52,952][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:51:52,956][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:51:52,956][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:51:52,956][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:52:02,968][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:52:32,969][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:52:32,976][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:53:02,976][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:53:02,979][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:53:02,979][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:53:02,979][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:53:12,992][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:53:42,993][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:53:42,998][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:54:13,000][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:54:13,004][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:54:13,004][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:54:13,005][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:54:23,017][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:54:53,018][DEBUG][action.admin.indices.template.get]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:54:53,025][DEBUG][action.admin.indices.template.put]  
[Helleyes] no known master node, scheduling a retry

[2015-02-18 12:55:23,026][DEBUG][action.admin.indices.template.put]  
[Helleyes] observer: timeout notification from cluster service. timeout  
setting [30s], time since start [30s]

[2015-02-18 12:55:23,029][ERROR][marvel.agent.exporter] [Helleyes]  
error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
[503 Service Unavailable]. content:  
[{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]

[2015-02-18 12:55:23,029][ERROR][marvel.agent.exporter] [Helleyes]  
failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:

Server returned HTTP response code: 503 for URL:  
http://[0:0:0:0:0:0:0:0]:9205/\_template/marvel

[2015-02-18 12:55:23,029][ERROR][marvel.agent.exporter] [Helleyes]  
could not connect to any configured elasticsearch instances:  
[[0:0:0:0:0:0:0:0]:9205]

[2015-02-18 12:55:33,041][DEBUG][action.admin.indices.template.get]  
[Helleyes] no known master node, scheduling a retry

Regards,  
Ali

--  
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/c51223bc-53c2-4d08-9c3e-c401ac8609bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c51223bc-53c2-4d08-9c3e-c401ac8609bf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [February 18, 2015, 11:45pm UTC](https://discuss.elastic.co/t/connection-problem-to-elasticsearch/22243/2 "2015-02-18T23:45:53Z")

</div>

I  
​t'd help if you could provide your config, but it's best not to paste  
large amounts of logs or config to the list, just use gist/pastebin/etc and  
then give us a link.

However it looks like you have \*discovery.zen.minimum\_master\_\*_nodes: 2_,  
so unless you have two nodes then your single node will never be available.  
You should set that to 1 if you are just playing with ES locally.​

On 19 February 2015 at 04:57, Ali Lotfdar [ali.lotfdar58@gmail.com](mailto:ali.lotfdar58@gmail.com) wrote:

> Hello All,
> 
> I am completely confused in managing and connection elasticsearch. Thanks  
> a lot to help me solve my problem.
> 
> -I started to create some Index inside Elasticsearch but even when I  
> delete them they return! I found that it is because they are still  
> available in other nodes! Thanks to let me know how i can delete the  
> completely?  
> -Also I have to open two nodes to be able to work with Elasticsearch  
> otherwise I encounter with 'no known master node '!  
> -When I had a problem and I close a node, nothing will work till I restart  
> my computer!  
> -Also all my index status are red!
> 
> I just explain the status to inform you about the condition. Thank you to  
> help me to get rid of this dilemma!
> 
> Just please consider that I am new user of Elasticsearch and apologize for  
> such question!
> 
> [2015-02-18 12:44:59,846][INFO][node] [Helleyes]  
> version[1.4.2], pid[483], build[927caff/2014-12-16T14:11:12Z]
> 
> [2015-02-18 12:44:59,847][INFO][node] [Helleyes]  
> initializing ...
> 
> [2015-02-18 12:44:59,861][INFO][plugins] [Helleyes]  
> loaded [marvel], sites [marvel]
> 
> [2015-02-18 12:45:02,745][INFO][node] [Helleyes]  
> initialized
> 
> [2015-02-18 12:45:02,746][INFO][node] [Helleyes]  
> starting ...
> 
> [2015-02-18 12:45:02,811][INFO][transport] [Helleyes]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9305]}, publish\_address {inet[/  
> 192.168.110.133:9305]}
> 
> [2015-02-18 12:45:02,827][INFO][discovery] [Helleyes]  
> elasticsearch/boK22-mkRPGMo-1TSnXhZw
> 
> [2015-02-18 12:45:06,599][INFO][cluster.service] [Helleyes]  
> new\_master  
> [Helleyes][boK22-mkRPGMo-1TSnXhZw][webdev99s-Mac-mini.local][inet[/192.168.110.133:9305]],  
> reason: zen-disco-join (elected\_as\_master)
> 
> [2015-02-18 12:45:06,708][INFO][http] [Helleyes]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9205]}, publish\_address {inet[/  
> 192.168.110.133:9205]}
> 
> [2015-02-18 12:45:06,709][INFO][node] [Helleyes]  
> started
> 
> [2015-02-18 12:45:07,594][INFO][discovery.zen] [Helleyes]  
> updating discovery.zen.minimum\_master\_nodes from [-1] to [2]
> 
> [2015-02-18 12:45:07,710][INFO][gateway] [Helleyes]  
> recovered [23] indices into cluster\_state
> 
> [2015-02-18 12:45:07,711][WARN][discovery.zen] [Helleyes] not  
> enough master nodes on change of minimum\_master\_nodes from [-1] to [2],  
> current nodes:  
> {[Helleyes][boK22-mkRPGMo-1TSnXhZw][webdev99s-Mac-mini.local][inet[/192.168.110.133:9305  
> ]],}
> 
> [2015-02-18 12:45:07,719][ERROR][cluster.action.shard] [Helleyes]  
> unexpected failure during [shard-started ([logstash-2015.02.05][0],  
> node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
> from gateway]]
> 
> org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: no  
> longer master. source: [shard-started ([logstash-2015.02.05][0],  
> node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
> from gateway]]
> 
> at  
> org.elasticsearch.cluster.ClusterStateUpdateTask.onNoLongerMaster(ClusterStateUpdateTask.java:53)
> 
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:324)
> 
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)
> 
> 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)
> 
> [2015-02-18 12:45:07,722][ERROR][cluster.action.shard] [Helleyes]  
> unexpected failure during [shard-started ([test3][2],  
> node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
> from gateway]]
> 
> org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: no  
> longer master. source: [shard-started ([test3][2],  
> node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]), reason [after recovery  
> from gateway]]
> 
> at  
> org.elasticsearch.cluster.ClusterStateUpdateTask.onNoLongerMaster(ClusterStateUpdateTask.java:53)
> 
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:324)
> 
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)
> 
> 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)
> 
> [2015-02-18 12:45:08,302][WARN][cluster.action.shard] [Helleyes]  
> can't send shard started for [.marvel-2015.02.13][0],  
> node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]. no master known.
> 
> [2015-02-18 12:45:10,771][WARN][cluster.action.shard] [Helleyes]  
> can't send shard started for [.marvel-2015.02.18][0],  
> node[boK22-mkRPGMo-1TSnXhZw], [P], s[INITIALIZING]. no master known.
> 
> [2015-02-18 12:45:12,808][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:45:42,811][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:45:42,832][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:46:12,833][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:46:12,841][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:46:12,842][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:46:12,842][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:46:12,844][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:46:42,845][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:46:42,853][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:47:12,854][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:47:12,858][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:47:12,858][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:47:12,859][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:47:22,871][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:47:52,872][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:47:52,878][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:48:22,879][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:48:22,881][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:48:22,881][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:48:22,881][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:48:32,892][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:49:02,893][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:49:02,899][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:49:32,900][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:49:32,903][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:49:32,904][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:49:32,904][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:49:42,916][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:50:12,918][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:50:12,924][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:50:42,925][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:50:42,929][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:50:42,929][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:50:42,929][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:50:52,940][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:51:22,941][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:51:22,951][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:51:52,952][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:51:52,956][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:51:52,956][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:51:52,956][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:52:02,968][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:52:32,969][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:52:32,976][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:53:02,976][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:53:02,979][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:53:02,979][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:53:02,979][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:53:12,992][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:53:42,993][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:53:42,998][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:54:13,000][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:54:13,004][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:54:13,004][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:54:13,005][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:54:23,017][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:54:53,018][DEBUG][action.admin.indices.template.get]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:54:53,025][DEBUG][action.admin.indices.template.put]  
> [Helleyes] no known master node, scheduling a retry
> 
> [2015-02-18 12:55:23,026][DEBUG][action.admin.indices.template.put]  
> [Helleyes] observer: timeout notification from cluster service. timeout  
> setting [30s], time since start [30s]
> 
> [2015-02-18 12:55:23,029][ERROR][marvel.agent.exporter] [Helleyes]  
> error adding the marvel template to [[0:0:0:0:0:0:0:0]:9205] response code  
> [503 Service Unavailable]. content:  
> [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
> 
> [2015-02-18 12:55:23,029][ERROR][marvel.agent.exporter] [Helleyes]  
> failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9205]:
> 
> Server returned HTTP response code: 503 for URL: http://  
> [0:0:0:0:0:0:0:0]:9205/\_template/marvel
> 
> [2015-02-18 12:55:23,029][ERROR][marvel.agent.exporter] [Helleyes]  
> could not connect to any configured elasticsearch instances:  
> [[0:0:0:0:0:0:0:0]:9205]
> 
> [2015-02-18 12:55:33,041][DEBUG][action.admin.indices.template.get]  
> [Helleyes] no known master node, scheduling a retry
> 
> Regards,  
> Ali
> 
> --  
> 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/c51223bc-53c2-4d08-9c3e-c401ac8609bf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c51223bc-53c2-4d08-9c3e-c401ac8609bf%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/c51223bc-53c2-4d08-9c3e-c401ac8609bf%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c51223bc-53c2-4d08-9c3e-c401ac8609bf%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X\_kVcTtHLBofdZ6eyx5r8tDS5oGnqTaRVASgK1yPn19dg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_kVcTtHLBofdZ6eyx5r8tDS5oGnqTaRVASgK1yPn19dg%40mail.gmail.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:31am UTC](https://discuss.elastic.co/t/connection-problem-to-elasticsearch/22243/3 "2017-07-06T00:31:44Z")

</div>


