# Development cluster bootstrap error

**URL:** <https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533>\
**Category:** Elasticsearch\
**Created:** [August 2, 2019, 12:23pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533 "2019-08-02T12:23:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imrankhan\_Patan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imrankhan_patan/32/40363_2.png) [@Imrankhan\_Patan](https://discuss.elastic.co/u/Imrankhan_Patan)\
**Post date:** [August 2, 2019, 12:23pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/1 "2019-08-02T12:23:27Z")

</div>

I am trying to start elasticsearch 7.2 in development server after installation. when I started first I saw error related to "master not discovered or elected yet, an election requires two nodes ..", then I have tried to change the bootstrap parameters but still got the same error.

cluster.initial\_master\_nodes: ["node-1", "node-2"]  
cluster.initial\_master\_nodes: ["server1"]  
discovery.zen.minimum\_master\_nodes: 1

After some reading on this topic from documentation, I understood that elastic cluster forms on its own with default settings on single machine in development environments.So I reverted all configuration changes in elasticsearch.yml fille and deleted the node data in /data/node folder , then tried to start up but in vain.

Similar error now ...but might be different one .. any fix for this regard ?

[2019-08-02T17:28:28,361][WARN][o.e.c.c.ClusterFormationFailureHelper] [eai01] master not discovered or elected yet, an election requires two nodes with ids [MZKMYB3QTQKf8HFgwsW9oQ, 0vF9FzHyRmWmjZdo\_mSgsA], have discovered [{eai01}{0vF9FzHyRmWmjZdo\_mSgsA}{6nSApSurTJmCnWj-yhwoeA}{127.0.0.1}{127.0.0.1:9300}{ml.machine\_memory=33737089024, ml.max\_open\_jobs=20, xpack.installed=true}] which is not a quorum; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{eai01}{MZKMYB3QTQKf8HFgwsW9oQ}{AB60Eqs9ScSHIfs8u4ZtKQ}{127.0.0.1}{127.0.0.1:9301}{ml.machine\_memory=33737089024, xpack.installed=true, ml.max\_open\_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

---

<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:** [August 2, 2019, 1:00pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/2 "2019-08-02T13:00:09Z")

</div>

It looks like you did not delete all the contents of the data folder, because `an election requires two nodes with ids [MZKMYB3QTQKf8HFgwsW9oQ, 0vF9FzHyRmWmjZdo_mSgsA]`. This requirement is being read from the data folder. Ensure that you're really clearing it out.

---

<div class="post-metadata">

**Author:** ![Imrankhan\_Patan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imrankhan_patan/32/40363_2.png) [@Imrankhan\_Patan](https://discuss.elastic.co/u/Imrankhan_Patan)\
**Post date:** [August 5, 2019, 9:11am UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/3 "2019-08-05T09:11:17Z")

</div>

I have deleted the \<ES\_HOME\>/nodes folder and restarted, but still same error

][WARN][o.e.c.c.ClusterFormationFailureHelper] [eai01] master not discovered or elected yet, an election requires two nodes with ids [MF-OJtxoTqyvT-al56F2bA, 0vF9FzHyRmWmjZdo\_mSgsA], have discovered [{eai01}{0vF9FzHyRmWmjZdo\_mSgsA}{6nSApSurTJmCnWj-yhwoeA}{127.0.0.1}{127.0.0.1:9300}{ml.machine\_memory=33737089024, ml.max\_open\_jobs=20, xpack.installed=true}] which is not a quorum; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{eai01}{MF-OJtxoTqyvT-al56F2bA}{WFKqp\_GGQ4SRHel4yZuU9w}{127.0.0.1}{127.0.0.1:9301}{ml.machine\_memory=33737089024, xpack.installed=true, ml.max\_open\_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

---

<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:** [August 5, 2019, 10:39am UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/4 "2019-08-05T10:39:47Z")

</div>

> [@Imrankhan\_Patan](#):
>
> I have deleted the \<ES\_HOME\>/nodes folder and restarted, but still same error

This tells us that `<ES_HOME>/nodes` is not where Elasticsearch is keeping its data.

---

<div class="post-metadata">

**Author:** ![Imrankhan\_Patan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imrankhan_patan/32/40363_2.png) [@Imrankhan\_Patan](https://discuss.elastic.co/u/Imrankhan_Patan)\
**Post date:** [August 5, 2019, 12:44pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/5 "2019-08-05T12:44:16Z")

</div>

This is the path as when I delete the contents of this directory and restart its creating the directory /data/nodes/0 folders. as per documentation also this is the path by default if you don't specify anything in elasticsearch.yml file. I tried changing the data path to some other directory and restarted as well, but still get the same error.

---

<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:** [August 5, 2019, 12:54pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/6 "2019-08-05T12:54:16Z")

</div>

You seem to have two nodes running at the same time, both with the same node name `eai01`? Did you shut them both down and clear out both of their data paths before starting them up again? Can you share all the log messages from **both** nodes from when they start up until the first time they log `master not discovered or elected yet`?

---

<div class="post-metadata">

**Author:** ![Imrankhan\_Patan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imrankhan_patan/32/40363_2.png) [@Imrankhan\_Patan](https://discuss.elastic.co/u/Imrankhan_Patan)\
**Post date:** [August 5, 2019, 1:19pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/7 "2019-08-05T13:19:29Z")

</div>

My bad, there was another elastic process running with different user on the same host. I have deleted the data folder but process still running, killed that processes and restarted elastic with my user. Its running now, Thank you !

---

<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:** [September 2, 2019, 1:21pm UTC](https://discuss.elastic.co/t/development-cluster-bootstrap-error/193533/8 "2019-09-02T13:21:31Z")

</div>

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