# All shards failed after migration to 6.7.1

**URL:** <https://discuss.elastic.co/t/all-shards-failed-after-migration-to-6-7-1/176864>\
**Category:** Kibana\
**Created:** [April 15, 2019, 9:00am UTC](https://discuss.elastic.co/t/all-shards-failed-after-migration-to-6-7-1/176864 "2019-04-15T09:00:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludovic9](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Post date:** [April 15, 2019, 9:00am UTC](https://discuss.elastic.co/t/all-shards-failed-after-migration-to-6-7-1/176864/1 "2019-04-15T09:00:59Z")

</div>

Hi,  
I have a problem with kibana.  
I have done a migration to 6.3.0 to 6.7.1  
OK for elasticsearch  
OK for logstash  
But for kibana, after I have done a yum install kibana and restarted it, I can't connect to the web interface.

here the message :  
systemctl status kibana -l

> {"type":"error","@timestamp":"2019-04-15T08:45:57Z","tags":["warning","stats-collection"],"pid":11239,"level":"error","error":{"message":"[search\_phase\_execution\_exception] all shards failed","name":"Error","stack":"[search\_phase\_execution\_exception] all shards failed :: {"path":"/.kibana\_task\_manager/\_doc/\_search","query":{"ignore\_unavailable":true},"body":"{\"sort\":[{\"task.runAt\":\"asc\"},{\"\_id\":\"desc\"}],\"query\":{\"bool\":{\"must\":[{\"term\":{\"type\":\"task\"}},{\"bool\":{\"filter\":{\"term\":{\"\_id\":\"Maps-maps\_telemetry\"}}}}]}}}","statusCode":503,"response":"{\"error\":{\"root\_cause\":,\"type\":\"search\_phase\_execution\_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed\_shards\":},\"status\":503}"}\n at respond (/usr/share/kibana/node\_modules/elasticsearch/src/lib/transport.js:308:15)\n at checkRespForFailure (/usr/share/kibana/node\_modules/elasticsearch/src/lib/transport.js:267:7)\n at HttpConnector. (/usr/share/kibana/node\_modules/elasticsearch/src/lib/connectors/http.js:166:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node\_modules/elasticsearch/node\_modules/lodash/lodash.js:4935:19)\n at IncomingMessage.emit (events.js:194:15)\n at endReadableNT (\_stream\_readable.js:1103:12)\n at process.\_tickCallback (internal/process/next\_tick.js:63:19)"},"message":"[search\_phase\_execution\_exception] all shards failed"}  
> {"type":"log","@timestamp":"2019-04-15T08:45:57Z","tags":["warning","stats-collection"],"pid":11239,"message":"Unable to fetch data from maps collector"}  
> {"type":"log","@timestamp":"2019-04-15T08:46:00Z","tags":["error","task\_manager"],"pid":11239,"message":"Failed to poll for work: [search\_phase\_execution\_exception] all shards failed :: {"path":"/.kibana\_task\_manager/\_doc/\_search","query":{"ignore\_unavailable":true},"body":"{\"query\":{\"bool\":{\"must\":[{\"term\":{\"type\":\"task\"}},{\"bool\":{\"must\":[{\"terms\":{\"task.taskType\":[\"maps\_telemetry\",\"vis\_telemetry\"]}},{\"range\":{\"task.attempts\":{\"lte\":3}}},{\"range\":{\"task.runAt\":{\"lte\":\"now\"}}},{\"range\":{\"kibana.apiVersion\":{\"lte\":1}}}]}}]}},\"size\":10,\"sort\":{\"task.runAt\":{\"order\":\"asc\"}},\"seq\_no\_primary\_term\":true}","statusCode":503,"response":"{\"error\":{\"root\_cause\":,\"type\":\"search\_phase\_execution\_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed\_shards\":},\"status\":503}"}"}

I don't understand.  
When I run the command to see the status of the indices, I have :

".kibana\_task\_manager" and ".kibana\_7" in red

I have deleted the .kibana\_task\_manager but it don't work.

Could you help me about this please ?

---

<div class="post-metadata">

**Author:** ![Ludovic9](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Post date:** [April 15, 2019, 9:13am UTC](https://discuss.elastic.co/t/all-shards-failed-after-migration-to-6-7-1/176864/2 "2019-04-15T09:13:42Z")

</div>

Before I do the update, I have disabled the allocation of shard.  
Update elasticsearch  
It was red, then yellow until the "active\_shards\_percent\_as\_number" was 50%  
I have update kibana  
and restart kibana

Do I have to enable the allocation to solve my problem ?

---

<div class="post-metadata">

**Author:** ![Ludovic9](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Post date:** [April 15, 2019, 2:14pm UTC](https://discuss.elastic.co/t/all-shards-failed-after-migration-to-6-7-1/176864/3 "2019-04-15T14:14:06Z")

</div>

Problem solved

> [@\[error\] All shards failed after migration to 6.7.1](https://discuss.elastic.co/t/error-all-shards-failed-after-migration-to-6-7-1/176872):
>
> Hi I have done this morning an upgrade of my elk stack, to 6.3.0 to 6.7.0 here the steps disable shards allocation update elasticserach when the "active\_shards\_percent\_as\_number" was 50% (yellow state) update logstash update kibana then I have problems frowning I have an error when I see the logs of kibana, I was thinking the problem was kibana but I think not. In elasticsearch I have this : [2019-04-15T11:39:55,167][WARN][r.suppressed] [prod-master-1] path: /.kibana\_…

---

<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:** [May 13, 2019, 2:14pm UTC](https://discuss.elastic.co/t/all-shards-failed-after-migration-to-6-7-1/176864/4 "2019-05-13T14:14:06Z")

</div>

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