# How to Re-Enable Shard Allocation

**URL:** https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394
**Category:** Elasticsearch
**Created:** [October 14, 2019, 7:27am UTC](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394 "2019-10-14T07:27:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Moritz\_Kiesewetter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moritz_kiesewetter/32/51243_2.png) [@Moritz\_Kiesewetter](https://discuss.elastic.co/u/Moritz_Kiesewetter)
#### Post date: [October 14, 2019, 7:27am UTC](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394/1 "2019-10-14T07:27:08Z")

</div>

So we restarted our Elastic-Cluster last week, today i noticed that there are a lot unassigned Shards.  
I thought my colleagues forgot to turn Shard - Allocation back on, which i can confirm by now.

I now i have to change it back in Order to get my Unassigned Shards away. But now if i try to do

```
 curl -XPUT "http://YY.XX.ZZZ.YXZ:9200/_cluster/settings" -d '{
    "transient" : {
        "cluster.routing.allocation.enable" : "all"
    }
}'

```

i get the following Error : {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

Thanks for you help in advance guys!

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 14, 2019, 8:13am UTC](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394/2 "2019-10-14T08:13:26Z")

</div>

You need to add:

```
-H 'Content-Type: application/json'
```

---

<div class="post-metadata">

### Author: ![Moritz\_Kiesewetter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moritz_kiesewetter/32/51243_2.png) [@Moritz\_Kiesewetter](https://discuss.elastic.co/u/Moritz_Kiesewetter)
#### Post date: [October 14, 2019, 8:20am UTC](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394/3 "2019-10-14T08:20:12Z")

</div>

Thanks man, worked out.  
Cluster is relocating Shards again!

---

<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: [November 11, 2019, 8:20am UTC](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394/4 "2019-11-11T08:20:13Z")

</div>

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