# Discover tab won't load anymore

**URL:** https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549
**Category:** Elasticsearch
**Created:** [January 6, 2016, 9:25pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549 "2016-01-06T21:25:37Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 6, 2016, 9:25pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/1 "2016-01-06T21:25:37Z")

</div>

Kibana was working fine and all of a sudden the Discover tab stopped working. In my chrome dev tools console I get:

PUT [http://mfs-tcmetrics:5601/elasticsearch/.kibana/\_mapping/search](http://mfs-tcmetrics:5601/elasticsearch/.kibana/_mapping/search) 400 (Bad Request)

and:

Error: [illegal\_argument\_exception] Mapper for [hits] conflicts with existing mapping in other types:  
[mapper [hits] cannot be changed from type [long] to [int]]  
at respond (kibana.bundle.js:76820)  
at checkRespForFailure (kibana.bundle.js:76783)  
at kibana.bundle.js:75401  
at processQueue (commons.bundle.js:42358)  
at commons.bundle.js:42374  
at Scope.$eval (commons.bundle.js:43602)  
at Scope.$digest (commons.bundle.js:43413)  
at Scope.$apply (commons.bundle.js:43710)  
at done (commons.bundle.js:38159)  
at completeRequest (commons.bundle.js:38357)

Dashboards and visualizations seem to work though.

How do I fix this?

Kibana 4.3.1, Elasticsearch 2.1.1

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 6, 2016, 9:31pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/2 "2016-01-06T21:31:42Z")

</div>

> [@TheShanMan](#):
>
> Error: [illegal\_argument\_exception] Mapper for [hits] conflicts with existing mapping in other types:[mapper [hits] cannot be changed from type [long] to [int]

You should check into [Mapping changes | Elasticsearch Guide [2.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/breaking_20_mapping_changes.html)

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 6, 2016, 9:43pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/3 "2016-01-06T21:43:34Z")

</div>

I don't think that helps at all. This is the .kibana index. I have no control over it.

---

<div class="post-metadata">

### Author: ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)
#### Post date: [January 6, 2016, 10:27pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/4 "2016-01-06T22:27:33Z")

</div>

Can you post `GET .kibana/_mapping`. From what I can tell looking at 4.1.x and 4.3.1, both have hits as an integer.

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 6, 2016, 10:29pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/5 "2016-01-06T22:29:52Z")

</div>

{".kibana":{"mappings":{"config":{"properties":{"buildNum":{"type":"string","index":"not\_analyzed"},"defaultIndex":{"type":"string"}}},"index-pattern":{"properties":{"fieldFormatMap":{"type":"string"},"fields":{"type":"string"},"timeFieldName":{"type":"string"},"title":{"type":"string"}}},"visualization":{"properties":{"description":{"type":"string"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"string"}}},"title":{"type":"string"},"uiStateJSON":{"type":"string"},"version":{"type":"long"},"visState":{"type":"string"}}},"dashboard":{"properties":{"description":{"type":"string"},"hits":{"type":"long"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"string"}}},"optionsJSON":{"type":"string"},"panelsJSON":{"type":"string"},"timeRestore":{"type":"boolean"},"title":{"type":"string"},"uiStateJSON":{"type":"string"},"version":{"type":"long"}}}}}}

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 6, 2016, 11:03pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/6 "2016-01-06T23:03:55Z")

</div>

As you can see, it's a long here. Whether that could've changed, I have no idea. I wasn't having this problem before and then I suddenly started getting the error. Or at least the Discover tab was loading just fine before (I guess it's conceivable that it was loading even though an error was being thrown).

I could delete my elasticsearch data and start over from scratch if that will solve it, but I'd like to know why this happened so I can be sure it won't happen again. I certainly don't want to have to start over from scratch multiple times in the future.

I appreciate the help.

---

<div class="post-metadata">

### Author: ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)
#### Post date: [January 6, 2016, 11:40pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/7 "2016-01-06T23:40:24Z")

</div>

Hi,

Seems related to this:

> <https://github.com/elastic/kibana/issues/3882>

  

> <https://github.com/elastic/kibana/pull/3913>

Did you upgrade from an older version of Kibana or is this a new install? I'm curious when .kibana was created.

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 6, 2016, 11:49pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/8 "2016-01-06T23:49:47Z")

</div>

I upgraded from 4.1 I think (but definitely not 3.x). However, I have also done a curl -XDELETE "[http://localhost:9200/\_all](http://localhost:9200/_all)" since then, and I assume that also wipes out the .kibana index. That said, I have done the following: 1) export dashboard. 2) delete all (like above). 3) repopulate my index. 4) import dashboard.

I'm still not sure why this problem would suddenly appear a day later after successfully using the kibana UI including the dashboard tab. Seems weird, particularly if the thinking is that it's related to an upgrade.

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 6, 2016, 11:59pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/9 "2016-01-06T23:59:49Z")

</div>

Also, even though I imported a dashboard, the issue you linked exhibits the problem when going to the Dashboard tab. In my case the Dashboard tab loads fine (using the imported dashboard). It's the Discover tab, which makes me think it's probably not related to imported objects.

---

<div class="post-metadata">

### Author: ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)
#### Post date: [January 7, 2016, 12:04am UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/10 "2016-01-07T00:04:39Z")

</div>

Can you stop Kibana, delete .kibana index, start Kibana. Do you still get this same error? Then re-import your dashboard, do you get this same error now?

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 7, 2016, 12:57am UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/11 "2016-01-07T00:57:48Z")

</div>

Deleting the index just consists of deleting the .kibana directory in elasticsearch? If so, I'll give it a try.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 7, 2016, 1:06am UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/12 "2016-01-07T01:06:20Z")

</div>

Nooooo.  
Use the APIs, `curl -XDELETE $HOST:9200/.kibana`.

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 7, 2016, 2:22am UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/13 "2016-01-07T02:22:10Z")

</div>

Thanks. That seems to have worked for now, but my concern is why did this occur seemingly without anything done on my part and how do I avoid this in the future? Only time will tell how long this fix will last.

---

<div class="post-metadata">

### Author: ![TheShanMan](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TheShanMan](https://discuss.elastic.co/u/TheShanMan)
#### Post date: [January 7, 2016, 5:41pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/14 "2016-01-07T17:41:44Z")

</div>

The problem is happening again.

---

<div class="post-metadata">

### Author: ![serj](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@serj](https://discuss.elastic.co/u/serj)
#### Post date: [January 19, 2016, 3:13pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/15 "2016-01-19T15:13:45Z")

</div>

I too am having this problem. I haven't tried doing curl -XDELETE $HOST:9200/.kibana yet but like TheShanMan, I deleted my indexes at one point via curl -XDELETE "[http://localhost:9200/\_all](http://localhost:9200/_all)" and now when I click the dashboard nothing happens. The dev console shows the same error message. When I do [http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices) it shows the indexes I believe should be there. All status are green. I'm going to try deleting .kibana now

---

<div class="post-metadata">

### Author: ![Court](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/court/32/6640_2.png) [@Court](https://discuss.elastic.co/u/Court)
#### Post date: [January 19, 2016, 3:14pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/16 "2016-01-19T15:14:50Z")

</div>

I think it's possible that a fix for a bug that went into 4.1 never made it into subsequent releases. I'm looking into it now and will keep this ticket updated.

---

<div class="post-metadata">

### Author: ![Fernando\_Battistella](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@Fernando\_Battistella](https://discuss.elastic.co/u/Fernando_Battistella)
#### Post date: [January 21, 2016, 11:16am UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/17 "2016-01-21T11:16:35Z")

</div>

I'm also experiencing the same issue.  
Yesterday everything was fine, today, when I had to do a demo with it of course :D, discover tab isnt loading.

---

<div class="post-metadata">

### Author: ![Fernando\_Battistella](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@Fernando\_Battistella](https://discuss.elastic.co/u/Fernando_Battistella)
#### Post date: [January 21, 2016, 11:23am UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/18 "2016-01-21T11:23:24Z")

</div>

Firefox console

Error: [illegal\_argument\_exception] Mapper for [hits] conflicts with existing mapping in other types: [mapper [hits] cannot be changed from type [long] to [int]]

Kibana mapping

curl -XGET [http://localhost:9200/.kibana/\_mapping](http://localhost:9200/.kibana/_mapping)  
{".kibana":{"mappings":{"config":{"properties":{"buildNum":{"type":"string","index":"not\_analyzed"},"defaultIndex":{"type":"string"}}},"visualization":{"properties":{"description":{"type":"string"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"string"}}},"title":{"type":"string"},"uiStateJSON":{"type":"string"},"version":{"type":"long"},"visState":{"type":"string"}}},"index-pattern":{"properties":{"fields":{"type":"string"},"timeFieldName":{"type":"string"},"title":{"type":"string"}}},"dashboard":{"properties":{"description":{"type":"string"},"hits":{"type":"long"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"string"}}},"optionsJSON":{"type":"string"},"panelsJSON":{"type":"string"},"timeRestore":{"type":"boolean"},"title":{"type":"string"},"uiStateJSON":{"type":"string"},"version":{"type":"long"}}}}}}

---

<div class="post-metadata">

### Author: ![David\_McClain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_mcclain/32/8613_2.png) [@David\_McClain](https://discuss.elastic.co/u/David_McClain)
#### Post date: [March 17, 2016, 3:22pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/19 "2016-03-17T15:22:16Z")

</div>

Is there a followup on this? I'm running Kibana 4.3 and started getting 'Bad Request' messages. Found this thread, but it doesn't seem to have a resolution.

Was something found in 4.3 that was fixed in 4.4 for this?

Wanted to check here before opening a new thread.  
Thanks

---

<div class="post-metadata">

### Author: ![rezwu](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@rezwu](https://discuss.elastic.co/u/rezwu)
#### Post date: [March 22, 2016, 2:23pm UTC](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549/20 "2016-03-22T14:23:25Z")

</div>

FYI: 4.4 also has the same issue.

[Next page](https://discuss.elastic.co/t/discover-tab-wont-load-anymore/38549.md?page=2)
