# {"error":{"root\_cause":blocked by: \[FORBIDDEN/12/index read-only / allow delete (api)\];"}\]

**URL:** <https://discuss.elastic.co/t/error-root-cause-blocked-by-forbidden-12-index-read-only-allow-delete-api/181928>\
**Category:** Elasticsearch\
**Created:** [May 21, 2019, 6:34am UTC](https://discuss.elastic.co/t/error-root-cause-blocked-by-forbidden-12-index-read-only-allow-delete-api/181928 "2019-05-21T06:34:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![idris](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@idris](https://discuss.elastic.co/u/idris)\
**Post date:** [May 21, 2019, 6:34am UTC](https://discuss.elastic.co/t/error-root-cause-blocked-by-forbidden-12-index-read-only-allow-delete-api/181928/1 "2019-05-21T06:34:07Z")

</div>

hi everyone,  
it is the first time that i have to deal with this problem , when i run my mapping for my index like this 🙂  
curl -X PUT "localhost:9200/newsout/\_mapping/test-type" -H 'Content-Type: application/json' -d' {  
"properties": {  
"author": { "type": "keyword" },  
"date": {  
"type": "date",  
"format": "yyyy-MM-dd"  
},  
"description": {  
"type": "text",  
"analyzer": "french"  
},  
"topics": { "type": "keyword" },  
"link": { "type": "text", "index": "true" },  
"locations": { "type": "keyword" },  
"organizations": { "type": "keyword" },  
"persons": { "type": "keyword" },  
"text": {  
"type": "text",  
"analyzer": "french"  
},  
"title": {  
"type": "text",  
"analyzer": "french"  
}  
}  
}'

the output will be ---\>`{"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}`

i don't know what kind of problem it is!

thank you

---

<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 18, 2019, 6:34am UTC](https://discuss.elastic.co/t/error-root-cause-blocked-by-forbidden-12-index-read-only-allow-delete-api/181928/2 "2019-06-18T06:34:11Z")

</div>

Closed on June 18, 2019, 6:34am UTC

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