Document Index error:- index [....] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]

Hi All,

As I mentioned in the subject we got an error like blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]. For this I have checked that it might be low disk space. But in our case we have free space of 56GB is available out of 100GB in ES Index drive and rootfs have 38GB free space out of 50GB and in the configuration we haven't mention any low disk watermark settings yet. We are using Elasticsearch 7.2.0 and Developer is inserting data through REST API.

Please help to resolve this issue.

It's almost certainly due to low disk space, maybe in the past, even if there is enough disk space today. Check your logs for messages from the DiskThresholdMonitor. The only other possible explanation is that someone set index.blocks.read_only_allow_delete: true manually.

Hi David,

Thanks for reply. In log I haven't find any errors for law disk. Can you help me that how to figure out that index.blocks.read_only_allow_delete: true is enabled or not? and How to solve the same?

It's just an index setting so you use the get index settings API to observe it and the update index settings API to change it. The docs for disk-based shard allocation contain an example.

Hi David,

Thanks for reply. I'll do the same and confirm you.

Again thanks for the help.

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