# Shard stuck in INITIALIZING state

**URL:** <https://discuss.elastic.co/t/shard-stuck-in-initializing-state/86468>\
**Category:** Elasticsearch\
**Created:** [May 19, 2017, 5:10pm UTC](https://discuss.elastic.co/t/shard-stuck-in-initializing-state/86468 "2017-05-19T17:10:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dipathak](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@dipathak](https://discuss.elastic.co/u/dipathak)\
**Post date:** [May 19, 2017, 5:10pm UTC](https://discuss.elastic.co/t/shard-stuck-in-initializing-state/86468/1 "2017-05-19T17:10:30Z")

</div>

We are using ES 5.2 on12 nodes cluster. Somehow the cluster went into "red" state and some primary shards went into UNASSIGNED state. After long time, 4-5 hours, one shard in still stuck in INITIALIZING state. Can someone tell me what things to look at.  
Thanks.

```
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open cauditindex kBu8IEv1Tqy3-eimaO8Gdg 5 2 15905 0 8.6mb 2.8mb
green open objindex ZZdSUrs8QMCeMHRphXXx3Q 5 2 134 59 8.9mb 2.9mb
red open cfileindex CxQi4EfpS_mLOYPgpM08hQ 10 2 919143416 230061071 563.2gb 187.7gb

  "0" : [
    {
      "state" : "INITIALIZING",
      "primary" : true,
      "node" : "vwIn7fqDRAyszPpi0HCC1w",
      "relocating_node" : null,
      "shard" : 0,
      "index" : "cfileindex",
      "recovery_source" : {
        "type" : "EXISTING_STORE"
      },
      "allocation_id" : {
        "id" : "wQl5llnaSCSbWov34fpepA"
      },
      "unassigned_info" : {
        "reason" : "CLUSTER_RECOVERED",
        "at" : "2017-05-19T16:12:12.211Z",
        "delayed" : false,
        "allocation_status" : "fetching_shard_data"
      }
    },
```

---

<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:** [May 20, 2017, 10:45pm UTC](https://discuss.elastic.co/t/shard-stuck-in-initializing-state/86468/2 "2017-05-20T22:45:44Z")

</div>

Try using [https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-allocation-explain.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-allocation-explain.html) to find out what is happening.

---

<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 17, 2017, 10:45pm UTC](https://discuss.elastic.co/t/shard-stuck-in-initializing-state/86468/3 "2017-06-17T22:45:46Z")

</div>

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