# Unassigned shards of index - not permitted by any node

**URL:** <https://discuss.elastic.co/t/unassigned-shards-of-index-not-permitted-by-any-node/275766>\
**Category:** Elasticsearch\
**Created:** [June 13, 2021, 3:27pm UTC](https://discuss.elastic.co/t/unassigned-shards-of-index-not-permitted-by-any-node/275766 "2021-06-13T15:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Levy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roy_levy/32/61613_2.png) [@Roy\_Levy](https://discuss.elastic.co/u/Roy_Levy)\
**Post date:** [June 13, 2021, 3:27pm UTC](https://discuss.elastic.co/t/unassigned-shards-of-index-not-permitted-by-any-node/275766/1 "2021-06-13T15:27:09Z")

</div>

Hey,

I'm trying to understand how to fix this issue of unassigned shards in my index:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bbf111e0b247db51b73b349a1f90c9e66fc5965b.png)

When running the `explain` API - I'm getting "no" for allocation:

`"can_allocate" : "no"`

And in each node (9 of them), the deciders bring up the same explanation:

```auto
"node_decision" : "no",
      "deciders" : [
        {
          "decider" : "replica_after_primary_active",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        },
        {
          "decider" : "filter",
          "decision" : "NO",
          "explanation" : """node does not match index setting [index.routing.allocation.require] filters [data:"warm"]"""
        },
        {
          "decider" : "throttling",
          "decision" : "NO",
          "explanation" : "primary shard for this replica is not yet active"
        }
      ]

```

I couldn't resolve this issue or understand the information given by the explain API, and the search and actions on this index seems like they won't work.  
Is there anything I'm missing about this?

---

<div class="post-metadata">

**Author:** ![Iker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iker/32/91708_2.png) [@Iker](https://discuss.elastic.co/u/Iker)\
**Post date:** [June 14, 2021, 4:01am UTC](https://discuss.elastic.co/t/unassigned-shards-of-index-not-permitted-by-any-node/275766/2 "2021-06-14T04:01:07Z")

</div>

Based on the errors in your logs, it appears that some of the shards are marked to be allocated in a warm data node, if you don't have at least the same amount of nodes with warm role, that the primary and replicas requirement specified in the ILM Policy, the allocation for this shards will fail.

---

<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 12, 2021, 4:01am UTC](https://discuss.elastic.co/t/unassigned-shards-of-index-not-permitted-by-any-node/275766/3 "2021-07-12T04:01:18Z")

</div>

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