master_not_discovered_exception: master_not_discovered_exception / MasterNotDiscoveredException
ElasticsearchWhat does it mean?
The cluster could not elect/find an active master node. Without a master, shard allocation, mapping changes and cluster state updates cannot happen; the cluster becomes unable to process operations.
Why does it happen?
A majority (quorum) of master-eligible nodes is unreachable, a network partition (split brain prevention), incorrect discovery.seed_hosts / cluster.initial_master_nodes configuration, no bootstrap on a new installation, or too few master-eligible nodes.
How to fix it
Verify that master-eligible nodes are running and can see each other: GET _cat/nodes?v and GET _cluster/state. Check the discovery.seed_hosts and cluster.initial_master_nodes settings (on first setup). Verify network/firewall and inter-node (transport 9300) connectivity. Keep enough master-eligible nodes (preferably 3) running. Inspect the logs for master election messages.
More from this engine
- cluster_health_redcluster health status: RED / unassigned shards
- no_shard_available_action_exceptionno_shard_available_action_exception: No shard available for [...]
- es_rejected_execution_exceptiones_rejected_execution_exception: rejected execution of ... on ... (queue capacity ...) (HTTP 429)
- security_exceptionsecurity_exception: unable to authenticate / action [...] is unauthorized for user [...] (HTTP 401/403)
- validation_exceptionvalidation_exception / illegal_argument_exception: Validation Failed: ...
- task_cancelled_exceptiontask_cancelled_exception: Task was cancelled / TaskCancelledException
- action_request_validation_exceptionaction_request_validation_exception