# Cannot allocate because allocation is not permitted to any of the nodes

**URL:** https://discuss.elastic.co/t/cannot-allocate-because-allocation-is-not-permitted-to-any-of-the-nodes/244530
**Category:** Elasticsearch
**Created:** [August 11, 2020, 10:16am UTC](https://discuss.elastic.co/t/cannot-allocate-because-allocation-is-not-permitted-to-any-of-the-nodes/244530 "2020-08-11T10:16:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dipesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dipesh/32/109848_2.png) [@Dipesh](https://discuss.elastic.co/u/Dipesh)
#### Post date: [August 11, 2020, 10:16am UTC](https://discuss.elastic.co/t/cannot-allocate-because-allocation-is-not-permitted-to-any-of-the-nodes/244530/1 "2020-08-11T10:16:53Z")

</div>

Hi ,

we are facing issue on elasticsearch, when we are adding replica 1 and shrads 1 on templates then  
iml policy is not working properly. indices are not moving from warm to cold phase and delete phase.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/868664a5b12cfef5e12cb05164d575a718a81df4.png)

{  
"index" : "cat-2020.08.11-000001",  
"shard" : 0,  
"primary" : false,  
"current\_state" : "unassigned",  
"unassigned\_info" : {  
"reason" : "INDEX\_CREATED",  
"at" : "2020-08-11T09:57:06.687Z",  
"last\_allocation\_status" : "no\_attempt"  
},  
"can\_allocate" : "no",  
"allocate\_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",  
"node\_allocation\_decisions" : [  
{  
"node\_id" : "qKuQfHfCT3CIzhxP5Q2Brw",  
"node\_name" : "essll03",  
"transport\_address" : "255.255.0.21:9300",  
"node\_attributes" : {  
"ml.machine\_memory" : "3967631360",  
"ml.max\_open\_jobs" : "20",  
"box\_type" : "cold",  
"xpack.installed" : "true",  
"transform.node" : "true"  
},  
"node\_decision" : "no",  
"weight\_ranking" : 1,  
"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 [box\_type:"hot"]"""  
},  
{  
"decider" : "throttling",  
"decision" : "NO",  
"explanation" : "primary shard for this replica is not yet active"  
}  
]  
},  
{  
"node\_id" : "0Dejp5GSSHeoWuq9\_HjlcA",  
"node\_name" : "essll02",  
"transport\_address" : "255.255.0.18:9300",  
"node\_attributes" : {  
"ml.machine\_memory" : "3967631360",  
"ml.max\_open\_jobs" : "20",  
"box\_type" : "warm",  
"xpack.installed" : "true",  
"transform.node" : "true"  
},  
"node\_decision" : "no",  
"weight\_ranking" : 2,  
"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 [box\_type:"hot"]"""  
},  
{  
"decider" : "throttling",  
"decision" : "NO",  
"explanation" : "primary shard for this replica is not yet active"  
}  
]  
},  
{  
"node\_id" : "0fjqByOVSLC730YOiXYsYg",  
"node\_name" : "essll01",  
"transport\_address" : "255.255.0.36:9300",  
"node\_attributes" : {  
"ml.machine\_memory" : "3967635456",  
"box\_type" : "hot",  
"xpack.installed" : "true",  
"transform.node" : "true",  
"ml.max\_open\_jobs" : "20"  
},  
"node\_decision" : "no",  
"weight\_ranking" : 3,  
"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.include] filters [\_name:"non\_existent\_node"]"""  
},  
{  
"decider" : "throttling",  
"decision" : "NO",  
"explanation" : "primary shard for this replica is not yet active"  
}  
]  
}  
]  
}

---

<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: [September 8, 2020, 10:17am UTC](https://discuss.elastic.co/t/cannot-allocate-because-allocation-is-not-permitted-to-any-of-the-nodes/244530/2 "2020-09-08T10:17:04Z")

</div>

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