Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cluster Block Exception on Elasticsearch

I have a problem in my elasticsearch when i run the method:

GET _search {"query": {"match_all": {}}}

ES return:

{"error": "ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]","status": 503}
like image 701
SofDroid Avatar asked Nov 16 '25 22:11

SofDroid


1 Answers

Well, usually it is a configuration problem, you have two quickly thinks to do.

1 - Restore your ES configuration to default, usually is here:

/etc/elasticsearch/elasticsearch.yml

2 - Disable(comment) Discovery and Gateway configurations like this follow examples:

############# Discovery #############
#discovery.zen.ping.unicast.hosts: ["10.0.0.1"]


############# Gateway #############
#gateway.recover_after_nodes: 2
#gateway.recover_after_time: 3m
#gateway.expected_nodes: 3

And then, restart elasticsearch

like image 122
Paulo Victor Avatar answered Nov 18 '25 21:11

Paulo Victor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!