# Unavailable Shards Exception Not enough active copies to meet write consistency of \[QUORUM\] (have 1, needed 2)

**URL:** <https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501>\
**Category:** Elasticsearch\
**Created:** [January 19, 2016, 5:58am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501 "2016-01-19T05:58:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [January 19, 2016, 5:58am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501/1 "2016-01-19T05:58:43Z")

</div>

Hi All,

We are using ES version 1.7.2 in Production cluster. ES cluster has 3 different physical servers.  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/44b791207a84d7f4386dc702464c14f849af435b.png)

We have 3 indices such as es\_chr, es\_cval & es\_item  
Sync job is running everyday for all indices. Yesterday during sync process we have got the following error in log table,

{"took":60005,"errors":true,"items":[{"index":{"\_index":"es\_item","\_type":"item","\_id":"4147177","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4152883","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4184942","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4184965","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4213047","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4250468","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4252967","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4258221","\_version":3,"status":200}},{"index":  
**{"\_index":"es\_item","\_type":"item","\_id":"4259973","status":503,"error":"RemoteTransportException[[dayrhebfmp004\_PROD\_DATA][inet[/10.7.147.24:9260]][indices:data/write/bulk[s]]]; nested: UnavailableShardsException[[es\_item][10] Not enough active copies to meet write consistency of [QUORUM] (have 1, needed 2). Timeout: [1m], request: org.elasticsearch.action.bulk.BulkShardRequest@79a16f00]; "}}**  
,{"index":{"\_index":"es\_item","\_type":"item","\_id":"4287757","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4312951","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4312952","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4343722","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4351480","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4357696","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4377898","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4385688","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4385942","\_version":3,"status":200}},{"index":{"\_index":"es\_item","\_type":"item","\_id":"4415438","\_version":3,"status":200}},{"index":  
**{"\_index":"es\_item","\_type":"item","\_id":"4415669","status":503,"error":"RemoteTransportException[[dayrhebfmp004\_PROD\_DATA][inet[/10.7.147.24:9260]][indices:data/write/bulk[s]]]; nested: UnavailableShardsException[[es\_item][10] Not enough active copies to meet write consistency of [QUORUM] (have 1, needed 2). Timeout: [1m], request: org.elasticsearch.action.bulk.BulkShardRequest@79a16f00]; "}}**

Some of the items were indexed properly but some items were failed to do so.

Is there any reason Why I am getting an error during sync job process?

Please kindly help me this..

Thanks,  
Ganeshbabu R

---

<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:** [January 19, 2016, 6:58am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501/2 "2016-01-19T06:58:52Z")

</div>

Are you specifying write consistency?  
How many replicas do you have?

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [January 19, 2016, 7:04am UTC](https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501/3 "2016-01-19T07:04:17Z")

</div>

No @warkolm I didn't use write consistency.

I have given replica as "2"

Regards,  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![vb3](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@vb3](https://discuss.elastic.co/u/vb3)\
**Post date:** [April 12, 2016, 6:11pm UTC](https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501/4 "2016-04-12T18:11:19Z")

</div>

+1 any updates?

---

<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, 10:59pm UTC](https://discuss.elastic.co/t/unavailable-shards-exception-not-enough-active-copies-to-meet-write-consistency-of-quorum-have-1-needed-2/39501/5 "2017-07-05T22:59:57Z")

</div>


