# Data nodes are not able to join master, failed to send join request to master

**URL:** <https://discuss.elastic.co/t/data-nodes-are-not-able-to-join-master-failed-to-send-join-request-to-master/165845>\
**Category:** Elasticsearch\
**Created:** [January 26, 2019, 10:26am UTC](https://discuss.elastic.co/t/data-nodes-are-not-able-to-join-master-failed-to-send-join-request-to-master/165845 "2019-01-26T10:26:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mola\_me](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mola\_me](https://discuss.elastic.co/u/mola_me)\
**Post date:** [January 26, 2019, 10:26am UTC](https://discuss.elastic.co/t/data-nodes-are-not-able-to-join-master-failed-to-send-join-request-to-master/165845/1 "2019-01-26T10:26:10Z")

</div>

Hi guys,  
I can't get node-2 to join master  
I am running 2 nodes node-1 as master and node-2 as data node  
Here is my configuration:

master node :

cluster.name: cluster  
node.name: production2  
node.master: true  
path.data: /var/lib/elasticsearch  
path.logs: /var/log/elasticsearch  
network.host: ["localhost", "10.20.30.22"]  
discovery.zen.ping.unicast.hosts: ["10.20.30.21", "10.20.30.22"]

data node:

cluster.name: cluster  
node.name: production1  
node.data: true  
path.data: /var/lib/elasticsearch  
path.logs: /var/log/elasticsearch  
network.host: ["10.20.30.21","localhost"]  
discovery.zen.ping.unicast.hosts: ["10.20.30.22:9300"]

curl localhost:9200/\_cluster/health  
{"error":{"root\_cause":[{"type":"master\_not\_discovered\_exception","reason":null}],"type":"master\_not\_discovered\_exception","reason":null},"status":503}

----\> Logfile  
[o.e.d.z.ZenDiscovery] [production1] failed to send join request to master [{production2}{yFdQEaCNSdfeTUZ7UwOtuw}{f3j5NwIFSCGudseJnZiSzw}{10.20.30.22}{10.20.30.22:9300}], reason [RemoteTransportException[[production2][10.20.30.22:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[production1][10.20.30.21:9300] connect\_timeout[30s]]; ]

telnet to master node on port 9300 is working fine, and also the master machine can telnet node-2 on port 9300

I am wondering what I missing ?  
I would appreciate any help .  
thank you very much in advance

---

<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 28, 2019, 7:53am UTC](https://discuss.elastic.co/t/data-nodes-are-not-able-to-join-master-failed-to-send-join-request-to-master/165845/2 "2019-01-28T07:53:27Z")

</div>

It's a good idea to format your post using the `</>` button and check the preview window to make sure it looks good - it's much more likely to get a useful response this way.

The defaults for the `node.data` and `node.master` settings are `true`, so you need to set `node.master: false` on the data-only node and `node.data: false` on the master node.

`ConnectTransportException` indicates a connectivity issue, but you will need to share more of the logs so we can see what's actually going on.

> [@mola\_me](#):
>
> telnet to master node on port 9300 is working fine, and also the master machine can telnet node-2 on port 9300

Can you define "working fine" more precisely? If you open a telnet connection to the transport port (i.e. 9300 by default) then nothing should happen, but it's hard to distinguish this from a connection that doesn't complete successfully.

---

<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 25, 2019, 7:53am UTC](https://discuss.elastic.co/t/data-nodes-are-not-able-to-join-master-failed-to-send-join-request-to-master/165845/3 "2019-02-25T07:53:32Z")

</div>

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