# New Master not found

**URL:** <https://discuss.elastic.co/t/new-master-not-found/12254>\
**Category:** Elasticsearch\
**Created:** [June 4, 2013, 10:37am UTC](https://discuss.elastic.co/t/new-master-not-found/12254 "2013-06-04T10:37:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james\_lewis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_lewis/32/2296_2.png) [@james\_lewis](https://discuss.elastic.co/u/james_lewis)\
**Post date:** [June 4, 2013, 10:37am UTC](https://discuss.elastic.co/t/new-master-not-found/12254/1 "2013-06-04T10:37:20Z")

</div>

Hey guys,

Came in this morning to find our cluster returning 503s. I've been going  
over the logs to find out what happened and there's something funny  
happening I'd like some input on. Here's a bit of a time line to give you  
context (our nodes are called ROUTER0X and DATA0X):

- 7:21, Router00 elasticsearch service is restarted (we don't know why  
these restarts happened yet)
- 7:21, Router00 is removed from cluster
- 7:21, Router00 elasticsearch service starts back up again and sees  
Router01 as the master
- 7:21, Data03 elasticsearch service is restarted
- 7:21, Data03 is removed from cluster
- 7:21, Data03 elasticsearch service starts back up again and sees  
Router01 as the master
- 7:21, Data00 elasticsearch service is restarted
- 7:21, Data00 is removed from cluster
- 7:21, Data00 elasticsearch service starts back up again and sees  
Router01 as the master
- 7:21, Data01 elasticsearch service is restarted
- 7:21, Data01 is removed from cluster
- 7:21, Data01 elasticsearch service starts back up again and sees  
Router01 as the master
- 7:25, Data02 elasticsearch service is restarted
- 7:25, Router01 elasticsearch service is restarted
- 7:25, Data03 is selected as new master

At this point we get into the funny state - Data02 thinks Router01 is the  
master and fails to connect. Router00 sees Data03 as the master but then  
almost immediately afterwards it sees Router01 as the master. Eventually  
all nodes start trying to connect to Router01 as the master but fail - this  
continues for an hour until we figure it out and restart the whole cluster.

This is the log from router00 from 7:25[https://gist.github.com/getsometoast/5705025](https://gist.github.com/getsometoast/5705025)  
This is the log for Data03 for same period[https://gist.github.com/getsometoast/5705034](https://gist.github.com/getsometoast/5705034)  
And for router01 [https://gist.github.com/getsometoast/5705039](https://gist.github.com/getsometoast/5705039)

The other nodes have a similar loop of failing to send the join request to  
the master. BTW this is a 6 node cluster with min master set to 4. It  
almost looks like the nodes have a cached connection to the master but it  
never gets flushed after a new master is chosen...

Any insights greatly appreciated.

Regards,  
James

## --

This email, including attachments, is private and confidential. If you have  
received this email in error please notify the sender and delete it from  
your system. Emails are not secure and may contain viruses. No liability  
can be accepted for viruses that might be transferred by this email or any  
attachment. Any unauthorised copying of this message or unauthorised  
distribution and publication of the information contained herein are  
prohibited. 7digital Limited. Registered office: Unit F, Lower Ground  
Floor, 5-25 Scrutton Street, Zetland House London EC2A 4HJ. Registered in  
England and Wales. Registered No. 04843573.

--  
_"Please note new office address from June 10th 2013: 69 Wilson Street,  
London EC2A 2BB"_

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:33am UTC](https://discuss.elastic.co/t/new-master-not-found/12254/2 "2017-07-06T02:33:05Z")

</div>


