# Cluster green but primary shard errors

**URL:** <https://discuss.elastic.co/t/cluster-green-but-primary-shard-errors/87630>\
**Category:** Elasticsearch\
**Created:** [May 30, 2017, 8:16pm UTC](https://discuss.elastic.co/t/cluster-green-but-primary-shard-errors/87630 "2017-05-30T20:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Giagnocavo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_giagnocavo/32/941_2.png) [@Michael\_Giagnocavo](https://discuss.elastic.co/u/Michael_Giagnocavo)\
**Post date:** [May 30, 2017, 8:16pm UTC](https://discuss.elastic.co/t/cluster-green-but-primary-shard-errors/87630/1 "2017-05-30T20:16:26Z")

</div>

I am getting sporadic failures from Elasticsearch. I've seen these two errors:

Primary shard is not active or isn't assigned to a known node. Timeout: [1m]  
and  
NoShardAvailableActionException

But the cluster state is green, and all shards are assigned. There's no errors in the logfile. I was on 5.3.2 and upgraded to 5.4.0, same issue. There is enough RAM free, and over 70% disk free. Both nodes can connect to each other on port 9300.

How should I go about troubleshooting this? It doesn't happen on-demand - sometimes the same index request will fail then succeed a minute later.

Health:  
{  
"cluster\_name" : "nx-stg1",  
"status" : "green",  
"timed\_out" : false,  
"number\_of\_nodes" : 2,  
"number\_of\_data\_nodes" : 2,  
"active\_primary\_shards" : 9,  
"active\_shards" : 12,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"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" : 100.0  
}

---

<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:** [June 27, 2017, 8:17pm UTC](https://discuss.elastic.co/t/cluster-green-but-primary-shard-errors/87630/2 "2017-06-27T20:17:01Z")

</div>

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