DBAtlas · Database operations atlas

no_shard_available_action_exception: no_shard_available_action_exception: No shard available for [...]

Elasticsearch

What does it mean?

No active shard copy capable of serving a request was found. The request cannot be fulfilled because the relevant shard is unassigned, recovering, or its hosting node is unreachable.

Why does it happen?

A node crash/network partition, unassigned shards, an ongoing shard recovery, an allocation block due to the disk watermark, or the cluster being in the RED/YELLOW state.

How to fix it

Inspect cluster and shard state: GET _cluster/health and GET _cat/shards?v. See why shards are unassigned: GET _cluster/allocation/explain. Bring crashed nodes back, fix the disk problem, and wait for recovery to finish: GET _cat/recovery?v&active_only=true. If needed, retry allocation with POST _cluster/reroute?retry_failed=true.

Open in DBAtlas →

More from this engine