# Stuck with unassigned shards

**URL:** <https://discuss.elastic.co/t/stuck-with-unassigned-shards/60189>\
**Category:** Elasticsearch\
**Created:** [September 9, 2016, 6:24pm UTC](https://discuss.elastic.co/t/stuck-with-unassigned-shards/60189 "2016-09-09T18:24:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Lavoie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_lavoie/32/8408_2.png) [@Bruno\_Lavoie](https://discuss.elastic.co/u/Bruno_Lavoie)\
**Post date:** [September 9, 2016, 6:24pm UTC](https://discuss.elastic.co/t/stuck-with-unassigned-shards/60189/1 "2016-09-09T18:24:25Z")

</div>

Hello,

Following a forced reboot we're stuck with 117 unassigned shards, and it doesn't move from 2 hours now.

What can we do?

Cluster Health:

```
{
  "cluster_name" : "ELASTIC",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 6,
  "number_of_data_nodes" : 6,
  "active_primary_shards" : 4623,
  "active_shards" : 9129,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 117,
  "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" : 98.73458792991563
}

```

Cluster Settings:

```
{
  "persistent" : {
    "cluster" : {
      "routing" : {
        "allocation" : {
          "enable" : "all"
        }
      }
    },
    "discovery" : {
      "zen" : {
        "minimum_master_nodes" : "3"
      }
    },
    "indices" : {
      "breaker" : {
        "fielddata" : {
          "limit" : "60%"
        }
      }
    }
  },
  "transient" : {
    "cluster" : {
      "routing" : {
        "allocation" : {
          "cluster_concurrent_rebalance" : "12",
          "node_concurrent_recoveries" : "6",
          "node_initial_primaries_recoveries" : "6",
          "enable" : "all"
        }
      }
    },
    "indices" : {
      "recovery" : {
        "concurrent_streams" : "12",
        "translog_size" : "1024kb",
        "max_bytes_per_sec" : "500mb",
        "file_chunk_size" : "1024kb"
      }
    }
  }
}

```

Unasigned shards are only replicas.

What to do to make them allocated?

ES version:

- 5 nodes at 2.3.2
- 1 node at 2.4.0

Thanks  
Bruno

---

<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:** [September 9, 2016, 6:37pm UTC](https://discuss.elastic.co/t/stuck-with-unassigned-shards/60189/2 "2016-09-09T18:37:04Z")

</div>

All nodes in the cluster must be on the same version. The only time you should have clusters with mixed nodes is during a rolling upgrade. Shards allocated to a node with a newer version can not be copied or transferred to a node with an older version if the Lucene version differs. Are the indices with missing replicas by any chance all allocated to the 2.4.0 node?

As you already have some shards on a 2.4.0 node, I would recommend upgrading all the other nodes to 2.4.0 as well.

---

<div class="post-metadata">

**Author:** ![Bruno\_Lavoie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_lavoie/32/8408_2.png) [@Bruno\_Lavoie](https://discuss.elastic.co/u/Bruno_Lavoie)\
**Post date:** [September 9, 2016, 6:38pm UTC](https://discuss.elastic.co/t/stuck-with-unassigned-shards/60189/3 "2016-09-09T18:38:28Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> must be on the same version. The only time you should have clusters with mixed nodes is during a rolling upgrade. Shards allocated to a node with a newer version can not be copied or transferred to a node with an older version if the Lucene version differs. Are the indices with missing replicas by any chance all allocated to the 2.4.0 node?
> 
> As you already have some shards on a 2.4.0 node, I would recommend upgrading all the other nodes to 2.4.0 as well.

yes, thanks, I just saw that pattern...

---

<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 5, 2017, 10:21pm UTC](https://discuss.elastic.co/t/stuck-with-unassigned-shards/60189/4 "2017-07-05T22:21:28Z")

</div>


