# "not enough master nodes discovered during pinging" Error in AWS WEST only East comes up fine!

**URL:** <https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436>\
**Category:** Elasticsearch\
**Created:** [July 10, 2018, 9:52pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436 "2018-07-10T21:52:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![titan1978](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Post date:** [July 10, 2018, 9:52pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436/1 "2018-07-10T21:52:12Z")

</div>

I understand this has been asked before. Our situation is a bit odd where this USED to work a few days ago and does work on our AWS EAST stack. However, we get this error on our WEST region stack. The security groups haven't changed (used to work with those). Both east and west were recently upgraded to use 6.3.0. East came up fine and the security groups between east and west look consistent. The SAME security groups worked a few days ago in 5.5 version of the stack. Somehow after upgrading to 6.3.0, east came up perfectly but west gives the  
" **not enough master nodes discovered during pinging"** error during bootstrap. Any suggestions?

**Elastic YML**

```
cluster.name: my-cluster
node.data: false
node.master: false
node.ingest: false
search.remote.connect: false
node.name: ${HOSTNAME}
path.data: /opt/mount/var/data/my-cluster/elasticsearch
path.logs: /opt/mount/var/log/my-cluster/elasticsearch
network.host: _ec2:privateIpv4_
discovery.zen.hosts_provider: ec2
discovery.zen.minimum_master_nodes: 3
discovery.ec2.host_type: private_ip
discovery.ec2.tag.Name: my-cluster-tag
discovery.ec2.groups: our-west-sg // EAST SG WORKS. THIS IS WEST. RULES ARE SIMILAR
discovery.ec2.any_group: false
discovery.ec2.proxy.host: ourproxy
discovery.ec2.proxy.port: 8099
cloud.node.auto_attributes: true
action.destructive_requires_name: true
bootstrap.memory_lock: true
http.type: ssl_netty4
xpack.security.enabled: false
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 10, 2018, 9:58pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436/2 "2018-07-10T21:58:04Z")

</div>

Is this on the AWS Elasticsearch service?

---

<div class="post-metadata">

**Author:** ![titan1978](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Post date:** [July 10, 2018, 11:09pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436/3 "2018-07-10T23:09:06Z")

</div>

no - 6.3.0 installed on AWS EC2

---

<div class="post-metadata">

**Author:** ![titan1978](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Post date:** [July 11, 2018, 3:30am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436/4 "2018-07-11T03:30:00Z")

</div>

FYI - I do see this in the logs in the WEST. But I don't have the localhost (127.0.0.1) configured anywhere!

```
[2018-07-11T04:02:13,828][TRACE][o.e.d.z.UnicastZenPing] [ip-10-184-180-157.myhost.com] [14] failed to ping {#zen_unicast_127.0.0.1_1#}{1wrYu3e5Qq2FFZRbPn8npw}{127.0.0.1}{12
        7.0.0.1:9301}
  19564 org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9301] connect_exception
  19565 at org.elasticsearch.transport.TcpChannel.awaitConnected(TcpChannel.java:165) ~[elasticsearch-6.3.0.jar:6.3.0]
  19566 at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:631) ~[elasticsearch-6.3.0.jar:6.3.0]
  19567 at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:123) ~[elasticsearch-6.3.0.jar:6.3.0]
  19568 at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:350) ~[elasticsearch-6.3.0.jar:6.3.0]
  19569 at org.elasticsearch.discovery.zen.UnicastZenPing$PingingRound.getOrConnect(UnicastZenPing.java:397) ~[elasticsearch-6.3.0.jar:6.3.0]
  19570 at org.elasticsearch.discovery.zen.UnicastZenPing$3.doRun(UnicastZenPing.java:502) [elasticsearch-6.3.0.jar:6.3.0]
  19571 at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:724) [elasticsearch-6.3.0.jar:6.3.0]
  19572 at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.3.0.jar:6.3.0]
  19573 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
  19574 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
  19575 at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

```

and this

```
org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9300] connect_exception
        at org.elasticsearch.transport.TcpChannel.awaitConnected(TcpChannel.java:165) ~[elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:631) ~[elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:123) ~[elasticsearch-6.3.0.jar:6.3.0]
```

---

<div class="post-metadata">

**Author:** ![titan1978](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Post date:** [July 11, 2018, 2:48pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436/5 "2018-07-11T14:48:48Z")

</div>

Found the problem.

Discovery EC2 needs Needs an explicit endpoint added to point to that region. Reason why it worked in the EAST was it looks like US EAST 1 seems to be implicit in EC2 instances brought up in EAST

Adding this to YML fixed it! Note to Devs - Perhaps it might be prudent to add this as a message in INFO as a suggestive tip on discovery-ec2 bootstrapping? (something like a hint? ). Hope this helps anyone googling this.

`discovery.ec2.endpoint: ec2.us-west-2.amazonaws.com`

---

<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 8, 2018, 2:48pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436/6 "2018-08-08T14:48:54Z")

</div>

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