# Waited for 30s and no initial state was set by the discovery

**URL:** <https://discuss.elastic.co/t/waited-for-30s-and-no-initial-state-was-set-by-the-discovery/22271>\
**Category:** Elasticsearch\
**Created:** [February 19, 2015, 6:04pm UTC](https://discuss.elastic.co/t/waited-for-30s-and-no-initial-state-was-set-by-the-discovery/22271 "2015-02-19T18:04:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtuck9](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dtuck9](https://discuss.elastic.co/u/dtuck9)\
**Post date:** [February 19, 2015, 6:04pm UTC](https://discuss.elastic.co/t/waited-for-30s-and-no-initial-state-was-set-by-the-discovery/22271/1 "2015-02-19T18:04:51Z")

</div>

I know other people have posted this, but I've tried everything that the  
other threads have said to try. We keep getting this at startup of our  
java node client:

INFO [2015-02-19 17:57:45,206] org.elasticsearch.node: [localhost]  
version[1.4.2], pid[11103], build[927caff/2014-12-16T14:11:12Z]  
INFO [2015-02-19 17:57:45,207] org.elasticsearch.node: [localhost]  
initializing ...  
INFO [2015-02-19 17:57:45,217] org.elasticsearch.plugins: [localhost]  
loaded [cloud-aws], sites []  
INFO [2015-02-19 17:57:47,625] org.elasticsearch.node: [localhost]  
initialized  
INFO [2015-02-19 17:57:47,625] org.elasticsearch.node: [localhost]  
starting ...  
INFO [2015-02-19 17:57:47,716] org.elasticsearch.transport: [localhost]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.99.157.0:9300]}  
INFO [2015-02-19 17:57:49,747] org.elasticsearch.discovery: [localhost]  
elasticsearch-dev/EqKAxZm9SCutQGd-0\_SonA  
WARN [2015-02-19 17:58:19,749] org.elasticsearch.discovery: [localhost]  
waited for 30s and no initial state was set by the discovery  
INFO [2015-02-19 17:58:19,761] org.elasticsearch.http: [localhost]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address  
{inet[/10.99.157.0:9200]}  
INFO [2015-02-19 17:58:19,761] org.elasticsearch.node: [localhost] started

This is the elasticsearch.yml on our master (and only data node right now):

plugin.mandatory: cloud-aws  
cloud:  
aws:  
region: us-west-2  
access\_key: \<ACCESS\_KEY\>  
secret\_key: \<SECRET\_KEY\>

discovery:  
type: ec2  
ec2:  
groups: DevAll

And this is our java node client:

Settings settings = ImmutableSettings.settingsBuilder()  
.put("node.name", nodeName)  
.put("cloud.aws.access\_key", awsAccessKey)  
.put("cloud.aws.secret\_key", awsSecretKey)  
.put("cloud.node.auto\_attributes", true)  
.put("discovery.type", "ec2")  
.build();  
this.node = nodeBuilder()  
.clusterName(clusterName)  
.settings(settings)  
.client(true)  
.node();  
this.client = node.client();

Any help would be greatly appreciated!!!

--  
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/15f03a06-58a8-4ef3-9a73-93fc779dd6e1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15f03a06-58a8-4ef3-9a73-93fc779dd6e1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dtuck9](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dtuck9](https://discuss.elastic.co/u/dtuck9)\
**Post date:** [February 19, 2015, 6:32pm UTC](https://discuss.elastic.co/t/waited-for-30s-and-no-initial-state-was-set-by-the-discovery/22271/2 "2015-02-19T18:32:36Z")

</div>

Additional information - we can telnet into or ES server from our  
application server on 9300.

On Thursday, February 19, 2015 at 10:04:51 AM UTC-8, Diana Tuck wrote:

> I know other people have posted this, but I've tried everything that the  
> other threads have said to try. We keep getting this at startup of our  
> java node client:
> 
> INFO [2015-02-19 17:57:45,206] org.elasticsearch.node: [localhost]  
> version[1.4.2], pid[11103], build[927caff/2014-12-16T14:11:12Z]  
> INFO [2015-02-19 17:57:45,207] org.elasticsearch.node: [localhost]  
> initializing ...  
> INFO [2015-02-19 17:57:45,217] org.elasticsearch.plugins: [localhost]  
> loaded [cloud-aws], sites   
> INFO [2015-02-19 17:57:47,625] org.elasticsearch.node: [localhost]  
> initialized  
> INFO [2015-02-19 17:57:47,625] org.elasticsearch.node: [localhost]  
> starting ...  
> INFO [2015-02-19 17:57:47,716] org.elasticsearch.transport: [localhost]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 10.99.157.0:9300]}  
> INFO [2015-02-19 17:57:49,747] org.elasticsearch.discovery: [localhost]  
> elasticsearch-dev/EqKAxZm9SCutQGd-0\_SonA  
> WARN [2015-02-19 17:58:19,749] org.elasticsearch.discovery: [localhost]  
> waited for 30s and no initial state was set by the discovery  
> INFO [2015-02-19 17:58:19,761] org.elasticsearch.http: [localhost]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/  
> 10.99.157.0:9200]}  
> INFO [2015-02-19 17:58:19,761] org.elasticsearch.node: [localhost] started
> 
> This is the elasticsearch.yml on our master (and only data node right now):
> 
> plugin.mandatory: cloud-aws  
> cloud:  
> aws:  
> region: us-west-2  
> access\_key: \<ACCESS\_KEY\>  
> secret\_key: \<SECRET\_KEY\>
> 
> discovery:  
> type: ec2  
> ec2:  
> groups: DevAll
> 
> And this is our java node client:
> 
> Settings settings = ImmutableSettings.settingsBuilder()  
> .put("node.name", nodeName)  
> .put("cloud.aws.access\_key", awsAccessKey)  
> .put("cloud.aws.secret\_key", awsSecretKey)  
> .put("cloud.node.auto\_attributes", true)  
> .put("discovery.type", "ec2")  
> .build();  
> this.node = nodeBuilder()  
> .clusterName(clusterName)  
> .settings(settings)  
> .client(true)  
> .node();  
> this.client = node.client();
> 
> Any help would be greatly appreciated!!!

--  
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/f57f1be2-cda0-42c2-9001-33fa29b1a111%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f57f1be2-cda0-42c2-9001-33fa29b1a111%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:31am UTC](https://discuss.elastic.co/t/waited-for-30s-and-no-initial-state-was-set-by-the-discovery/22271/3 "2017-07-06T00:31:28Z")

</div>


