# Elasticsearch cluster is Red , the service is still running

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-is-red-the-service-is-still-running/105959>\
**Category:** Elasticsearch\
**Created:** [October 31, 2017, 9:26pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-is-red-the-service-is-still-running/105959 "2017-10-31T21:26:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linuxhustler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/linuxhustler/32/23655_2.png) [@linuxhustler](https://discuss.elastic.co/u/linuxhustler)\
**Post date:** [October 31, 2017, 9:26pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-is-red-the-service-is-still-running/105959/1 "2017-10-31T21:26:59Z")

</div>

Elasticsearch contains the following: 1 cluster, 1 node, 1 shard, 0 replicas. Added ASA's to send logs to the server and ran out of disk space. Added disk space to the cloud server & tried to reroute it to the primary shard but it did not work. It shows that there are unassigned shards, but it is not assigning the when instructed using the following commands.

curl -XPOST ‘192.168.10.10:9200/\_cluster/reroute?pretty’ -H ‘Content-Type: application/json’ -d’  
{  
“commands” : [  
{  
“allocate\_stale\_primary” : {  
“index” : “graylog\_0”, “shard” : 0,  
“node” : “graylog-node1”,  
“accept\_data\_loss” : true  
}  
}  
]  
}  
’

Output displayed on the CLI:  
“acknowledged” : true,  
“state” : {  
“version” : 4,  
“state\_uuid” : “”,  
“master\_node” : “”,  
“blocks” : { },  
“nodes” : {  
"" : {  
“name” : “graylog-node1”,  
“ephemeral\_id” : “”,  
“transport\_address” : “192.168.10.10:9300”,  
“attributes” : { }  
}  
},  
“routing\_table” : {  
“indices” : {  
“graylog\_0” : {  
“shards” : {  
“0” : [  
{  
“state” : “INITIALIZING”,  
“primary” : true,  
“node” : “”,  
“relocating\_node” : null,  
“shard” : 0,  
“index” : “graylog\_0”,  
“recovery\_source” : {  
“type” : “EXISTING\_STORE”  
},  
“allocation\_id” : {  
“id” : “”  
},  
“unassigned\_info” : {  
“reason” : “CLUSTER\_RECOVERED”,  
“at” : “2017-10-31T14:16:23.605Z”,  
“delayed” : false,  
“allocation\_status” : “no\_valid\_shard\_copy”  
}  
}  
]  
}  
}  
}  
},  
“routing\_nodes” : {  
“unassigned” : [],  
“nodes” : {  
"" : [  
{  
“state” : “INITIALIZING”,  
“primary” : true,  
“node” : “”,  
“relocating\_node” : null,  
“shard” : 0,  
“index” : “graylog\_0”,  
“recovery\_source” : {  
“type” : “EXISTING\_STORE”  
},  
“allocation\_id” : {  
“id” : “”  
},  
“unassigned\_info” : {  
“reason” : “CLUSTER\_RECOVERED”,  
“at” : “2017-10-31T14:16:23.605Z”,  
“delayed” : false,  
“allocation\_status” : “no\_valid\_shard\_copy”  
}  
}  
]  
}  
}  
}  
}

Also,

curl -XGET ‘[http://192.168.10.10:9200/\_cluster/health?pretty=true’](http://192.168.10.10:9200/_cluster/health?pretty=true%E2%80%99) ====\> as shown below

{  
“cluster\_name” : “graylog”,  
“status” : “red”,  
“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” : 1,  
“delayed\_unassigned\_shards” : 0,  
“number\_of\_pending\_tasks” : 0,  
“number\_of\_in\_flight\_fetch” : 0,  
“task\_max\_waiting\_in\_queue\_millis” : 0,  
“active\_shards\_percent\_as\_number” : 0.0  
}

Also,

curl -s -XGET [http://192.168.10.10:9200/\_cat/shards](http://192.168.10.10:9200/_cat/shards) ====\> as shown below

graylog\_0 0 p UNASSIGNED

Need help to troubleshoot and learn from this ?

---

<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:** [November 28, 2017, 9:27pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-is-red-the-service-is-still-running/105959/2 "2017-11-28T21:27:04Z")

</div>

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