# Active\_primary\_shard is NULL

**URL:** <https://discuss.elastic.co/t/active-primary-shard-is-null/39619>\
**Category:** Elasticsearch\
**Created:** [January 20, 2016, 5:53am UTC](https://discuss.elastic.co/t/active-primary-shard-is-null/39619 "2016-01-20T05:53:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krish0608](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krish0608/32/6797_2.png) [@krish0608](https://discuss.elastic.co/u/krish0608)\
**Post date:** [January 20, 2016, 5:53am UTC](https://discuss.elastic.co/t/active-primary-shard-is-null/39619/1 "2016-01-20T05:53:24Z")

</div>

hi all,

I am Facing new error please guys help me out.

{  
"cluster\_name": "elastic-es",  
"status": "red",  
"timed\_out": false,  
"number\_of\_nodes": 3,  
"number\_of\_data\_nodes": 2,  
"active\_primary\_shards": 0,  
"active\_shards": 0,  
"relocating\_shards": 0,  
"initializing\_shards": 8,  
"unassigned\_shards": 32,  
"delayed\_unassigned\_shards": 0,  
"number\_of\_pending\_tasks": 0,  
"number\_of\_in\_flight\_fetch": 0  
}

My active primary Shard is Showing Null.I have 1 master and 2 data node.

---

<div class="post-metadata">

**Author:** ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)\
**Post date:** [January 20, 2016, 8:44pm UTC](https://discuss.elastic.co/t/active-primary-shard-is-null/39619/2 "2016-01-20T20:44:46Z")

</div>

Hi,

Did you get retrieve this cluster status when your cluster was just coming up? Because it says you have 8 shards that are still in the initializing phase (i.e. they are not ready yet). Its possible the cluster was still initializing when you ran the health check. Your cluster is red because you have no active primary shards available. Anytime a shard doesn't have an active primary (and no replicas to promote to primary), the cluster will be red until a primary is recovered.

How many primary shards and how many replicas did you allocate for your index(es) in the cluster?

---

<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 5, 2017, 11:22pm UTC](https://discuss.elastic.co/t/active-primary-shard-is-null/39619/3 "2017-07-05T23:22:55Z")

</div>


