Hi pals,
A few days ago we got the following error on our elastic node:
[FORBIDDEN/12/index read-only / allow delete (api)]
We found out that more disk space is needed, since only 5% of the space had remained for the elastic node. Next, we added more disk space and now the elastic node has occupied only 35% of the space. With this in mind, we are still facing the same error message! After googling, I disabled the searchguard plugin and ran the following command:
POST /_settings
{
"index.blocks.read_only_allow_delete": null
}
But faced the following error and the elastic search status is RED!
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"
}
],
"type": "master_not_discovered_exception",
"reason": "ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]",
"caused_by": {
"type": "cluster_block_exception",
"reason": "blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"
}
},
"status": 503
}
Here is elasticsearch.yml
:
bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: ELASTIC-SRV1
path.data: D:\Program\ELK\data
path.logs: D:\Program\ELK\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false
searchguard.disabled: true
logger.org.elasticsearch.gateway: TRACE
network.host: 0.0.0.0
http.cors.allow-origin: "*"
http.cors.enabled: true
And the following are the status of the elastic node:
{
"name" : "ELASTIC-SRV1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "_na_",
"version" : {
"number" : "6.5.4",
"build_flavor" : "unknown",
"build_type" : "unknown",
"build_hash" : "d2ef93d",
"build_date" : "2018-12-17T21:17:40.758843Z",
"build_snapshot" : false,
"lucene_version" : "7.5.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
# GET /_cat/master
Pbra1KbPRzGKWxoIxPg0Lw <IP Address> <IP Address> ELASTIC-SRV1
# GET /_cat/health
1569738758 06:32:38 elasticsearch red 1 1 223 223 0 4 11954 5 2.5s 1.8%
Could you please help me with the problem?!