# Cluster state and S3 gateway

**URL:** https://discuss.elastic.co/t/cluster-state-and-s3-gateway/3649
**Category:** Elasticsearch
**Created:** [December 10, 2010, 6:04pm UTC](https://discuss.elastic.co/t/cluster-state-and-s3-gateway/3649 "2010-12-10T18:04:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![James\_Cook](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@James\_Cook](https://discuss.elastic.co/u/James_Cook)
#### Post date: [December 10, 2010, 6:04pm UTC](https://discuss.elastic.co/t/cluster-state-and-s3-gateway/3649/1 "2010-12-10T18:04:41Z")

</div>

Here is a gist of my log files: [https://gist.github.com/736518](https://gist.github.com/736518)

I am using ES 0.13.0, and the gist includes the elastic search properties.

When I use a gateway.type of none, the server node starts up and the cluster  
health is GREEN.

When the server node starts up, its cluster health is RED and remains RED,  
even after waiting for the status to change to YELLOW.

Here is the code I use to start the server and wait for YELLOW.

server = nodeBuilder()  
.settings(ImmutableSettings.settingsBuilder().put(configuration))  
.build();  
server.start();  
getClient().admin().cluster().prepareHealth()  
.setWaitForYellowStatus()  
.setTimeout("30s")  
.execute().actionGet();  
ClusterHealthResponse healthResponse = getClient().admin().cluster()  
.prepareHealth()  
.execute().actionGet();  
LOG.info("ES cluster status is " + healthResponse.getStatus()); // RED?

Any help would be welcome.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [December 11, 2010, 8:49pm UTC](https://discuss.elastic.co/t/cluster-state-and-s3-gateway/3649/2 "2010-12-11T20:49:29Z")

</div>

Based on the gist, there were no indices to be created, right?  
On Friday, December 10, 2010 at 8:04 PM, James Cook wrote:

> Here is a gist of my log files: [gist:736518 · GitHub](https://gist.github.com/736518)
> 
> I am using ES 0.13.0, and the gist includes the Elasticsearch properties.
> 
> When I use a gateway.type of none, the server node starts up and the cluster health is GREEN.
> 
> When the server node starts up, its cluster health is RED and remains RED, even after waiting for the status to change to YELLOW.
> 
> Here is the code I use to start the server and wait for YELLOW.
> 
> server = nodeBuilder()  
> .settings(ImmutableSettings.settingsBuilder().put(configuration))  
> .build();
> 
> server.start();  
> getClient().admin().cluster().prepareHealth()  
> .setWaitForYellowStatus()  
> .setTimeout("30s")  
> .execute().actionGet();
> 
> ClusterHealthResponse healthResponse = getClient().admin().cluster()  
> .prepareHealth()  
> .execute().actionGet();
> 
> LOG.info("ES cluster status is " + healthResponse.getStatus()); // RED?
> 
> Any help would be welcome.

---

<div class="post-metadata">

### Author: ![James\_Cook](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@James\_Cook](https://discuss.elastic.co/u/James_Cook)
#### Post date: [December 13, 2010, 2:11am UTC](https://discuss.elastic.co/t/cluster-state-and-s3-gateway/3649/3 "2010-12-13T02:11:28Z")

</div>

This is a first time run on EC2, so the gateway held no index data.

-- jim

On Sat, Dec 11, 2010 at 3:49 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Based on the gist, there were no indices to be created, right?
> 
> On Friday, December 10, 2010 at 8:04 PM, James Cook wrote:
> 
> Here is a gist of my log files: [gist:736518 · GitHub](https://gist.github.com/736518)
> 
> I am using ES 0.13.0, and the gist includes the Elasticsearch properties.
> 
> When I use a gateway.type of none, the server node starts up and the  
> cluster health is GREEN.
> 
> When the server node starts up, its cluster health is RED and remains RED,  
> even after waiting for the status to change to YELLOW.
> 
> Here is the code I use to start the server and wait for YELLOW.
> 
> server = nodeBuilder()  
> .settings(ImmutableSettings.settingsBuilder().put(configuration))  
> .build();  
> server.start();  
> getClient().admin().cluster().prepareHealth()  
> .setWaitForYellowStatus()  
> .setTimeout("30s")  
> .execute().actionGet();  
> ClusterHealthResponse healthResponse = getClient().admin().cluster()  
> .prepareHealth()  
> .execute().actionGet();  
> LOG.info("ES cluster status is " + healthResponse.getStatus()); // RED?
> 
> Any help would be welcome.

---

<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, 4:15am UTC](https://discuss.elastic.co/t/cluster-state-and-s3-gateway/3649/4 "2017-07-06T04:15:25Z")

</div>


