# Elastic Search Cluster is in yellow state due to a shard in an index always stuck in INITIALIZING mode

**URL:** <https://discuss.elastic.co/t/elastic-search-cluster-is-in-yellow-state-due-to-a-shard-in-an-index-always-stuck-in-initializing-mode/73787>\
**Category:** Elasticsearch\
**Created:** [February 3, 2017, 5:09am UTC](https://discuss.elastic.co/t/elastic-search-cluster-is-in-yellow-state-due-to-a-shard-in-an-index-always-stuck-in-initializing-mode/73787 "2017-02-03T05:09:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![narendra\_reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narendra_reddy/32/10583_2.png) [@narendra\_reddy](https://discuss.elastic.co/u/narendra_reddy)\
**Post date:** [February 3, 2017, 5:09am UTC](https://discuss.elastic.co/t/elastic-search-cluster-is-in-yellow-state-due-to-a-shard-in-an-index-always-stuck-in-initializing-mode/73787/1 "2017-02-03T05:09:44Z")

</div>

Below is my shard output,

I have tried restarting the node however its still not working, if its UNASSIGNED

I can fix that however its stuck as Initializing mode only, any suggestions plz

curl -XGET '[http://localhost:9200/\_cluster/health/a\_events?level=shards&pretty=true](http://localhost:9200/_cluster/health/a_events?level=shards&pretty=true)'  
{  
"cluster\_name" : “PROD”,  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 6,  
"number\_of\_data\_nodes" : 6,  
"active\_primary\_shards" : 5,  
"active\_shards" : 9,  
"relocating\_shards" : 0,  
"initializing\_shards" : 1,  
"unassigned\_shards" : 0,  
"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" : 99.97614503816794,  
"indices" : {  
“a\_events" : {  
"status" : "yellow",  
"number\_of\_shards" : 5,  
"number\_of\_replicas" : 1,  
"active\_primary\_shards" : 5,  
"active\_shards" : 9,  
"relocating\_shards" : 0,  
"initializing\_shards" : 1,  
"unassigned\_shards" : 0,  
"shards" : {  
"0" : {  
"status" : "green",  
"primary\_active" : true,  
"active\_shards" : 2,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0  
},  
"1" : {  
"status" : "green",  
"primary\_active" : true,  
"active\_shards" : 2,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0  
},  
"2" : {  
"status" : "green",  
"primary\_active" : true,  
"active\_shards" : 2,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0  
},  
"3" : {  
"status" : "green",  
"primary\_active" : true,  
"active\_shards" : 2,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0  
},  
"4" : {  
"status" : "yellow",  
"primary\_active" : true,  
"active\_shards" : 1,  
"relocating\_shards" : 0,  
"initializing\_shards" : 1,  
"unassigned\_shards" : 0  
}  
}  
}  
}  
}

---

<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:** [February 5, 2017, 9:40am UTC](https://discuss.elastic.co/t/elastic-search-cluster-is-in-yellow-state-due-to-a-shard-in-an-index-always-stuck-in-initializing-mode/73787/2 "2017-02-05T09:40:57Z")

</div>

Check your master logs.

You can also remove the replica set and then readd a "new" one, it might help.

---

<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:** [March 5, 2017, 9:40am UTC](https://discuss.elastic.co/t/elastic-search-cluster-is-in-yellow-state-due-to-a-shard-in-an-index-always-stuck-in-initializing-mode/73787/3 "2017-03-05T09:40:59Z")

</div>

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