# Failed shards remain unassigned

**URL:** https://discuss.elastic.co/t/failed-shards-remain-unassigned/13077
**Category:** Elasticsearch
**Created:** [August 5, 2013, 9:02pm UTC](https://discuss.elastic.co/t/failed-shards-remain-unassigned/13077 "2013-08-05T21:02:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Takis\_M](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Takis\_M](https://discuss.elastic.co/u/Takis_M)
#### Post date: [August 5, 2013, 9:02pm UTC](https://discuss.elastic.co/t/failed-shards-remain-unassigned/13077/1 "2013-08-05T21:02:18Z")

</div>

I have set up elasticsearch 0.90.2 on 4 linux VMs (ny01, ny02, nj01, nj02).  
There are 4 shards and 3 replicas for each (each node should have all 4  
shards). There is one index (we'll call it my\_index). Settings that we have  
modified from the defaults:  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.minimum\_master\_nodes: 3  
cluster.routing.allocation.awareness.attributes: datacenter

Today I noticed that nj01 had lost 2 shards and nj02 had lost 1 shard.  
Looking at the logs, I see that after some disconnects around 2013-08-04  
07:00, ny01 tried to send the cluster state to all nodes. It looks like the  
correct cluster state was never fully recovered and these 3 shards remain  
unassigned. This is the logging from nj01 starting at that time.

Any suggestions how to debug why the full state was not recovered?

I have pasted the logs during that time from one of the problematic nodes  
(nj01) and from the master node at the time (ny01):  
ny01: [https://gist.github.com/takism1/312e2bf2d0ff583a235f](https://gist.github.com/takism1/312e2bf2d0ff583a235f)  
nj01: [https://gist.github.com/takism1/0162dda53b4806d7a372](https://gist.github.com/takism1/0162dda53b4806d7a372)

I can post additional information if needed.

Thanks,  
Takis

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:22am UTC](https://discuss.elastic.co/t/failed-shards-remain-unassigned/13077/2 "2017-07-06T02:22:48Z")

</div>


