# Upgrading Kibana to 6

**URL:** https://discuss.elastic.co/t/upgrading-kibana-to-6/144835
**Category:** Kibana
**Created:** [August 17, 2018, 7:32am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835 "2018-08-17T07:32:12Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 17, 2018, 7:32am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/1 "2018-08-17T07:32:12Z")

</div>

Hi,

I tried to upgrade kibana using the documentation([https://www.elastic.co/guide/en/kibana/6.0/migrating-6.0-index.html](https://www.elastic.co/guide/en/kibana/6.0/migrating-6.0-index.html)) but I can't create the .kibana-6 index.

this is the error message:

```auto
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [.kibana-6] as the final mapping would have more than 1 type: [doc, type1]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [.kibana-6] as the final mapping would have more than 1 type: [doc, type1]"},"status":400}

```

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [August 17, 2018, 7:36am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/2 "2018-08-17T07:36:10Z")

</div>

In this case it seems, that the request you actually send to Kibana, still contains some `type1` type besides the `doc` type. Could you please check your query again, and compare it to the one in the documentation? There should only be the `doc` type in there, and no further type. Also the index should not exist beforehand.

---

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 17, 2018, 7:37am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/3 "2018-08-17T07:37:35Z")

</div>

I deleted the index beforehand, just to see if it exists or not, and copied the query from the documentation with the "copy as curl"-button.

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [August 17, 2018, 7:39am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/4 "2018-08-17T07:39:21Z")

</div>

Could you try executing a `curl <yourES:9200>/.kibana-6/_mappings` and post the output of that, and also paste the exact command you executed here (best a screenshot of the command and the response), please.

---

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 17, 2018, 7:41am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/5 "2018-08-17T07:41:24Z")

</div>

```auto
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":".kibana-6","index_uuid":"_na_","index":".kibana-6"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":".kibana-6","index_uuid":"_na_","index":".kibana-6"},"status":404}

```

---

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 17, 2018, 7:49am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/6 "2018-08-17T07:49:07Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/1/515328e7d3809c6b79067a4e7dab6e175eaeaa17.jpg)

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [August 17, 2018, 7:55am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/7 "2018-08-17T07:55:58Z")

</div>

Hi, could you please share the same for the migration query, that causes the error?

---

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 17, 2018, 8:02am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/8 "2018-08-17T08:02:13Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6f95595790b6f84dc3ce3d7b119250b3463c134d.jpg)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/2/92fe69ae3ed4a6b8e5a90c917e8a8eaf14cc1ade.jpg)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/5/351330b3e553a15c85e44fc870a625ccb37767fa.jpg)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/f/5fe940194a161434283ac1ad3b72e643d8e23cb8.jpg)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42dc2708c499ab58d131ecb4781d36bbf8b896a9.jpg)

There you go. A scrollshot like on my smartphone would be handy for stuff like that 😃

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [August 17, 2018, 8:14am UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/9 "2018-08-17T08:14:21Z")

</div>

Thanks for providing this. I don't see any obvious error and that looks rather weird to me.

@tylersmalley Could someone from the operations team have an idea, where the `type1` comes from in this request when executing against an non existing mapping?

---

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 22, 2018, 12:43pm UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/10 "2018-08-22T12:43:39Z")

</div>

Still no answer?

---

<div class="post-metadata">

### Author: ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)
#### Post date: [August 22, 2018, 1:10pm UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/11 "2018-08-22T13:10:36Z")

</div>

I found out that I had a rogue template.  
When we got elasticsearch we tried ourselves at templates and template\_1 from the documentation([https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html)) caused my problem.

@timroes thank you for your help

---

<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: [September 19, 2018, 1:10pm UTC](https://discuss.elastic.co/t/upgrading-kibana-to-6/144835/12 "2018-09-19T13:10:38Z")

</div>

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