# Unable to find any unassigned shards

**URL:** <https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 12, 2019, 7:16pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294 "2019-07-12T19:16:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)\
**Post date:** [July 12, 2019, 7:16pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/1 "2019-07-12T19:16:49Z")

</div>

Hi,  
I am getting below error while accessing the cluster allocation through dev console with below command

`GET _cluster/allocation/explain?pretty`

I tried many forum solutions but still i am getting the same. Elk version is 7.2

```
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"
  },
  "status": 400
}
```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 13, 2019, 9:08am UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/2 "2019-07-13T09:08:45Z")

</div>

What is the state of your cluster? How large is it?

---

<div class="post-metadata">

**Author:** ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)\
**Post date:** [July 15, 2019, 1:16pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/3 "2019-07-15T13:16:29Z")

</div>

My cluster is having 3 data nodes and 3 master nodes.

```
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
xxx.xx.xx.x 55 62 0 0.00 0.01 0.05 mi * xxxxxxxxxxx
xxx.xx.xx.x 64 98 1 0.03 0.07 0.05 di - xxxxxxxxxxx
xxx.xx.xx.x 63 96 4 0.20 0.27 0.22 di - xxxxxxxxxxx
xxx.xx.xx.x 21 43 0 0.00 0.01 0.05 mi - xxxxxxxxxxx
xxx.xx.xx.x 34 42 0 0.00 0.01 0.05 mi - xxxxxxxxxxx
xxx.xx.xx.x 58 80 4 0.13 0.30 0.21 di - xxxxxxxxxxx

```

The cluster state is green.

```
{
  "cluster_name" : "elkstack",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 6,
  "number_of_data_nodes" : 3,
  "active_primary_shards" : 59,
  "active_shards" : 118,
  "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:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 15, 2019, 6:14pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/4 "2019-07-15T18:14:00Z")

</div>

All your shards are allocated so all is well.

---

<div class="post-metadata">

**Author:** ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)\
**Post date:** [July 15, 2019, 6:31pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/5 "2019-07-15T18:31:38Z")

</div>

thanks much, but why `GET _cluster/allocation/explain?pretty` is giving error ? any idea ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 15, 2019, 6:36pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/6 "2019-07-15T18:36:17Z")

</div>

It says it can not find any problem shards to explain, which is a good position to be in.

---

<div class="post-metadata">

**Author:** ![Senthil\_ak](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Senthil\_ak](https://discuss.elastic.co/u/Senthil_ak)\
**Post date:** [July 15, 2019, 6:48pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/7 "2019-07-15T18:48:33Z")

</div>

ok thanks

---

<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 12, 2019, 6:48pm UTC](https://discuss.elastic.co/t/unable-to-find-any-unassigned-shards/190294/8 "2019-08-12T18:48:38Z")

</div>

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