# I Have a Recovered cluster but unassigned can some one help

**URL:** https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461
**Category:** Elasticsearch
**Created:** [July 25, 2017, 10:25am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461 "2017-07-25T10:25:33Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Danny\_Crossby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danny_crossby/32/18527_2.png) [@Danny\_Crossby](https://discuss.elastic.co/u/Danny_Crossby)
#### Post date: [July 25, 2017, 10:25am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/1 "2017-07-25T10:25:33Z")

</div>

99abc 4 r UNASSIGNED CLUSTER\_RECOVERED  
99abc 2 r UNASSIGNED CLUSTER\_RECOVERED  
99abc 1 r UNASSIGNED CLUSTER\_RECOVERED  
99abc 3 r UNASSIGNED CLUSTER\_RECOVERED  
99abc 0 r UNASSIGNED CLUSTER\_RECOVERED

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 25, 2017, 10:37am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/2 "2017-07-25T10:37:02Z")

</div>

If it's a cloud instance, please read [https://discuss.elastic.co/t/now-live-new-elastic-cloud-standard-support/841611](https://discuss.elastic.co/t/now-live-new-elastic-cloud-standard-support/841611) for how to request support for Elastic Cloud 🙂

---

<div class="post-metadata">

### Author: ![Danny\_Crossby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danny_crossby/32/18527_2.png) [@Danny\_Crossby](https://discuss.elastic.co/u/Danny_Crossby)
#### Post date: [July 25, 2017, 10:46am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/3 "2017-07-25T10:46:30Z")

</div>

no its not cloud instance

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 25, 2017, 11:33am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/4 "2017-07-25T11:33:51Z")

</div>

Can you give more details then about what and how this happened. What are the logs? Any pending tasks ?

---

<div class="post-metadata">

### Author: ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)
#### Post date: [July 25, 2017, 11:48am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/5 "2017-07-25T11:48:34Z")

</div>

I ran into same issue. After cluster recovery due to the network connectivity issue, 20 shards from 2 indices are in UNASSIGNED state for the time series index. Now the cluster state is RED. Looking into the option of recovering those UNASSIGNED indices so that the cluster state can become GREEN. No pending tasks as such.

---

<div class="post-metadata">

### Author: ![Danny\_Crossby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danny_crossby/32/18527_2.png) [@Danny\_Crossby](https://discuss.elastic.co/u/Danny_Crossby)
#### Post date: [July 25, 2017, 1:17pm UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/6 "2017-07-25T13:17:51Z")

</div>

if u can please help on this error

ES2.2.0

```
{
   "error":{
      "root_cause":[
         {
            "type":"illegal_argument_exception",
            "reason":"[allocate] allocation of [99ats][0] on node {Silhouette}{XGIzwCotTNSoYDiTiJgw5Q}{127.0.0.1}{127.0.0.1:9300} is not allowed, reason: [YES(allocation disabling is ignored)][YES(no allocation awareness enabled)][YES(no active primary shard yet)][YES(total shard limit disabled: [index: -1, cluster: -1] <= 0)][YES(node passes include/exclude/require filters)][THROTTLE(too many shards currently recovering [4], limit: [2])][YES(allocation disabling is ignored)][YES(only a single data node is present)][NO(primary shard is not yet active)][NO(shard cannot be allocated on same node [XGIzwCotTNSoYDiTiJgw5Q] it already exists on)][YES(shard not primary or relocation disabled)]"
         }
      ],
      "type":"illegal_argument_exception",
      "reason":"[allocate] allocation of [99ats][0] on node {Silhouette}{XGIzwCotTNSoYDiTiJgw5Q}{127.0.0.1}{127.0.0.1:9300} is not allowed, reason: [YES(allocation disabling is ignored)][YES(no allocation awareness enabled)][YES(no active primary shard yet)][YES(total shard limit disabled: [index: -1, cluster: -1] <= 0)][YES(node passes include/exclude/require filters)][THROTTLE(too many shards currently recovering [4], limit: [2])][YES(allocation disabling is ignored)][YES(only a single data node is present)][NO(primary shard is not yet active)][NO(shard cannot be allocated on same node [XGIzwCotTNSoYDiTiJgw5Q] it already exists on)][YES(shard not primary or relocation disabled)]"
   },
   "status":400
}
```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 25, 2017, 1:52pm UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/7 "2017-07-25T13:52:22Z")

</div>

Please format your code. I edited your post to make that readable.

> too many shards currently recovering [4], limit: [2]

I believe you need to wait that the first 2 shards are finished recovering.

It's unclear to me what command you actually ran and the reason you are in this situation.

BTW you should upgrade to latest 2.x version.

---

<div class="post-metadata">

### Author: ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)
#### Post date: [July 26, 2017, 6:47am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/8 "2017-07-26T06:47:37Z")

</div>

Let me know If I have to have a different post. Just don't wanted to interfere in this conversation. After the cluster recovery two time series indices were in UNASSIGNED state. Any idea why it happens during cluster recovery and how to recover the UNASSIGNED shards? Since the Primary is also in UNASSIGNED state, the cluster is RED. I don't want to delete those indices.

---

<div class="post-metadata">

### Author: ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)
#### Post date: [July 26, 2017, 6:49am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/9 "2017-07-26T06:49:38Z")

</div>

The elasticsearch version is 5.4.3.

---

<div class="post-metadata">

### Author: ![Danny\_Crossby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danny_crossby/32/18527_2.png) [@Danny\_Crossby](https://discuss.elastic.co/u/Danny_Crossby)
#### Post date: [July 26, 2017, 7:01am UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/10 "2017-07-26T07:01:38Z")

</div>

```auto
$ curl -XGET localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
99ats 3 r UNASSIGNED CLUSTER_RECOVERED
99ats 1 r UNASSIGNED CLUSTER_RECOVERED
99ats 4 r UNASSIGNED CLUSTER_RECOVERED
99ats 2 p UNASSIGNED ALLOCATION_FAILED
99ats 2 r UNASSIGNED CLUSTER_RECOVERED
99ats 0 r UNASSIGNED CLUSTER_RECOVERED

```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 27, 2017, 4:06pm UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/11 "2017-07-27T16:06:33Z")

</div>

Yes open another thread as it will be confusing otherwise.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 27, 2017, 4:07pm UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/12 "2017-07-27T16:07:20Z")

</div>

What is the status on this now?

> 99ats 2 p UNASSIGNED ALLOCATION\_FAILED

I believe you should see things in logs.

---

<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: [August 24, 2017, 4:07pm UTC](https://discuss.elastic.co/t/i-have-a-recovered-cluster-but-unassigned-can-some-one-help/94461/13 "2017-08-24T16:07:34Z")

</div>

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