# o.e.c.c.ClusterFormationFailureHelper\] \[Master-node\] master not discovered or elected yet, an election requires a node with id \[Y11KbKB-SX2HIYM77Z1Zqg\], have discovered

**URL:** <https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829>\
**Category:** Elasticsearch\
**Created:** [January 6, 2020, 5:00am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829 "2020-01-06T05:00:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [January 6, 2020, 5:00am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/1 "2020-01-06T05:00:23Z")

</div>

Hello,

I am trying to form a 3 node ES cluster but i am getting a above mentioned error.  
I have one master node and 2 data nodes.

My ES configurations are as follows:

```
    **For master node:**
    cluster.name: InTouch
    cluster.remote.connect: false
    network.host: ServerA
    transport.host: ServerA
    transport.tcp.port: 9300-9400
    node.name: Master-node
    node.master: true
    node.data: false
    node.ingest: true
    discovery.zen.ping.unicast.hosts: [ServerA, ServerB,ServerC]
    cluster.initial_master_nodes: ["Master-node","Data-node1"]
    discovery.zen.minimum_master_nodes: 2
    bootstrap.memory_lock: true
    network.bind_host: *local*
    path.data: /elasticsearch/data/
    path.logs: /var/log/elasticsearch/
    path.repo: /elasticsearch/repo/

**For Data node 1** :
cluster.name: InTouch
node.name: Data-node1
node.master: true
node.data: true
node.ingest: false
network.host: ServerB
discovery.zen.ping.unicast.hosts: [ServerA, ServerB,ServerC]
transport.tcp.port: 9300-9400
path.data: /elasticsearch/data/
path.logs: /var/log/elasticsearch/
path.repo: /elasticsearch/repo/

**For Data node 2** :
cluster.name: InTouch
node.name: Data-node2
node.master: false
node.data: true
network.host: ServerC
discovery.zen.ping.unicast.hosts: [ServerA, ServerB,ServerC]
transport.tcp.port: 9300-9400
path.data: /elasticsearch/data/
path.logs: /var/log/elasticsearch/
path.repo: /elasticsearch/repo/

```

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 6, 2020, 8:08am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/2 "2020-01-06T08:08:21Z")

</div>

> [@pyerunka](#):
>
> I am trying to form a 3 node ES cluster but i am getting a above mentioned error.

You've not shared the whole log message, and the missing bit is important. Please share the full message.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [January 6, 2020, 8:53am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/3 "2020-01-06T08:53:30Z")

</div>

Hello @DavidTurner,

Please find below error log:

> `[2020-01-06T06:26:46,981][WARN][o.e.c.c.ClusterFormationFailureHelper] [Master-node] master not discovered or elected yet, an election requires a node with id [Y11KbKB-SX2HIYM77Z1Zqg], have discovered [{Master-node}{PcrrIC01SECgC-gDmABeSA}{sSuci3QXRSSN4JyZ1XaijQ}{ServerA}{ip_address of server A:9300}{ilm}{ml.machine_memory=51539005440, xpack.installed=true, ml.max_open_jobs=20}] which is not a quorum; discovery will continue using [ip_address of server B:9300, ip_address of server C:9300] from hosts providers and [{Master-node}{PcrrIC01SECgC-gDmABeSA}{sSuci3QXRSSN4JyZ1XaijQ}{ServerA}{ip_address of server A:9300}{ilm}{ml.machine_memory=51539005440, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 66, last-accepted version 1011 in term 66`

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 6, 2020, 9:09am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/4 "2020-01-06T09:09:48Z")

</div>

So `Master-node` is looking in vain for a node with ID `Y11KbKB-SX2HIYM77Z1Zqg`. It is not discovering any other nodes. I suspect that `Y11KbKB-SX2HIYM77Z1Zqg` is the node ID of `Data-node1`. Check the first few log lines on `Data-node1` to find its node ID to confirm or otherwise.

I recommend fixing the port of your master-eligible nodes using `transport.tcp.port: 9300`. This means both `Master-node` and `Data-node1`. You are currently using `9300-9400` but if Elasticsearch picks a port other than `9300` then you need to configure `discovery.zen.ping.unicast.hosts` with that port instead.

Note also that in v7 you should replace `discovery.zen.ping.unicast.hosts` with `discovery.seed_hosts`, and `discovery.zen.minimum_master_nodes` should be removed.

Note also that there's no point in having two master-eligible nodes. I recommend setting `node.master: true` on all three nodes.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [January 6, 2020, 12:55pm UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/5 "2020-01-06T12:55:12Z")

</div>

Hello @DavidTurner,

ID `Y11KbKB-SX2HIYM77Z1Zqg` is of `data node 3`. I have checked the logs for the same.

I have changed `transport.tcp.port: 9300-9400` settings to only `9300` port.

I have also repplaced `discovery.zen.ping.unicast.hosts` with `discovery.seed_hosts`

I have also changed the setting for `node.master: true` for all the 3 nodes.

I am getting below message after run of all the 3 nodes on master node:

```
 [2020-01-06T12:45:41,576][INFO][o.e.x.m.e.l.LocalExporter] [Master-node] waiting for elected master node [{Data-node2}{Y11KbKB-SX2HIYM77Z1Zqg}{UrZFy5cOQ7Ck3dBs3HEH0Q}{server C}{ip_address of server B:9300}{dlm}{ml.machine_memory=17179267072, ml.max_open_jobs=20, xpack.installed=true}] to setup local exporter[default_local] (does it have x-pack installed?)
[2020-01-06T12:45:41,826][INFO][o.e.c.s.ClusterSettings] [Master-node] updating [xpack.monitoring.collection.enabled] from [false] to [true]
[2020-01-06T12:45:41,998][INFO][o.e.l.LicenseService] [Master-node] license [abb78209-b323-4d4a-8782-a8f7eaf744d4] mode [basic] - valid
[2020-01-06T12:45:42,014][INFO][o.e.x.s.s.SecurityStatusChangeListener] [Master-node] Active license is now [BASIC]; Security is disabled
[2020-01-06T12:45:42,295][INFO][o.e.x.s.a.TokenService] [Master-node] refresh keys
[2020-01-06T12:45:42,529][INFO][o.e.x.s.a.TokenService] [Master-node] refreshed keys

```

Is this correct? means can i say now ES cluster is up and running?

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 6, 2020, 2:55pm UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/6 "2020-01-06T14:55:07Z")

</div>

Yes that looks better.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [January 7, 2020, 3:47am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/7 "2020-01-07T03:47:43Z")

</div>

Hello @DavidTurner,

Thanks for update.  
I have one more question.  
All 3 nodes are master eligible. So if one goes down other should be eligible to elect itself as a master node and will form a 2 node cluster.  
How i can check this with my cluster?  
Can you please guide me on this more?

Regards,  
Priyanka

---

<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:** [February 4, 2020, 3:47am UTC](https://discuss.elastic.co/t/o-e-c-c-clusterformationfailurehelper-master-node-master-not-discovered-or-elected-yet-an-election-requires-a-node-with-id-y11kbkb-sx2hiym77z1zqg-have-discovered/213829/8 "2020-02-04T03:47:47Z")

</div>

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