# How to solve error: "Status changed from green to red - all shards failed"

**URL:** <https://discuss.elastic.co/t/how-to-solve-error-status-changed-from-green-to-red-all-shards-failed/185689>\
**Category:** Kibana\
**Created:** [June 13, 2019, 3:29pm UTC](https://discuss.elastic.co/t/how-to-solve-error-status-changed-from-green-to-red-all-shards-failed/185689 "2019-06-13T15:29:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfgangschmidt](https://avatars.discourse-cdn.com/v4/letter/w/ce73a5/32.png) [@wolfgangschmidt](https://discuss.elastic.co/u/wolfgangschmidt)\
**Post date:** [June 13, 2019, 3:29pm UTC](https://discuss.elastic.co/t/how-to-solve-error-status-changed-from-green-to-red-all-shards-failed/185689/1 "2019-06-13T15:29:45Z")

</div>

Kibana throws this error message (on a single testing system very often, on production cluster sometimes):

kibana: {"type":"log","@timestamp":"2019-06-13T15:14:28Z","tags":["status","plugin:ml@5.6.16","error"],"pid":5445,"state":"red","message":"Status changed from green to red - all shards failed: [es\_rejected\_execution\_exception] rejected execution of org.elasticsearch.transport.TransportService$7@b47c1ce on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@21aa6e65[Running, pool size = 7, active threads = 7, queued tasks = 5100, completed tasks = 14922253]]","prevState":"green","prevMsg":"Ready"}

The queue size is already at it's maximum of 1000. How to solve this problem?

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [June 24, 2019, 2:03pm UTC](https://discuss.elastic.co/t/how-to-solve-error-status-changed-from-green-to-red-all-shards-failed/185689/2 "2019-06-24T14:03:44Z")

</div>

Do you know what the `queued tasks` are? Looks like Elasticsearch isn't keeping up with the tasks. If it's a single node cluster you might have to scale it up larger to keep up with those tasks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 22, 2019, 2:03pm UTC](https://discuss.elastic.co/t/how-to-solve-error-status-changed-from-green-to-red-all-shards-failed/185689/3 "2019-07-22T14:03:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
