# Master not discovered yet, this node has not previously joined a bootstrapped

**URL:** <https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963>\
**Category:** Elasticsearch\
**Created:** [June 28, 2019, 3:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963 "2019-06-28T03:37:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhsh64](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mhsh64](https://discuss.elastic.co/u/mhsh64)\
**Post date:** [June 28, 2019, 3:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/1 "2019-06-28T03:37:21Z")

</div>

Hello,

My environment: =============================================================  
DNS Configuration:  
192.168.0.71 [vm1.local.com](http://vm1.local.com) vm1 qa-node-1  
192.168.0.72 [vm2.local.com](http://vm2.local.com) vm2 qa-node-2

# Ports 9200 , 9300 open on all VMs

elasticsearch.yml on VM1: 192.168.0.71 Hostname: [vm1.local.com](http://vm1.local.com)

```
cluster.name: logging-qa
node.name: qa-node-1
node.master: true
node.data: true
node.ingest: true
path.data: /app/files/data/elasticsearch
path.logs: /app/files/log/elasticsearch
bootstrap.memory_lock: true
network.host: 192.168.0.71
http.port: 9200
discovery.seed_hosts: ["192.168.0.71", "192.168.0.72"]
cluster.initial_master_nodes: ["qa-node-1", "qa-node-2"]

```

However, when I want to start (initial) cluster, I get the bellow error:

`[2019-06-27T05:08:58,411][WARN][o.e.c.c.ClusterFormationFailureHelper] [qa-node-1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [qa-node-1, qa-node-2] to bootstrap a cluster: have discovered []; discovery will continue using [192.168.0.72:9300] from hosts providers and [{qa-node-1}{EwWR4oWtQrWAhr_aZC7AIQ}{6w0qvpPCT8CCSf2UqV36VA}{192.168.0.71}{192.168.0.71:9300}{ml.machine_memory=1902309376, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0`

===================  
Any idea please?  
I do not know why ''''''`have discovered []` ''''''' is empty.

Please let me know if I need to modify my yaml file.

---

<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:** [June 28, 2019, 5:30am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/2 "2019-06-28T05:30:07Z")

</div>

This message is telling us that this node (`qa-node-1`) has not been able to discover the other node (`qa-node-2`) despite trying to connect to it at `192.168.0.72:9300`. Normally this is either because the other node is not running, or else there's a connectivity issue.

---

<div class="post-metadata">

**Author:** ![mhsh64](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mhsh64](https://discuss.elastic.co/u/mhsh64)\
**Post date:** [June 28, 2019, 11:33am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/3 "2019-06-28T11:33:06Z")

</div>

Thanks David,

This is a new cluster I am running, I started the first node, qa-node-1, I have both nodes in config file. Why it doesn’t able to make itself as a master?

If that is the case, even if I start the other node at the same time, I will get the same error on the other node too.

My question is how should I run the cluster? Should I run both nodes at the same time???

If that is the connection issue, the other node, qa-node-2 is on another VM (vm2). And VM2 is up and running and the port is also open

Any idea please??

---

<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:** [June 28, 2019, 11:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/4 "2019-06-28T11:37:01Z")

</div>

> [@mhsh64](#):
>
> My question is how should I run the cluster? Should I run both nodes at the same time???

Yes, this is a 2-node cluster so you need both nodes to be running for it to work. The first node has no way of knowing it's the first node, so can't safely become the master on its own. It needs to contact the other node first.

---

<div class="post-metadata">

**Author:** ![mhsh64](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mhsh64](https://discuss.elastic.co/u/mhsh64)\
**Post date:** [June 28, 2019, 11:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/5 "2019-06-28T11:37:36Z")

</div>

> [@mhsh64](#):
>
> Any idea please?  
> I do not know why '''''' `have discovered []` ''''''' is empty.

Also, is my config file configured correctly?  
What I also noticed, in the error message, nothing is available between in have discovered part, is this ok?  
Any idea please?  
`have discovered []`

---

<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:** [June 28, 2019, 11:38am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/6 "2019-06-28T11:38:47Z")

</div>

The config file looks fine, but the `have discovered []` indicates that the nodes can't find each other. If they're both running then I would guess there's a problem with the network.

---

<div class="post-metadata">

**Author:** ![mhsh64](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mhsh64](https://discuss.elastic.co/u/mhsh64)\
**Post date:** [June 28, 2019, 11:41am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/7 "2019-06-28T11:41:13Z")

</div>

Thanks David again.

I have opened ports 9200 and 9300 on both vms and also for now, disabled selinux just in case, I am able to telnet to each other and also pinging works fine with IP and name too.

Today I will run both nodes and will see what will happen, if I couldn’t resolve any possible issues I will reach out again for your help please

Appreciate

---

<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 26, 2019, 11:41am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-this-node-has-not-previously-joined-a-bootstrapped/187963/8 "2019-07-26T11:41:16Z")

</div>

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