# \] \[data\_node\_1\] not enough master nodes discovered during pinging (found \[\[\]\], but needed \[1\]), pinging again

**URL:** <https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291>\
**Category:** Elasticsearch\
**Created:** [January 16, 2020, 10:21am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291 "2020-01-16T10:21:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 16, 2020, 10:21am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/1 "2020-01-16T10:21:28Z")

</div>

Hi I have two two node cluster on red hat Enterprise Linux server . Both nodes are running on different different server. when i run elastic search for the server having data node ,getting such error

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 16, 2020, 10:55am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/2 "2020-01-16T10:55:50Z")

</div>

Hi Nidhi,

Could you please share the full logs and 'elasticsearch.yml' file for investigating the same.

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 17, 2020, 7:20am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/4 "2020-01-17T07:20:13Z")

</div>

Hi Harsh,

I have shared the logs and configurations.

Thanks & Regards,  
Nidhi

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 17, 2020, 7:41am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/5 "2020-01-17T07:41:31Z")

</div>

Hi Nidhi,

Thank you !

Are you able to telnet on port :9300 on your both machines?

Maybe firewall rule is preventing these nodes from communicating. Please check following things to make sure that there is no problem related to network.

1. Ping (On both nodes)
2. curl http://:9300 (on both nodes)
3. telnet (on both node)

Please share the o/p for more investigation.

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 17, 2020, 10:13am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/7 "2020-01-17T10:13:18Z")

</div>

This is the reason that both the nodes are not able to communicate.

> [@nidhi1](#):
>
> telnet 10.9.186.91 9200  
> Trying 10.9.186.91...  
> telnet: connect to address 10.9.186.91: Connection refused  
> $ telnet 10.9.186.91 9300  
> Trying 10.9.186.91...  
> telnet: connect to address 10.9.186.91: Connection refused  
> same as for another server

You need to add/enable port in firewall or check IPtables.

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 17, 2020, 10:19am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/8 "2020-01-17T10:19:09Z")

</div>

Can u please tell me how to enable the ports

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 17, 2020, 11:08am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/9 "2020-01-17T11:08:37Z")

</div>

HI NIdhi,

Could you please let me know which OS/environment is using?

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 17, 2020, 12:02pm UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/10 "2020-01-17T12:02:30Z")

</div>

Harsh, I am using Red hat Enterprise Linux server.

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 20, 2020, 3:46am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/11 "2020-01-20T03:46:10Z")

</div>

Hi Nidhi,

Could you please share the o/p of below commands on both the machines.

netstat -nlp |grep 9200

netstat -nlp | grep 9300

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 20, 2020, 6:49am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/12 "2020-01-20T06:49:24Z")

</div>

Hi Harsh,

For both server it is not showing anything.  
[root@blt07163059 ~]# netstat -nlp |grep 9200  
[root@blt07163059 ~]# netstat -nlp |grep 9300  
[root@blt07163059 ~]#

Thanks

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 20, 2020, 7:01am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/13 "2020-01-20T07:01:14Z")

</div>

Please make sure your elasticsearch service is in running state.

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 20, 2020, 7:43am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/15 "2020-01-20T07:43:27Z")

</div>

Yes, It seems your ealsticsearch service is not running.

> [@](#):
>
> curl: (7) couldn't connect to host

I'm not able to understand why you are getting this message if you have already installed elasticsearch on your machine.

> [@](#):
>
> elasticsearch: unrecognized service

can i know how you install elastocsearch ?

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 20, 2020, 8:11am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/17 "2020-01-20T08:11:51Z")

</div>

and Harsh,  
I directly downloaded the tar file of Elasticsearch ("elasticsearch-6.7.0.tar.gz") and untar it.  
But when i did this i was logged in as a root and untar it as a root.  
When i tried to run the ./elasticsearch i was getting error as "elasticsearch cannot run as a root". Then i changed the ownership of the related folders and then ran elasticsearch.

Thanks

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [January 20, 2020, 9:04am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/18 "2020-01-20T09:04:45Z")

</div>

Hi Nidhi,

Please disable the firewalld once and check again that they are able to communicate or not.

Systemctl stop firewalld

This is just for check as i want to know that is it firewall proble or anything else?

Regards,  
Harsh

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 20, 2020, 12:25pm UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/20 "2020-01-20T12:25:23Z")

</div>

$ systemctl stop firewalld  
bash: systemctl: command not found

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 20, 2020, 1:03pm UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/21 "2020-01-20T13:03:43Z")

</div>

Is port 9300 available as well?

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [January 21, 2020, 7:36am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/22 "2020-01-21T07:36:17Z")

</div>

No, for port 9300 connection refused, so it is not available.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 21, 2020, 8:16am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/23 "2020-01-21T08:16:26Z")

</div>

This can't work because of this:

```auto
transport.host: localhost

```

Remove this line.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 21, 2020, 10:09am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/25 "2020-01-21T10:09:53Z")

</div>

Please don't post unformatted code, logs, or configuration as it's very hard to read.

Instead, paste the text and format it with \</\> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

Anyway, here is the problem:

```auto
[2020-01-21T09:28:40,384][INFO][o.e.b.BootstrapChecks] [master_node] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max number of threads [1024] for user [pandeyi] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

```

Please read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<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 18, 2020, 10:10am UTC](https://discuss.elastic.co/t/data-node-1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1-pinging-again/215291/26 "2020-02-18T10:10:04Z")

</div>

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