# \[TOO\_MANY\_REQUESTS/12/index read-only / allow delete (api)\]

**URL:** <https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718>\
**Category:** Elasticsearch\
**Created:** [June 11, 2020, 2:14pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718 "2020-06-11T14:14:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewolfman](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@ewolfman](https://discuss.elastic.co/u/ewolfman)\
**Post date:** [June 11, 2020, 2:14pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718/1 "2020-06-11T14:14:54Z")

</div>

Hi,

I too am receiving this error like others. I know that I can fix it via the \_settings endpoint:  
PUT /\_all/\_settings {"index.blocks.read\_only\_allow\_delete": false}

But, I have not run out of diskspace. I have lots of space available. The message clearly says: too many requests. But actually, there were not. When I cleared the flag, the problem did not repeat. UPDATE: the problem repeats. All indexes seem to be with a problem now. It is a cluster problem as the exception below shows  
UPDATE 2: I currently configured the watermarks: [https://stackoverflow.com/a/34221506/3208034](https://stackoverflow.com/a/34221506/3208034). still not sure why there are TOO\_MANY\_REQUESTS thrown and why the watermarks shout when there plenty of room in the disk.

How can I troubleshoot this? Is there some kind of threshold or configuration where I can review and modify this?

Partial stacktrace:

```auto
 org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=cluster_block_exception, reason=index [myindex] blocked by: [TOO_MANY_REQUESTS/12/index read-only / allow delete (api)];]
         at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
         at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1888)
         at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1865)
         at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1622)
         at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1579)
         at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1549)
         at org.elasticsearch.client.IndicesClient.updateAliases(IndicesClient.java:437)

```

---

<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:** [June 11, 2020, 4:14pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718/2 "2020-06-11T16:14:29Z")

</div>

> [@ewolfman](#):
>
> How can I troubleshoot this?

Look for log messages from the `DiskThresholdMonitor` as they will explain why this block is being added.

---

<div class="post-metadata">

**Author:** ![ewolfman](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@ewolfman](https://discuss.elastic.co/u/ewolfman)\
**Post date:** [June 11, 2020, 5:13pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718/3 "2020-06-11T17:13:52Z")

</div>

> [@DavidTurner](#):
>
> `DiskThresholdMonitor`

I noticed in the logs the alerts on the watermarks being high, which is why i configured them (see UPDATE2 above). the message TOO\_MANY\_REQUESTS is misleading.

---

<div class="post-metadata">

**Author:** ![Matias\_Perrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matias_perrone/32/70830_2.png) [@Matias\_Perrone](https://discuss.elastic.co/u/Matias_Perrone)\
**Post date:** [July 1, 2020, 6:37pm UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718/4 "2020-07-01T18:37:44Z")

</div>

@ewolfman did you solve this?

---

<div class="post-metadata">

**Author:** ![ewolfman](https://avatars.discourse-cdn.com/v4/letter/e/5f8ce5/32.png) [@ewolfman](https://discuss.elastic.co/u/ewolfman)\
**Post date:** [July 2, 2020, 9:00am UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718/5 "2020-07-02T09:00:57Z")

</div>

> [@ewolfman](#):
>
> @ewolfman did you solve this?

Configuring the watermarks did solve it. However the error message is misleading ("TOO\_MANY\_REQUESTS").

---

<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 30, 2020, 9:00am UTC](https://discuss.elastic.co/t/too-many-requests-12-index-read-only-allow-delete-api/236718/6 "2020-07-30T09:00:58Z")

</div>

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