# Upgrade to Kibana and Elasticsearch 5

**URL:** https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726
**Category:** Kibana
**Created:** [January 5, 2017, 8:17pm UTC](https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726 "2017-01-05T20:17:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vitgou](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vitgou](https://discuss.elastic.co/u/vitgou)
#### Post date: [January 5, 2017, 8:17pm UTC](https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726/1 "2017-01-05T20:17:02Z")

</div>

Hi there,

I'm trying to upgrade to Kibana and Elasticsearch 5. I followed all the guides and when I check the health of the cluster I get:

{  
"cluster\_name" : "ELK",  
"status" : "green",  
"timed\_out" : false,  
"number\_of\_nodes" : 3,  
"number\_of\_data\_nodes" : 3,  
"active\_primary\_shards" : 2996,  
"active\_shards" : 5992,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 100.0  
}

But when I try to access kibana I get the following error:

[2017-01-05T19:44:47,555][WARN][r.suppressed] path: /logstash-_/\_field\_stats, params: {allow\_no\_indices=false, index=logstash-_, fields=\*}  
java.lang.ArrayIndexOutOfBoundsException: 5  
at org.apache.lucene.util.UnicodeUtil.UTF8toUTF16(UnicodeUtil.java:602) ~[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]  
at org.apache.lucene.util.BytesRef.utf8ToString(BytesRef.java:152) ~[lucene-core-6.3.0.jar:6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:47:11]  
at org.elasticsearch.action.fieldstats.FieldStats$Text.getMaxValueAsString(FieldStats.java:492) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.fieldstats.FieldStats$Text.toInnerXContent(FieldStats.java:498) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.fieldstats.FieldStats.toXContent(FieldStats.java:243) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.rest.action.RestFieldStatsAction$1.buildResponse(RestFieldStatsAction.java:87) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.rest.action.RestFieldStatsAction$1.buildResponse(RestFieldStatsAction.java:74) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.rest.action.RestBuilderListener.buildResponse(RestBuilderListener.java:38) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.rest.action.RestResponseListener.processResponse(RestResponseListener.java:37) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.rest.action.RestActionListener.onResponse(RestActionListener.java:47) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:91) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:87) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.TransportAction$ResponseFilterChain.proceed(TransportAction.java:215) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.ingest.IngestActionFilter.apply(IngestActionFilter.java:89) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.TransportAction$ResponseFilterChain.proceed(TransportAction.java:213) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.TransportAction$FilteredActionListener.onResponse(TransportAction.java:240) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.TransportAction$FilteredActionListener.onResponse(TransportAction.java:226) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.broadcast.TransportBroadcastAction$AsyncBroadcastAction.finishHim(TransportBroadcastAction.java:262) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.broadcast.TransportBroadcastAction$AsyncBroadcastAction.onOperation(TransportBroadcastAction.java:215) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.broadcast.TransportBroadcastAction$AsyncBroadcastAction$1.handleResponse(TransportBroadcastAction.java:195) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.action.support.broadcast.TransportBroadcastAction$AsyncBroadcastAction$1.handleResponse(TransportBroadcastAction.java:182) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:978) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1055) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1039) [elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1029) [elasticsearch-5.1.1.jar:5.1.1]  
at

I cannot understand if the issue is with Kibana + elasticsearch or If I messed up something during the upgrade.

Any idea?

Thanks  
VG

---

<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 5, 2017, 8:42pm UTC](https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726/2 "2017-01-05T20:42:31Z")

</div>

Upgrade from what version?

---

<div class="post-metadata">

### Author: ![vitgou](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vitgou](https://discuss.elastic.co/u/vitgou)
#### Post date: [January 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726/3 "2017-01-05T23:59:43Z")

</div>

I upgraded elasticsearch from 2.4 to 5.1.

---

<div class="post-metadata">

### Author: ![Szymon\_Szypulski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/szymon_szypulski/32/14589_2.png) [@Szymon\_Szypulski](https://discuss.elastic.co/u/Szymon_Szypulski)
#### Post date: [January 16, 2017, 11:06am UTC](https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726/4 "2017-01-16T11:06:33Z")

</div>

I've had similar issue on one of my environments. It's due to output of `/logstash-*/_field_stats` query (as stated in logs). To confirm, run `curl http://0.0.0.0:9200/logstash-*/_field_stats -d '{"fields":["*"],"allow_no_indices":false}'`. It should crash with same error message, you can iterate over list of your indices (`curl http://0.0.0.0:9200/_cat/indices?v`) and run `curl http://0.0.0.0:9200/logstash-<date>/_field_stats -d '{"fields":["*"],"allow_no_indices":false}'` (replace `<date>`). Most of indices should return proper stats, if you find one which throws an error you can close the index `curl http://0.0.0.0:9200/logstash-<data>/_close`. Now you should be able to load kibana.

I don't know why this is happens and this is only solution I've found, It was possible to disable failing index because it was close to being deleted by our retention policy anyway.

---

<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: [February 13, 2017, 11:06am UTC](https://discuss.elastic.co/t/upgrade-to-kibana-and-elasticsearch-5/70726/5 "2017-02-13T11:06:39Z")

</div>

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