# ECE Setup - Failed to detect that a master was elected

**URL:** <https://discuss.elastic.co/t/ece-setup-failed-to-detect-that-a-master-was-elected/280041>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [July 30, 2021, 7:27am UTC](https://discuss.elastic.co/t/ece-setup-failed-to-detect-that-a-master-was-elected/280041 "2021-07-30T07:27:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)\
**Post date:** [July 30, 2021, 7:27am UTC](https://discuss.elastic.co/t/ece-setup-failed-to-detect-that-a-master-was-elected/280041/1 "2021-07-30T07:27:05Z")

</div>

Hi Elastic Team,

We have setup ECE, trying to move default clusters to Allocators.  
We are getting following error while moving the cluster from primary node.

```auto
Plan change failed: [ClusterFailure:MasterNotDetectedInTime]: Failed to detect that a master was elected. Check thee health of the cluster, and look at the instance logs to determine if there were any issues with cluster formation or leadership election. Details: [{"details":"The state did not become the desired one before [5 minutes] elapsed. Last error was: [Instance [instance-0000000004] has no master.]"}]

```

Looks like it is Port issue, kindly help to find out the correct port or address the issue.

Regards  
Kishore Uppala

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [July 30, 2021, 2:10pm UTC](https://discuss.elastic.co/t/ece-setup-failed-to-detect-that-a-master-was-elected/280041/2 "2021-07-30T14:10:47Z")

</div>

The ES logs will list the ports that are failing to connect, you can check that against your iptables etc

---

<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:** [August 13, 2021, 2:11pm UTC](https://discuss.elastic.co/t/ece-setup-failed-to-detect-that-a-master-was-elected/280041/3 "2021-08-13T14:11:00Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
