# Why can't I reindex?

**URL:** <https://discuss.elastic.co/t/why-cant-i-reindex/156264>\
**Category:** Elasticsearch\
**Created:** [November 12, 2018, 9:39am UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264 "2018-11-12T09:39:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonaspreisler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonaspreisler/32/37421_2.png) [@jonaspreisler](https://discuss.elastic.co/u/jonaspreisler)\
**Post date:** [November 12, 2018, 9:39am UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/1 "2018-11-12T09:39:12Z")

</div>

Everytime I run the command "rake searchkick:reindex CLASS=Vehicle" I get this error:

Elasticsearch::Transport::Transport::Errors::Forbidden: [403] {"error":{"root\_cause":[{"type":"cluster\_block\_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}],"type":"cluster\_block\_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"},"status":403}

How to fix this?

I searched Google and StackOverflow for answers but they didn't work. Here's what I've tried:

- to insert this line in elasticsearch.yml: "cluster.routing.allocation.disk.threshold\_enabled: false"
- to run "Vehicle.search\_index.delete" followed by "Vehicle.reindex" in the console.

Thank you

- Jonas

---

<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:** [November 12, 2018, 10:31am UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/2 "2018-11-12T10:31:28Z")

</div>

This is often a sign that you are running out of disk space and [have exceeded the flood\_stage watermark](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/disk-allocator.html) which by default is set to 95% of disk capacity.

---

<div class="post-metadata">

**Author:** ![jonaspreisler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonaspreisler/32/37421_2.png) [@jonaspreisler](https://discuss.elastic.co/u/jonaspreisler)\
**Post date:** [November 12, 2018, 7:34pm UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/3 "2018-11-12T19:34:12Z")

</div>

Hello Christian

Thank you for reply.

Do you know of any solution to this?

I look at the page you linked to and I guess that I should place the following lines somewhere.. is it correct? And where?:

PUT /twitter/\_settings  
{  
"index.blocks.read\_only\_allow\_delete": null  
}

Thank you

- Jonas

---

<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:** [November 12, 2018, 7:44pm UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/4 "2018-11-12T19:44:53Z")

</div>

Have you first free up disk space?

---

<div class="post-metadata">

**Author:** ![jonaspreisler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonaspreisler/32/37421_2.png) [@jonaspreisler](https://discuss.elastic.co/u/jonaspreisler)\
**Post date:** [November 12, 2018, 8:33pm UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/5 "2018-11-12T20:33:55Z")

</div>

Do you mean free disk space on my laptop? On Heroku? On where?  
Trying to free up 10 GB on the laptop now..

I get the same error on the local app and on the deployed app.

---

<div class="post-metadata">

**Author:** ![jonaspreisler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonaspreisler/32/37421_2.png) [@jonaspreisler](https://discuss.elastic.co/u/jonaspreisler)\
**Post date:** [November 12, 2018, 9:39pm UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/6 "2018-11-12T21:39:51Z")

</div>

Just freed up 11 gigabytes... the error persists locally... but seems to work in Heroku now.

---

<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:** [December 10, 2018, 9:39pm UTC](https://discuss.elastic.co/t/why-cant-i-reindex/156264/7 "2018-12-10T21:39:52Z")

</div>

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