Elasticsearch exception [type=cluster_block_exception, reason=blocked by: [service_unavailable/1/state not recovered / initialized];]

Hello && Welcome @ductc

First of all " Holy Cow" this was hard to read. I fixed you post for you. Please use the markdown or use this post for a better understanding on the HowTo.

This helps us , help you

As for this…

Maybe try this in ES yaml file.

[root@graylog home]#   cat /etc/elasticsearch/elasticsearch.yml  | egrep -v "^\s*(#|$)"
cluster.name: graylog
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 192.168.180.180
http.port: 9200
action.auto_create_index: false
discovery.type: single-node

Restart elasticsearch service.

1 Like