# Upgrade Assistance: Failed to reindex .kibana

**URL:** <https://discuss.elastic.co/t/upgrade-assistance-failed-to-reindex-kibana/126447>\
**Category:** Kibana\
**Created:** [April 2, 2018, 4:33pm UTC](https://discuss.elastic.co/t/upgrade-assistance-failed-to-reindex-kibana/126447 "2018-04-02T16:33:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuf](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@tuf](https://discuss.elastic.co/u/tuf)\
**Post date:** [April 2, 2018, 4:33pm UTC](https://discuss.elastic.co/t/upgrade-assistance-failed-to-reindex-kibana/126447/1 "2018-04-02T16:33:36Z")

</div>

I'm trying to upgrade a single node elk cluster to 6.x. I upgraded elasticsearch, kibana, logstash and x-pack (basic license) to version 5.6.8.  
In the reindex helper page, I try to reindex .kibana index, but I'm getting an error after a minute or two:

```auto
PUT /api/migration/.kibana-6
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Index .kibana-6 already exists.",
  "code": "ERR_INDEX_EXISTS",
  "root_cause": [
    {
      "type": "index_already_exists_exception",
      "reason": "index [.kibana-6/lnGEMacMTRKcahTwHeqBwQ] already exists",
      "index_uuid": "lnGEMacMTRKcahTwHeqBwQ",
      "index": ".kibana-6"
    }
  ],
  "type": "index_already_exists_exception",
  "reason": "index [.kibana-6/lnGEMacMTRKcahTwHeqBwQ] already exists",
  "index_uuid": "lnGEMacMTRKcahTwHeqBwQ",
  "index": ".kibana-6",
  "reindexedIndexName": ".kibana-6"
}

```

The .kibana-6 index is been created immediately after I click the reindex button, but it stays in status red.  
Elasticsearch outputs the log after the index creation:

```auto
[2018-04-02T15:48:35,972][INFO][o.e.c.m.MetaDataCreateIndexService] [elk-prod1] [.kibana-6] creating index, cause [api], templates [default], shards [1]/[0], mappings [doc]
[2018-04-02T15:48:35,984][INFO][o.e.c.r.a.AllocationService] [elk-prod1] Cluster health status changed from [YELLOW] to [RED] (reason: [index [.kibana-6] created]).

```

Configurations the cluster has:

- Disabled all x-pack features that not relevant to the basic license.
- Created an index template with `number_of_replicas: 0` and `number_of_shards: 5` settings.

**Edit** : The .kibana index version is 2040099.

---

<div class="post-metadata">

**Author:** ![tuf](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@tuf](https://discuss.elastic.co/u/tuf)\
**Post date:** [April 2, 2018, 5:41pm UTC](https://discuss.elastic.co/t/upgrade-assistance-failed-to-reindex-kibana/126447/2 "2018-04-02T17:41:24Z")

</div>

Figured it out, the `cluster.routing.allocation.enable` option was none for some reason. change it and it worked perfectly.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [April 10, 2018, 7:28pm UTC](https://discuss.elastic.co/t/upgrade-assistance-failed-to-reindex-kibana/126447/3 "2018-04-10T19:28:58Z")

</div>

Thanks for sharing your solution, David!

---

<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 8, 2018, 7:28pm UTC](https://discuss.elastic.co/t/upgrade-assistance-failed-to-reindex-kibana/126447/4 "2018-05-08T19:28:59Z")

</div>

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