# Unassigned dangling\_index\_imported

**URL:** <https://discuss.elastic.co/t/unassigned-dangling-index-imported/97922>\
**Category:** Elasticsearch\
**Created:** [August 22, 2017, 2:13pm UTC](https://discuss.elastic.co/t/unassigned-dangling-index-imported/97922 "2017-08-22T14:13:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vkatsikaros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vkatsikaros/32/110600_2.png) [@vkatsikaros](https://discuss.elastic.co/u/vkatsikaros)\
**Post date:** [August 22, 2017, 4:36pm UTC](https://discuss.elastic.co/t/unassigned-dangling-index-imported/97922/2 "2017-08-22T16:36:30Z")

</div>

After restarting all the cluster nodes one by one, in the end I still got those 4 unassigned shards.

I followed the instructions in [How to resolve the unassigned shards](https://discuss.elastic.co/t/how-to-resolve-the-unassigned-shards/87635) but failed with 400

```auto
$ curl -XPOST 'http://127.0.0.1:9200/_cluster/reroute?pretty' -H 'Content-Type: application/json' -d'
> {
> "commands" : [
> {
> "allocate_stale_primary" : {
> "index" : "logstash-2016.08.23",
> "shard" : 4,
> "node" : "my_node_name",
> "accept_data_loss" : true
> }
> }
> ]
> }
> '
{
  "error" : {
    "root_cause" : [ {
      "type" : "illegal_argument_exception",
      "reason" : "No allocation command factory registered for name [allocate_stale_primary]"
    } ],
    "type" : "illegal_argument_exception",
    "reason" : "No allocation command factory registered for name [allocate_stale_primary]"
  },
  "status" : 400
}

```

I also tried to use the id of the node, not its node name but the result was the same, from

```auto
$ curl -s http://localhost:9200/_nodes?pretty
...
    "3MItGKMuSXiw1YxVIVwKig" : {
      "name" : "my_node_name",
      "transport_address" : "IP:9300",
...

```

---

_[View the full topic](https://discuss.elastic.co/t/unassigned-dangling-index-imported/97922)._
