# Document Index error:- index \[....\] blocked by: \[FORBIDDEN/12/index read-only / allow delete (api)\]

**URL:** https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833
**Category:** Elasticsearch
**Created:** [January 21, 2020, 8:19am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833 "2020-01-21T08:19:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![krushnakantB](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krushnakantB](https://discuss.elastic.co/u/krushnakantB)
#### Post date: [January 21, 2020, 8:19am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833/1 "2020-01-21T08:19:01Z")

</div>

Hi All,

As I mentioned in the subject we got an error like blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]. For this I have checked that it might be low disk space. But in our case we have free space of 56GB is available out of 100GB in ES Index drive and rootfs have 38GB free space out of 50GB and in the configuration we haven't mention any low disk watermark settings yet. We are using Elasticsearch 7.2.0 and Developer is inserting data through REST API.

Please help to resolve this issue.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [January 21, 2020, 8:23am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833/2 "2020-01-21T08:23:03Z")

</div>

It's almost certainly due to low disk space, maybe in the past, even if there is enough disk space today. Check your logs for messages from the `DiskThresholdMonitor`. The only other possible explanation is that someone set `index.blocks.read_only_allow_delete: true` manually.

---

<div class="post-metadata">

### Author: ![krushnakantB](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krushnakantB](https://discuss.elastic.co/u/krushnakantB)
#### Post date: [January 21, 2020, 9:19am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833/3 "2020-01-21T09:19:50Z")

</div>

Hi David,

Thanks for reply. In log I haven't find any errors for law disk. Can you help me that how to figure out that **index.blocks.read\_only\_allow\_delete: true** is enabled or not? and How to solve the same?

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [January 21, 2020, 9:41am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833/4 "2020-01-21T09:41:03Z")

</div>

It's just an index setting so you use the [get index settings API](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/indices-get-settings.html) to observe it and the [update index settings API](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/indices-update-settings.html) to change it. The docs for [disk-based shard allocation](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/disk-allocator.html) contain an example.

---

<div class="post-metadata">

### Author: ![krushnakantB](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@krushnakantB](https://discuss.elastic.co/u/krushnakantB)
#### Post date: [January 21, 2020, 9:58am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833/5 "2020-01-21T09:58:17Z")

</div>

Hi David,

Thanks for reply. I'll do the same and confirm you.

Again thanks for the help.

---

<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: [February 18, 2020, 9:58am UTC](https://discuss.elastic.co/t/document-index-error-index-blocked-by-forbidden-12-index-read-only-allow-delete-api/215833/6 "2020-02-18T09:58:27Z")

</div>

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