[WARN ][o.e.c.r.a.DiskThresholdMonitor] [jSjxvbp] flood stage disk watermark [95%] exceeded on

i ve got a problem when i need to create an index for elasticsearch .
Here is the 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

When i look at my logs:
elasticsearch_1 | at org.elasticsearch.action.bulk.TransportBulkAction.executeBulk(TransportBulkAction.java:462) ~[elasticsearch-6.0.0.jar:6.0.0]
elasticsearch_1 | at org.elasticsearch.action.bulk.TransportBulkAction.doExecute(TransportBulkAction.java:175) ~[elasticsearch-6.0.0.jar:6.0.0]
elasticsearch_1 | at org.elasticsearch.action.bulk.TransportBulkAction.lambda$processBulkIndexIngestRequest$4(TransportBulkAction.java:514) ~[elasticsearch-6.0.0.jar:6.0.0]
elasticsearch_1 | at org.elasticsearch.ingest.PipelineExecutionService$2.doRun(PipelineExecutionService.java:98) [elasticsearch-6.0.0.jar:6.0.0]
elasticsearch_1 | at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:638) [elasticsearch-6.0.0.jar:6.0.0]
elasticsearch_1 | at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.0.0.jar:6.0.0]
elasticsearch_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_151]
elasticsearch_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_151]
elasticsearch_1 | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
elasticsearch_1 | Caused by: org.elasticsearch.xpack.monitoring.exporter.ExportException: failed to flush export bulks
elasticsearch_1 | at org.elasticsearch.xpack.monitoring.exporter.ExportBulk$Compound.lambda$null$0(ExportBulk.java:167) ~[?:?]
elasticsearch_1 | ... 32 more
elasticsearch_1 | Caused by: org.elasticsearch.xpack.monitoring.exporter.ExportException: bulk [default_local] reports failures when exporting documents
elasticsearch_1 | at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.throwExportException(LocalBulk.java:130) ~[?:?]
elasticsearch_1 | ... 30 more

elasticsearch_1  | [2019-05-23T07:42:38,401][WARN ][o.e.c.r.a.DiskThresholdMonitor] [jSjxvbp] 
flood stage disk watermark [95%] exceeded on [jSjxvbpOSXicUUeDO_W8mw][jSjxvbp]
[/usr/share/elasticsearch/data/nodes/0] free: 2.1gb[4.4%], all indices on this node will marked read-only

please help me !

You are running low on disk space.

i extended space disk but it doesn't work ,i ve got the same problem when i create an index,this is my log from elasticsearch

org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];

the main error (output) when i use mapping for my index is :slight_smile:

{"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

You need to manually remove the read only mode. See https://www.elastic.co/guide/en/elasticsearch/reference/6.7/misc-cluster.html

BTW it seems that you are using a 6.0.0 version. If so, you should really consider upgrading.

Also read: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/disk-allocator.html

PUT /twitter/_settings
{
  "index.blocks.read_only_allow_delete": null
}

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