[FORBIDDEN / 12 / index read - only / allow delete(api)] Error with Elasticsearch.Net

Hi There,

I am having an issue while trying to perform PUT request from ElasticSearch.Net. First run successsfully inserts the document record, however when i update the data for another document and runs again, it just throws an error.

Here is the error the i get,

{
"error": {
"root_cause": [{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN / 12 / index read - only / allow delete(api)];
"}],"
type ":"
cluster_block_ex
ception ","
reason ":"
blocked by: [FORBIDDEN / 12 / index read - only / allow delete(api)];
"},"
status ":403
}

I again have to perform the below PUT Operation to make it work,

 PUT employees/_settings
    {
    "index": {
    "blocks": {
    "read_only_allow_delete": "false"
    }
    }
    }

My Sample Test C# Snippet looks like this,

It would be great if someone could help to overcome this issue.

Thanks,
Rammohan B.

That can be a sign that you are running out of disk space and have exceeded the flood stage watermark. Have a look at how large percentage of your disk space that is still free.

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