# Getting MasterNotDiscoveredException multiple times

**URL:** <https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401>\
**Category:** Elasticsearch\
**Created:** [February 26, 2015, 5:03am UTC](https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401 "2015-02-26T05:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prachicsa](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@prachicsa](https://discuss.elastic.co/u/prachicsa)\
**Post date:** [February 26, 2015, 5:03am UTC](https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401/1 "2015-02-26T05:03:16Z")

</div>

Hi,

I am getting the following exceptions multiple times. And that makes me  
restart all ES nodes.

Once I do that, everything comes back to normal.

org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [1m]  
at  
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:180)  
at  
org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:492)  
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:724)

Is there some configurations issue or so? There are total 5 nodes, out of  
which for node, I have marked master flag to true.

--  
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/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%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 26, 2015, 6:10am UTC](https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401/2 "2015-02-26T06:10:04Z")

</div>

Are you using multicast or unicast discovery?

On 26 February 2015 at 16:03, [prachicsa@gmail.com](mailto:prachicsa@gmail.com) wrote:

> Hi,
> 
> I am getting the following exceptions multiple times. And that makes me  
> restart all ES nodes.
> 
> Once I do that, everything comes back to normal.
> 
> org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [1m]  
> at  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:180)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:492)  
> 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:724)
> 
> Is there some configurations issue or so? There are total 5 nodes, out of  
> which for node, I have marked master flag to true.
> 
> --  
> 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/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%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/CAEYi1X9xP9USP3SjL\_Z9ceoJ\_k9g2yTXOL9NncnkVnWxyEqKOQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9xP9USP3SjL_Z9ceoJ_k9g2yTXOL9NncnkVnWxyEqKOQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![prachicsa](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@prachicsa](https://discuss.elastic.co/u/prachicsa)\
**Post date:** [February 26, 2015, 6:43am UTC](https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401/3 "2015-02-26T06:43:49Z")

</div>

I am using unicast discovery.

On Thursday, February 26, 2015 at 11:40:36 AM UTC+5:30, Mark Walkom wrote:

> Are you using multicast or unicast discovery?
> 
> On 26 February 2015 at 16:03, \<[prac...@gmail.com](mailto:prac...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > I am getting the following exceptions multiple times. And that makes me  
> > restart all ES nodes.
> > 
> > Once I do that, everything comes back to normal.
> > 
> > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [1m]  
> > at  
> > org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(TransportMasterNodeOperationAction.java:180)  
> > at  
> > org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:492)  
> > 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:724)
> > 
> > Is there some configurations issue or so? There are total 5 nodes, out of  
> > which for node, I have marked master flag to true.
> > 
> > --  
> > 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](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%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/764584cb-d63f-49d8-ab27-5f7b7faff12d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/764584cb-d63f-49d8-ab27-5f7b7faff12d%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 26, 2015, 9:51pm UTC](https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401/4 "2015-02-26T21:51:53Z")

</div>

Is this a continual pattern or a one time issue across multiple nodes?

On 26 February 2015 at 17:43, [prachicsa@gmail.com](mailto:prachicsa@gmail.com) wrote:

> I am using unicast discovery.
> 
> On Thursday, February 26, 2015 at 11:40:36 AM UTC+5:30, Mark Walkom wrote:
> 
> > Are you using multicast or unicast discovery?
> > 
> > On 26 February 2015 at 16:03, [prac...@gmail.com](mailto:prac...@gmail.com) wrote:
> > 
> > > Hi,
> > > 
> > > I am getting the following exceptions multiple times. And that makes me  
> > > restart all ES nodes.
> > > 
> > > Once I do that, everything comes back to normal.
> > > 
> > > org.elasticsearch.discovery.MasterNotDiscoveredException: waited for  
> > > [1m]  
> > > at org.elasticsearch.action.support.master.  
> > > TransportMasterNodeOperationAction$3.onTimeout(  
> > > TransportMasterNodeOperationAction.java:180)  
> > > at org.elasticsearch.cluster.service.InternalClusterService$  
> > > NotifyTimeout.run(InternalClusterService.java:492)  
> > > 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:724)
> > > 
> > > Is there some configurations issue or so? There are total 5 nodes, out  
> > > of which for node, I have marked master flag to true.
> > > 
> > > --  
> > > 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](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e3428482-c966-45ef-951a-f16083e73ce4%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/764584cb-d63f-49d8-ab27-5f7b7faff12d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/764584cb-d63f-49d8-ab27-5f7b7faff12d%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/764584cb-d63f-49d8-ab27-5f7b7faff12d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/764584cb-d63f-49d8-ab27-5f7b7faff12d%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\_saE\_m72mFFwnCYrJUU3AkEu4cTF%2Bvvi75TZf2AGQyHQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_saE_m72mFFwnCYrJUU3AkEu4cTF%2Bvvi75TZf2AGQyHQ%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:29am UTC](https://discuss.elastic.co/t/getting-masternotdiscoveredexception-multiple-times/22401/5 "2017-07-06T00:29:46Z")

</div>


