# "cluster\_block\_exception", "reason"=\>"blocked by: \[FORBIDDEN/12/index read-only / allow delete (api)\];"})

**URL:** <https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449>\
**Category:** Elasticsearch\
**Created:** [December 30, 2018, 3:43pm UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449 "2018-12-30T15:43:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [December 30, 2018, 3:43pm UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449/1 "2018-12-30T15:43:23Z")

</div>

it looks like I ran out of space. I free up some space by deleted bunch of unneeded indices and docs.

... yet still keep getting following error:

> logstash | [2018-12-30T15:38:10,978][INFO][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=\>"cluster\_block\_exception", "reason"=\>"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"})

I even tried running following query as well

```
PUT /_settings
{
  "index": {
    "blocks": {
      "read_only_allow_delete": "true"
    }
  }
}

```

Please advise.

---

<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:** [December 30, 2018, 5:37pm UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449/2 "2018-12-30T17:37:58Z")

</div>

How much disk space did you free up? How much is currently used?

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [December 30, 2018, 9:51pm UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449/3 "2018-12-30T21:51:24Z")

</div>

~75GB (total), ~54GB (used), ~20GB (free) / 73%

I just checked, not all data got deleted and now whenever I run same query I now get following message:

> "reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"

---

<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:** [December 31, 2018, 9:19am UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449/4 "2018-12-31T09:19:10Z")

</div>

Did you [reset the read-only index block](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/disk-allocator.html) after you freed up space?

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [December 31, 2018, 2:25pm UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449/5 "2018-12-31T14:25:57Z")

</div>

I reset read-only for entire cluster:

```
PUT /_settings
{
  "index.blocks.read_only_allow_delete": null
}
```

---

<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:** [January 28, 2019, 2:26pm UTC](https://discuss.elastic.co/t/cluster-block-exception-reason-blocked-by-forbidden-12-index-read-only-allow-delete-api/162449/6 "2019-01-28T14:26:00Z")

</div>

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