# I can´t add a second node to my cluster

**URL:** <https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223>\
**Category:** Elasticsearch\
**Created:** [July 30, 2018, 4:52pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223 "2018-07-30T16:52:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_moreno/32/33334_2.png) [@Diego\_Moreno](https://discuss.elastic.co/u/Diego_Moreno)\
**Post date:** [July 30, 2018, 4:52pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/1 "2018-07-30T16:52:46Z")

</div>

Node 1:  
cluster.name: my-application  
node.name: node-1  
node.master: true  
node.data: true  
network.host: 192.168.x.xxx  
network.publish\_host: 192.168.x.xxx  
network.blind\_host: 192.168.x.xxx  
discovery.zen.ping.unicast.hosts: ["192.168.x.xxx:9200", "192.168.y.yyy:9200"]

Node 2:  
cluster.name: my-application  
node.name: node-2  
node.master: false  
node.data: true  
network.host: 192.168.x.xxx  
network.publish\_host: 192.168.x.xxx  
network.blind\_host: 192.168.x.xxx  
discovery.zen.ping.unicast.hosts: ["192.168.x.xxx:9200", "192.168.y.yyy:9200"]

---

<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:** [July 30, 2018, 8:43pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/2 "2018-07-30T20:43:25Z")

</div>

This is wrong:

```auto
discovery.zen.ping.unicast.hosts: ["192.168.x.xxx:9200", "192.168.y.yyy:9200"]

```

This should be:

```auto
discovery.zen.ping.unicast.hosts: ["192.168.x.xxx:9300", "192.168.y.yyy:9300"]

```

Or easier:

```auto
discovery.zen.ping.unicast.hosts: ["192.168.x.xxx", "192.168.y.yyy"]

```

---

<div class="post-metadata">

**Author:** ![Diego\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_moreno/32/33334_2.png) [@Diego\_Moreno](https://discuss.elastic.co/u/Diego_Moreno)\
**Post date:** [July 30, 2018, 9:13pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/3 "2018-07-30T21:13:55Z")

</div>

I tried that David, but it still does not work.

---

<div class="post-metadata">

**Author:** ![Diego\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_moreno/32/33334_2.png) [@Diego\_Moreno](https://discuss.elastic.co/u/Diego_Moreno)\
**Post date:** [July 30, 2018, 9:24pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/4 "2018-07-30T21:24:30Z")

</div>

Every node has to be in a different file, right?

---

<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:** [July 30, 2018, 11:18pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/5 "2018-07-30T23:18:51Z")

</div>

Can you share the logs of both nodes, please?  
Please format them using the `</>` icon to have something like:

```auto
THIS IS A LOG LINE
ANOTHER LOG LINE

```

Thanks.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [July 31, 2018, 2:11am UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/6 "2018-07-31T02:11:41Z")

</div>

show the log  
two data node is't good .

---

<div class="post-metadata">

**Author:** ![roshni](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@roshni](https://discuss.elastic.co/u/roshni)\
**Post date:** [July 31, 2018, 5:48am UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/7 "2018-07-31T05:48:56Z")

</div>

what is the error you are receiving ?  
and what is the value of #discovery.zen.minimum\_master\_nodes:

---

<div class="post-metadata">

**Author:** ![Diego\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_moreno/32/33334_2.png) [@Diego\_Moreno](https://discuss.elastic.co/u/Diego_Moreno)\
**Post date:** [August 1, 2018, 10:34pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/8 "2018-08-01T22:34:19Z")

</div>

Node 1 (master):

[2018-08-01T17:08:44,188][INFO][o.e.x.s.a.s.FileRolesStore] [node-1] parsed [0] roles from file [C:\Users\player\Documents\elasticsearch-6.3.2\elasticsearch-6.3.2\config\roles.yml]  
[2018-08-01T17:08:46,580][INFO][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/33744] [Main.cc@109] controller (64 bit): Version 6.3.2 (Build 903094f295d249) Copyright (c) 2018 Elasticsearch BV  
[2018-08-01T17:08:46,921][DEBUG][o.e.a.ActionModule] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security  
[2018-08-01T17:08:48,797][INFO][o.e.d.DiscoveryModule] [node-1] using discovery type [zen]  
[2018-08-01T17:08:50,582][INFO][o.e.n.Node] [node-1] initialized  
[2018-08-01T17:08:50,583][INFO][o.e.n.Node] [node-1] starting ...  
[2018-08-01T17:08:51,192][INFO][o.e.t.TransportService] [node-1] publish\_address {192.168.0.X6:9300}, bound\_addresses {192.168.0.X6:9300}  
[2018-08-01T17:08:51,323][INFO][o.e.b.BootstrapChecks] [node-1] bound or publishing to a non-loopback address, enforcing bootstrap checks  
[2018-08-01T17:08:54,452][INFO][o.e.c.s.MasterService] [node-1] zen-disco-elected-as-master ([0] nodes joined)[,], reason: new\_master {node-1}{iJpsgOjuRYyeZevWGh5Gwg}{G6Qulos4RLSgZSey1vVrxA}{192.168.0.X6}{192.168.0.X6:9300}{ml.machine\_memory=8471482368, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}  
[2018-08-01T17:08:54,462][INFO][o.e.c.s.ClusterApplierService] [node-1] new\_master {node-1}{iJpsgOjuRYyeZevWGh5Gwg}{G6Qulos4RLSgZSey1vVrxA}{192.168.0.X6}{192.168.0.X6:9300}{ml.machine\_memory=8471482368, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}, reason: apply cluster state (from master [master {node-1}{iJpsgOjuRYyeZevWGh5Gwg}{G6Qulos4RLSgZSey1vVrxA}{192.168.0.X6}{192.168.0.X6:9300}{ml.machine\_memory=8471482368, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)[,]]])  
[2018-08-01T17:08:54,599][INFO][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [node-1] publish\_address {192.168.0.X6:9200}, bound\_addresses {192.168.0.X6:9200}  
[2018-08-01T17:08:54,617][INFO][o.e.n.Node] [node-1] started  
[2018-08-01T17:08:55,512][INFO][o.e.c.s.ClusterSettings] [node-1] updating [xpack.monitoring.collection.enabled] from [false] to [true]  
[2018-08-01T17:08:56,585][WARN][o.e.x.s.a.s.m.NativeRoleMappingStore] [node-1] Failed to clear cache for realms []  
[2018-08-01T17:08:56,634][INFO][o.e.l.LicenseService] [node-1] license [d99825dd-fc03-4946-946e-0a00d633908b] mode [basic] - valid  
[2018-08-01T17:08:56,652][INFO][o.e.g.GatewayService] [node-1] recovered [15] indices into cluster\_state  
[2018-08-01T17:09:01,041][INFO][o.e.c.r.a.AllocationService] [node-1] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0]] ...]).

Node 2:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6bd107fd624820191ba44885aa492e9bc1779203.png)

---

<div class="post-metadata">

**Author:** ![Diego\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_moreno/32/33334_2.png) [@Diego\_Moreno](https://discuss.elastic.co/u/Diego_Moreno)\
**Post date:** [August 1, 2018, 10:56pm UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/9 "2018-08-01T22:56:47Z")

</div>

Node 1 (master):

[2018-08-01T17:08:44,188][INFO][o.e.x.s.a.s.FileRolesStore] [node-1] parsed [0] roles from file [C:\Users\player\Documents\elasticsearch-6.3.2\elasticsearch-6.3.2\config\roles.yml]  
[2018-08-01T17:08:46,580][INFO][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/33744] [Main.cc@109] controller (64 bit): Version 6.3.2 (Build 903094f295d249) Copyright (c) 2018 Elasticsearch BV  
[2018-08-01T17:08:46,921][DEBUG][o.e.a.ActionModule] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security  
[2018-08-01T17:08:48,797][INFO][o.e.d.DiscoveryModule] [node-1] using discovery type [zen]  
[2018-08-01T17:08:50,582][INFO][o.e.n.Node] [node-1] initialized  
[2018-08-01T17:08:50,583][INFO][o.e.n.Node] [node-1] starting ...  
[2018-08-01T17:08:51,192][INFO][o.e.t.TransportService] [node-1] publish\_address {192.168.0.X6:9300}, bound\_addresses {192.168.0.X6:9300}  
[2018-08-01T17:08:51,323][INFO][o.e.b.BootstrapChecks] [node-1] bound or publishing to a non-loopback address, enforcing bootstrap checks  
[2018-08-01T17:08:54,452][INFO][o.e.c.s.MasterService] [node-1] zen-disco-elected-as-master ([0] nodes joined)[,], reason: new\_master {node-1}{iJpsgOjuRYyeZevWGh5Gwg}{G6Qulos4RLSgZSey1vVrxA}{192.168.0.X6}{192.168.0.X6:9300}{ml.machine\_memory=8471482368, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}  
[2018-08-01T17:08:54,462][INFO][o.e.c.s.ClusterApplierService] [node-1] new\_master {node-1}{iJpsgOjuRYyeZevWGh5Gwg}{G6Qulos4RLSgZSey1vVrxA}{192.168.0.X6}{192.168.0.X6:9300}{ml.machine\_memory=8471482368, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true}, reason: apply cluster state (from master [master {node-1}{iJpsgOjuRYyeZevWGh5Gwg}{G6Qulos4RLSgZSey1vVrxA}{192.168.0.X6}{192.168.0.X6:9300}{ml.machine\_memory=8471482368, xpack.installed=true, ml.max\_open\_jobs=20, ml.enabled=true} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)[,]]])  
[2018-08-01T17:08:54,599][INFO][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [node-1] publish\_address {192.168.0.X6:9200}, bound\_addresses {192.168.0.X6:9200}  
[2018-08-01T17:08:54,617][INFO][o.e.n.Node] [node-1] started  
[2018-08-01T17:08:55,512][INFO][o.e.c.s.ClusterSettings] [node-1] updating [xpack.monitoring.collection.enabled] from [false] to [true]  
[2018-08-01T17:08:56,585][WARN][o.e.x.s.a.s.m.NativeRoleMappingStore] [node-1] Failed to clear cache for realms []  
[2018-08-01T17:08:56,634][INFO][o.e.l.LicenseService] [node-1] license [d99825dd-fc03-4946-946e-0a00d633908b] mode [basic] - valid  
[2018-08-01T17:08:56,652][INFO][o.e.g.GatewayService] [node-1] recovered [15] indices into cluster\_state  
[2018-08-01T17:09:01,041][INFO][o.e.c.r.a.AllocationService] [node-1] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0]] ...]).

Node 2:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6bd107fd624820191ba44885aa492e9bc1779203.png)

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 2, 2018, 12:28am UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/10 "2018-08-02T00:28:26Z")

</div>

connect time out the network not ok?  
telnet IP:9300 can connect?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [August 2, 2018, 12:37am UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/11 "2018-08-02T00:37:39Z")

</div>

> [@Diego\_Moreno](#):
>
> network.host: 192.168.x.xxx  
> network.publish\_host: 192.168.x.xxx  
> network.blind\_host: 192.168.x.xxx  
> discovery.zen.ping.unicast.hosts: ["192.168.x.xxx:9200", "192.168.y.yyy:9200"]

From the error, my best guess is that one of these IP addresses is incorrect. But it's impossible for us to give you much advice since you're redacting them.  
Are the IP addresses on your private network really so sensitive that you need to make debugging 10 times harder by hiding them?

---

<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:** [August 30, 2018, 12:50am UTC](https://discuss.elastic.co/t/i-can-t-add-a-second-node-to-my-cluster/142223/12 "2018-08-30T00:50:55Z")

</div>

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