# Cluster\_block\_exception

**URL:** <https://discuss.elastic.co/t/cluster-block-exception/133525>\
**Category:** Elasticsearch\
**Created:** [May 28, 2018, 11:27am UTC](https://discuss.elastic.co/t/cluster-block-exception/133525 "2018-05-28T11:27:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aviyoosh](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Aviyoosh](https://discuss.elastic.co/u/Aviyoosh)\
**Post date:** [May 28, 2018, 11:27am UTC](https://discuss.elastic.co/t/cluster-block-exception/133525/1 "2018-05-28T11:27:23Z")

</div>

Hi,  
**When trying to add documents to index :**  
put my\_index\_name/doc/5

i get this error:  
{  
"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  
}

**after reading some topics regarding this, i also ran -\> which solved the issue but only for 1 document:**  
PUT my\_index\_name/\_settings  
{  
"index": {  
"blocks": {  
"read\_only\_allow\_delete": "false"  
}  
}  
}

next document i needed to run the settings query again.

which command i need to run in order to solve this "for good"? for all my indexes?

Thanks

---

<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:** [May 28, 2018, 11:39am UTC](https://discuss.elastic.co/t/cluster-block-exception/133525/2 "2018-05-28T11:39:50Z")

</div>

Look at the logs but you are most likely running low on disk space.

---

<div class="post-metadata">

**Author:** ![Aviyoosh](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Aviyoosh](https://discuss.elastic.co/u/Aviyoosh)\
**Post date:** [May 28, 2018, 11:41am UTC](https://discuss.elastic.co/t/cluster-block-exception/133525/3 "2018-05-28T11:41:29Z")

</div>

according to what i've read - it's a matter of permissions/privileges.  
because after the second part of the question - it is fixing it.

---

<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:** [June 25, 2018, 11:41am UTC](https://discuss.elastic.co/t/cluster-block-exception/133525/4 "2018-06-25T11:41:33Z")

</div>

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