# Not enough master nodes discovered during pinging (found \[\[\]\], but needed \[1\]), pinging again

**URL:** <https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043>\
**Category:** Elasticsearch\
**Created:** [October 11, 2018, 11:59am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043 "2018-10-11T11:59:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [October 11, 2018, 11:59am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043/1 "2018-10-11T11:59:45Z")

</div>

HI Team,  
I have 5 server and i want to form cluster.

Initially i'm working around 2 server cluster formation. my idea is 1 master and 4 data node.

when i try to form cluster formation between 2 server i'm getting master not discover error and anyone help me on this,

master conf:

```
    cluster.name: "docker-cluster"
    node.name: hostname1.node
    node.master: true
    node.data: false
    node.ingest: false
    network.host: 0.0.0.0
    network.publish_host:hostname1
    discovery.zen.ping.unicast.hosts: ["hostname1.com","hostname2.com"]
    discovery.zen.minimum_master_nodes: 1
    #xpack.license.self_generated.type: trial
    xpack.security.enabled: false
    xpack.monitoring.enabled : true
    #xpack.security.http.ssl.enabled: true
    #xpack.security.http.ssl.key: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key
    #xpack.security.http.ssl.certificate: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt
    #xpack.security.http.ssl.client_authentication: none
    #xpack.security.http.ssl.verification_mode: certificate

```

Data conf:

```
cluster.name: "docker-cluster"
node.name: hostname2.node
node.master: false
node.data: true
node.ingest: false
network.host: 0.0.0.0
#bootstrap.memory_lock: true
discovery.zen.ping.unicast.hosts: ["hostname1.com","hostname2.com"]
discovery.zen.minimum_master_nodes: 1
network.publish_host: hostname2.com

#xpack.license.self_generated.type: trial
xpack.security.enabled: false
xpack.monitoring.enabled: true
#xpack.security.http.ssl.enabled: true
#xpack.security.http.ssl.key: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key
#xpack.security.http.ssl.certificate: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt
#xpack.security.http.ssl.client_authentication: none
#xpack.security.http.ssl.verification_mode: certificate

```

curl -XGET '[http://localhost:9200/\_cluster/state?pretty](http://localhost:9200/_cluster/state?pretty)'

```
{
      "error" : {
        "root_cause" : [
          {
            "type" : "master_not_discovered_exception",
            "reason" : null
          }
        ],
        "type" : "master_not_discovered_exception",
        "reason" : null
      },
      "status" : 503
    }

```

when i run the curl command im getting below message on data server,

```
 curl -XGET 'http://localhost:9200/_cat/indices'
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
```

---

<div class="post-metadata">

**Author:** ![fkelbert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fkelbert/32/35762_2.png) [@fkelbert](https://discuss.elastic.co/u/fkelbert)\
**Post date:** [October 11, 2018, 1:31pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043/2 "2018-10-11T13:31:46Z")

</div>

Are you sure that those nodes are able to communicate on the Elasticsearch port 9300? Do the hostnames resolve properly?

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [October 11, 2018, 1:58pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043/3 "2018-10-11T13:58:45Z")

</div>

Thanks for your reply @fkelbert

please find the below response which im getting,  
telnet xx.xx.xx.xx 9300  
Trying xx.xx.xx.xx...  
telnet: connect to address xx.xx.xx.xx: Connection refused

Quick info i'm using x-pack and i already the "xpack.ml.enabled: true"

> [@fkelbert](#):
>
> Do the hostnames resolve properly?

i didnt get this point

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [October 12, 2018, 3:06am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043/4 "2018-10-12T03:06:44Z")

</div>

how can i check the communication of port 9300

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [October 12, 2018, 11:05am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043/5 "2018-10-12T11:05:51Z")

</div>

Issue resolved @fkelbert

---

<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:** [November 9, 2018, 11:05am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/152043/6 "2018-11-09T11:05:51Z")

</div>

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