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 !