# Can't get Nodes to join AWS cluster

**URL:** <https://discuss.elastic.co/t/cant-get-nodes-to-join-aws-cluster/20016>\
**Category:** Elasticsearch\
**Created:** [September 30, 2014, 8:57pm UTC](https://discuss.elastic.co/t/cant-get-nodes-to-join-aws-cluster/20016 "2014-09-30T20:57:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IronMike](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@IronMike](https://discuss.elastic.co/u/IronMike)\
**Post date:** [September 30, 2014, 8:57pm UTC](https://discuss.elastic.co/t/cant-get-nodes-to-join-aws-cluster/20016/1 "2014-09-30T20:57:35Z")

</div>

This is driving me insance, I am trying to setup a three node AWS cluster.  
Each work fine individually, but cluster isn't working. I am using latest  
of everything, ES 1.3.4, AWS plugin 2.3.0

Note in the logs below, node 2 shows that it was elected as a master, yet  
node 1 doesn't know about it.

yml: (identical for both nodes)

discovery.zen.minimum\_master\_nodes:2

discovery.zen.ping.multicast.enabled: false

discovery.zen.ping.unicast.hosts: [node1,node2,node3]  
cloud:

aws:

access\_key:########  
secret\_key:#################

discovery:  
type:ec2

cluster  
"status": "green",  
"timed\_out": false,  
"number\_of\_nodes": 1,  
"number\_of\_data\_nodes": 1,  
"active\_primary\_shards": 0,  
"active\_shards": 0,  
"relocating\_shards": 0,  
"initializing\_shards": 0,  
"unassigned\_shards": 0  
}

Here is what I get in log:

[2014-09-30 20:38:06,279][INFO][node] [Rex 1] version[  
1.3.4], pid[11632], build[a70f3cc/2014-09-30T09:07:17Z]

[2014-09-30 20:38:06,279][INFO][node] [Rex 1]  
initializing ...

[2014-09-30 20:38:06,320][INFO][plugins] [Rex 1] loaded [  
mapper-attachments, cloud-aws], sites []

[2014-09-30 20:38:08,537][INFO][node] [Rex 1]  
initialized

[2014-09-30 20:38:08,537][INFO][node] [Rex 1]  
starting ...

[2014-09-30 20:38:08,628][INFO][transport] [Rex 1]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.164.184.135:9300]}

[2014-09-30 20:38:08,637][INFO][discovery] [Rex 1]  
rexCluster/cV8zAk42Ql6RPrAov4LRhQ

[2014-09-30 20:38:11,649][INFO][cluster.service] [Rex 1]  
new\_master [Rex 1][cV8zAk42Ql6RPrAov4LRhQ][ip-10-164-184-135][inet[/10.164.184.135:9300]],  
reason: zen-disco-join (elect

ed\_as\_master)

[2014-09-30 20:38:11,665][INFO][http] [Rex 1]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address  
{inet[/10.164.184.135:9200]}

[2014-09-30 20:38:11,666][INFO][node] [Rex 1] started

[2014-09-30 20:38:11,682][INFO][gateway] [Rex 1]  
recovered [0] indices into cluster\_state

[2014-09-30 20:42:44,368][INFO][node] [Rex 1]  
stopping ...

[2014-09-30 20:42:44,389][INFO][node] [Rex 1] stopped

[2014-09-30 20:42:44,390][INFO][node] [Rex 1] closing  
...

[2014-09-30 20:42:44,395][INFO][node] [Rex 1] closed

[2014-09-30 20:42:45,833][WARN][common.jna] Unable to lock  
JVM memory (ENOMEM). This can result in part of the JVM being swapped out.  
Increase RLIMIT\_MEMLOCK (ulimit).

[2014-09-30 20:42:45,915][INFO][node] [Rex 1]  
version[1.3.4], pid[11744], build[a70f3cc/2014-09-30T09:07:17Z]

[2014-09-30 20:42:45,915][INFO][node] [Rex 1]  
initializing ...

[2014-09-30 20:42:45,953][INFO][plugins] [Rex 1] loaded  
[mapper-attachments, cloud-aws], sites []

[2014-09-30 20:42:48,165][INFO][node] [Rex 1]  
initialized

[2014-09-30 20:42:48,166][INFO][node] [Rex 1]  
starting ...

[2014-09-30 20:42:48,254][INFO][transport] [Rex 1]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.164.184.135:9300]}

[2014-09-30 20:42:48,257][INFO][discovery] [Rex 1]  
rexCluster/3A7q\_M1AT4GvVJkhfwzobQ

[2014-09-30 20:43:18,260][WARN][discovery] [Rex 1] waited  
for 30s and no initial state was set by the discovery

[2014-09-30 20:43:18,266][INFO][http] [Rex 1]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.164.  
184.135:9200]}

[2014-09-30 20:43:18,266][INFO][node] [Rex 1] started

[2014-09-30 20:44:03,464][DEBUG][action.admin.cluster.state] [Rex 1] no  
known master node, scheduling a retry

[2014-09-30 20:44:03,464][DEBUG][action.admin.indices.mapping.get] [Rex 1]  
no known master node, scheduling a retry

[2014-09-30 20:39:33,258][INFO][node] [Rex 2] version[  
1.3.4], pid[7486], build[a70f3cc/2014-09-30T09:07:17Z]

[2014-09-30 20:39:33,258][INFO][node] [Rex 2]  
initializing ...

[2014-09-30 20:39:33,302][INFO][plugins] [Rex 2] loaded [  
mapper-attachments, cloud-aws], sites []

[2014-09-30 20:39:35,451][INFO][node] [Rex 2]  
initialized

[2014-09-30 20:39:35,451][INFO][node] [Rex 2]  
starting ...

[2014-09-30 20:39:35,540][INFO][transport] [Rex 2]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.97.175.169:9300]}

[2014-09-30 20:39:35,555][INFO][discovery] [Rex 2]  
rexCluster/jkjH8iNhQciZIRwpIezvAw

[2014-09-30 20:39:38,566][INFO][cluster.service] [Rex 2]  
new\_master [Rex 2][jkjH8iNhQciZIRwpIezvAw][ip-10-97-175-169][inet[/10.97.  
175.169:9300]], reason: zen-disco-join (elected

\_as\_master)

[2014-09-30 20:39:38,583][INFO][http] [Rex 2]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.97.  
175.169:9200]}

[2014-09-30 20:39:38,583][INFO][node] [Rex 2] started

[2014-09-30 20:39:38,602][INFO][gateway] [Rex 2]  
recovered [0] indices into cluster\_state

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/de302bc2-6a4b-4b6d-9a9b-d6fd51466379%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/de302bc2-6a4b-4b6d-9a9b-d6fd51466379%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [October 1, 2014, 6:19am UTC](https://discuss.elastic.co/t/cant-get-nodes-to-join-aws-cluster/20016/2 "2014-10-01T06:19:17Z")

</div>

Try setting your logging.yml file with discovery: trace and upload your logs to Gist.  
Just replace key/secret from logs with XXXXXX as you probably don't want to share them 🙂

Envoyé de mon iPad

> Le 30 sept. 2014 à 22:57, sammy [sabdalla80@gmail.com](mailto:sabdalla80@gmail.com) a écrit :
> 
> This is driving me insance, I am trying to setup a three node AWS cluster. Each work fine individually, but cluster isn't working. I am using latest of everything, ES 1.3.4, AWS plugin 2.3.0
> 
> Note in the logs below, node 2 shows that it was elected as a master, yet node 1 doesn't know about it.
> 
> yml: (identical for both nodes)  
> discovery.zen.minimum\_master\_nodes:2
> 
> discovery.zen.ping.multicast.enabled: false
> 
> discovery.zen.ping.unicast.hosts: [node1,node2,node3]  
> cloud:
> 
> aws:
> 
> access\_key:########  
> secret\_key:#################
> 
> discovery:  
> type:ec2
> 
> cluster  
> "status": "green",  
> "timed\_out": false,  
> "number\_of\_nodes": 1,  
> "number\_of\_data\_nodes": 1,  
> "active\_primary\_shards": 0,  
> "active\_shards": 0,  
> "relocating\_shards": 0,  
> "initializing\_shards": 0,  
> "unassigned\_shards": 0  
> }
> 
> Here is what I get in log:
> 
> [2014-09-30 20:38:06,279][INFO][node] [Rex 1] version[1.3.4], pid[11632], build[a70f3cc/2014-09-30T09:07:17Z]
> 
> [2014-09-30 20:38:06,279][INFO][node] [Rex 1] initializing ...
> 
> [2014-09-30 20:38:06,320][INFO][plugins] [Rex 1] loaded [mapper-attachments, cloud-aws], sites
> 
> [2014-09-30 20:38:08,537][INFO][node] [Rex 1] initialized
> 
> [2014-09-30 20:38:08,537][INFO][node] [Rex 1] starting ...
> 
> [2014-09-30 20:38:08,628][INFO][transport] [Rex 1] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/10.164.184.135:9300]}
> 
> [2014-09-30 20:38:08,637][INFO][discovery] [Rex 1] rexCluster/cV8zAk42Ql6RPrAov4LRhQ
> 
> [2014-09-30 20:38:11,649][INFO][cluster.service] [Rex 1] new\_master [Rex 1][cV8zAk42Ql6RPrAov4LRhQ][ip-10-164-184-135][inet[/10.164.184.135:9300]], reason: zen-disco-join (elect
> 
> ed\_as\_master)
> 
> [2014-09-30 20:38:11,665][INFO][http] [Rex 1] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.164.184.135:9200]}
> 
> [2014-09-30 20:38:11,666][INFO][node] [Rex 1] started
> 
> [2014-09-30 20:38:11,682][INFO][gateway] [Rex 1] recovered [0] indices into cluster\_state
> 
> [2014-09-30 20:42:44,368][INFO][node] [Rex 1] stopping ...
> 
> [2014-09-30 20:42:44,389][INFO][node] [Rex 1] stopped
> 
> [2014-09-30 20:42:44,390][INFO][node] [Rex 1] closing ...
> 
> [2014-09-30 20:42:44,395][INFO][node] [Rex 1] closed
> 
> [2014-09-30 20:42:45,833][WARN][common.jna] Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out. Increase RLIMIT\_MEMLOCK (ulimit).
> 
> [2014-09-30 20:42:45,915][INFO][node] [Rex 1] version[1.3.4], pid[11744], build[a70f3cc/2014-09-30T09:07:17Z]
> 
> [2014-09-30 20:42:45,915][INFO][node] [Rex 1] initializing ...
> 
> [2014-09-30 20:42:45,953][INFO][plugins] [Rex 1] loaded [mapper-attachments, cloud-aws], sites
> 
> [2014-09-30 20:42:48,165][INFO][node] [Rex 1] initialized
> 
> [2014-09-30 20:42:48,166][INFO][node] [Rex 1] starting ...
> 
> [2014-09-30 20:42:48,254][INFO][transport] [Rex 1] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/10.164.184.135:9300]}
> 
> [2014-09-30 20:42:48,257][INFO][discovery] [Rex 1] rexCluster/3A7q\_M1AT4GvVJkhfwzobQ
> 
> [2014-09-30 20:43:18,260][WARN][discovery] [Rex 1] waited for 30s and no initial state was set by the discovery
> 
> [2014-09-30 20:43:18,266][INFO][http] [Rex 1] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.164.184.135:9200]}
> 
> [2014-09-30 20:43:18,266][INFO][node] [Rex 1] started
> 
> [2014-09-30 20:44:03,464][DEBUG][action.admin.cluster.state] [Rex 1] no known master node, scheduling a retry
> 
> [2014-09-30 20:44:03,464][DEBUG][action.admin.indices.mapping.get] [Rex 1] no known master node, scheduling a retry
> 
> [2014-09-30 20:39:33,258][INFO][node] [Rex 2] version[1.3.4], pid[7486], build[a70f3cc/2014-09-30T09:07:17Z]
> 
> [2014-09-30 20:39:33,258][INFO][node] [Rex 2] initializing ...
> 
> [2014-09-30 20:39:33,302][INFO][plugins] [Rex 2] loaded [mapper-attachments, cloud-aws], sites
> 
> [2014-09-30 20:39:35,451][INFO][node] [Rex 2] initialized
> 
> [2014-09-30 20:39:35,451][INFO][node] [Rex 2] starting ...
> 
> [2014-09-30 20:39:35,540][INFO][transport] [Rex 2] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/10.97.175.169:9300]}
> 
> [2014-09-30 20:39:35,555][INFO][discovery] [Rex 2] rexCluster/jkjH8iNhQciZIRwpIezvAw
> 
> [2014-09-30 20:39:38,566][INFO][cluster.service] [Rex 2] new\_master [Rex 2][jkjH8iNhQciZIRwpIezvAw][ip-10-97-175-169][inet[/10.97.175.169:9300]], reason: zen-disco-join (elected
> 
> \_as\_master)
> 
> [2014-09-30 20:39:38,583][INFO][http] [Rex 2] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.97.175.169:9200]}
> 
> [2014-09-30 20:39:38,583][INFO][node] [Rex 2] started
> 
> [2014-09-30 20:39:38,602][INFO][gateway] [Rex 2] recovered [0] indices into cluster\_state
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/de302bc2-6a4b-4b6d-9a9b-d6fd51466379%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/de302bc2-6a4b-4b6d-9a9b-d6fd51466379%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/40C87D38-8EAD-4C6F-82CB-4579E420ABF7%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/40C87D38-8EAD-4C6F-82CB-4579E420ABF7%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![IronMike](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@IronMike](https://discuss.elastic.co/u/IronMike)\
**Post date:** [October 1, 2014, 3:50pm UTC](https://discuss.elastic.co/t/cant-get-nodes-to-join-aws-cluster/20016/3 "2014-10-01T15:50:36Z")

</div>

I am still playing with it, I will upload if I hit a dead end. But here is  
strange behavior I noticed, may be you can shed some light.  
We switched Unicast IPs to private IPs as opposed to Public IPs.

In Node1: if I do [IP1,IP2,IP3], then node1 & node2 seem to be in a cluster  
and node3 isn't  
In Node1; if I do [IP1,IP3,IP2], then node1 & node3 seem to be in cluster  
and node2 isn't.

Does this mean anything?  
Also When I query cluster state, for the 2 nodes that joined, cluster  
version says "3", for the non-joing node, cluster version would show "2".

On Wednesday, October 1, 2014 2:20:15 AM UTC-4, David Pilato wrote:

> Try setting your logging.yml file with discovery: trace and upload your  
> logs to Gist.  
> Just replace key/secret from logs with XXXXXX as you probably don't want  
> to share them 🙂
> 
> Envoyé de mon iPad
> 
> Le 30 sept. 2014 à 22:57, sammy \<[sabda...@gmail.com](mailto:sabda...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> This is driving me insance, I am trying to setup a three node AWS cluster.  
> Each work fine individually, but cluster isn't working. I am using latest  
> of everything, ES 1.3.4, AWS plugin 2.3.0
> 
> Note in the logs below, node 2 shows that it was elected as a master, yet  
> node 1 doesn't know about it.
> 
> yml: (identical for both nodes)
> 
> discovery.zen.minimum\_master\_nodes:2
> 
> discovery.zen.ping.multicast.enabled: false
> 
> discovery.zen.ping.unicast.hosts: [node1,node2,node3]  
> cloud:
> 
> aws:
> 
> access\_key:########  
> secret\_key:#################
> 
> discovery:  
> type:ec2
> 
> cluster  
> "status": "green",  
> "timed\_out": false,  
> "number\_of\_nodes": 1,  
> "number\_of\_data\_nodes": 1,  
> "active\_primary\_shards": 0,  
> "active\_shards": 0,  
> "relocating\_shards": 0,  
> "initializing\_shards": 0,  
> "unassigned\_shards": 0  
> }
> 
> Here is what I get in log:
> 
> [2014-09-30 20:38:06,279][INFO][node] [Rex 1]  
> version[1.3.4], pid[11632], build[a70f3cc/2014-09-30T09:07:17Z]
> 
> [2014-09-30 20:38:06,279][INFO][node] [Rex 1]  
> initializing ...
> 
> [2014-09-30 20:38:06,320][INFO][plugins] [Rex 1]  
> loaded [mapper-attachments, cloud-aws], sites
> 
> [2014-09-30 20:38:08,537][INFO][node] [Rex 1]  
> initialized
> 
> [2014-09-30 20:38:08,537][INFO][node] [Rex 1]  
> starting ...
> 
> [2014-09-30 20:38:08,628][INFO][transport] [Rex 1]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 10.164.184.135:9300]}
> 
> [2014-09-30 20:38:08,637][INFO][discovery] [Rex 1]  
> rexCluster/cV8zAk42Ql6RPrAov4LRhQ
> 
> [2014-09-30 20:38:11,649][INFO][cluster.service] [Rex 1]  
> new\_master [Rex 1][cV8zAk42Ql6RPrAov4LRhQ][ip-10-164-184-135][inet[/10.164.184.135:9300]],  
> reason: zen-disco-join (elect
> 
> ed\_as\_master)
> 
> [2014-09-30 20:38:11,665][INFO][http] [Rex 1]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/  
> 10.164.184.135:9200]}
> 
> [2014-09-30 20:38:11,666][INFO][node] [Rex 1] started
> 
> [2014-09-30 20:38:11,682][INFO][gateway] [Rex 1]  
> recovered [0] indices into cluster\_state
> 
> [2014-09-30 20:42:44,368][INFO][node] [Rex 1]  
> stopping ...
> 
> [2014-09-30 20:42:44,389][INFO][node] [Rex 1] stopped
> 
> [2014-09-30 20:42:44,390][INFO][node] [Rex 1]  
> closing ...
> 
> [2014-09-30 20:42:44,395][INFO][node] [Rex 1] closed
> 
> [2014-09-30 20:42:45,833][WARN][common.jna] Unable to lock  
> JVM memory (ENOMEM). This can result in part of the JVM being swapped out.  
> Increase RLIMIT\_MEMLOCK (ulimit).
> 
> [2014-09-30 20:42:45,915][INFO][node] [Rex 1]  
> version[1.3.4], pid[11744], build[a70f3cc/2014-09-30T09:07:17Z]
> 
> [2014-09-30 20:42:45,915][INFO][node] [Rex 1]  
> initializing ...
> 
> [2014-09-30 20:42:45,953][INFO][plugins] [Rex 1] loaded  
> [mapper-attachments, cloud-aws], sites
> 
> [2014-09-30 20:42:48,165][INFO][node] [Rex 1]  
> initialized
> 
> [2014-09-30 20:42:48,166][INFO][node] [Rex 1]  
> starting ...
> 
> [2014-09-30 20:42:48,254][INFO][transport] [Rex 1]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 10.164.184.135:9300]}
> 
> [2014-09-30 20:42:48,257][INFO][discovery] [Rex 1]  
> rexCluster/3A7q\_M1AT4GvVJkhfwzobQ
> 
> [2014-09-30 20:43:18,260][WARN][discovery] [Rex 1]  
> waited for 30s and no initial state was set by the discovery
> 
> [2014-09-30 20:43:18,266][INFO][http] [Rex 1]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/10.164  
> .184.135:9200]}
> 
> [2014-09-30 20:43:18,266][INFO][node] [Rex 1]  
> started
> 
> [2014-09-30 20:44:03,464][DEBUG][action.admin.cluster.state] [Rex 1] no  
> known master node, scheduling a retry
> 
> [2014-09-30 20:44:03,464][DEBUG][action.admin.indices.mapping.get] [Rex 1]  
> no known master node, scheduling a retry
> 
> \<span style="color: #660;" class="styled-by
> 
> ...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d6513c42-917b-467c-bcf6-ba2dc8194231%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d6513c42-917b-467c-bcf6-ba2dc8194231%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:58am UTC](https://discuss.elastic.co/t/cant-get-nodes-to-join-aws-cluster/20016/4 "2017-07-06T00:58:57Z")

</div>


