# Kibana pod doesn't come up , Log says Another Kibana instance appears to be migrating the index. Waiting for that migration to complete

**URL:** https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850
**Category:** Kibana
**Created:** [October 13, 2020, 6:49am UTC](https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850 "2020-10-13T06:49:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![subha1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/subha1/32/45343_2.png) [@subha1](https://discuss.elastic.co/u/subha1)
#### Post date: [October 13, 2020, 6:49am UTC](https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850/1 "2020-10-13T06:49:41Z")

</div>

Hi ,  
While upgrading Elasticsearch & kibana from version ELK-7.0.1 to ELK-7.8.0 , Kibana pod doesn't come up , and shows the below message in the Kibana log.  
we are using helm way to upgrade .

```auto

{"type":"log","@timestamp":"2020-10-12T09:18:47Z","tags":["info","savedobjects-service"],"pid":10,"message":"Starting saved objects migrations"}

{"type":"log","@timestamp":"2020-10-12T09:18:48Z","tags":["info","savedobjects-service"],"pid":10,"message":"Creating index .kibana_2."}
{"type":"log","@timestamp":"2020-10-12T09:18:48Z","tags":["warning","savedobjects-service"],"pid":10,"message":"Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_2/UIPMqE4jTP2b6luSANHY2A] already exists, with

{ index_uuid=\"UIPMqE4jTP2b6luSANHY2A\" & index=\".kibana_2\" }

"}
{"type":"log","@timestamp":"2020-10-12T09:18:48Z","tags":["warning","savedobjects-service"],"pid":10,"message":"Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting Kibana."}

```

Where , all Elasticsearch pods are up after upgrade was done. Only kibana is failed to come up.

Could you please help for this issue.  
Thanks.

---

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [October 14, 2020, 10:56am UTC](https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850/2 "2020-10-14T10:56:34Z")

</div>

As described in the log message, if you have only a single kibana instance attempting the migration, you can delete the `.kibana2` index and restart kibana

> [@subha1](#):
>
> ` If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting Kibana`

---

<div class="post-metadata">

### Author: ![subha1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/subha1/32/45343_2.png) [@subha1](https://discuss.elastic.co/u/subha1)
#### Post date: [October 15, 2020, 6:00am UTC](https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850/3 "2020-10-15T06:00:24Z")

</div>

Hi , Thank you for the response.

We would like to know under what circumstance this issue happens ?  
Since the helm upgrade process is automated in Jenkin pipeline in our case, what action can be taken to avoid this ? Or any solution available for this error apart from manually deleting the .kibana\_2 index ?

Thanks.

---

<div class="post-metadata">

### Author: ![Pierre\_Gayvallet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierre_gayvallet/32/77239_2.png) [@Pierre\_Gayvallet](https://discuss.elastic.co/u/Pierre_Gayvallet)
#### Post date: [October 15, 2020, 7:52am UTC](https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850/4 "2020-10-15T07:52:12Z")

</div>

The main cause of this issue in a k8s environment is a race condition where multiple Kibana pods are attempting to migrate the index at the same time. In that case, the easiest solution is to set the deployment / replica set number of replica to 1 when upgrading, then setting it back to its initial value once the first pod completes the migration.

If you only have one Kibana pod in the deployment, the cause is less obvious, but it could be caused by the pod being killed or restarted while it was performing the migration.

For the solutions, once the cluster is in that state, manually deleting the index is the only possible options for now. However, we are currently actively working on a new migration workflow that should greatly reduce the risks of that kind of upgrade issues.

---

<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: [November 12, 2020, 7:52am UTC](https://discuss.elastic.co/t/kibana-pod-doesnt-come-up-log-says-another-kibana-instance-appears-to-be-migrating-the-index-waiting-for-that-migration-to-complete/251850/5 "2020-11-12T07:52:15Z")

</div>

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