# Reindexing via Upgrade Assistant failed

**URL:** https://discuss.elastic.co/t/reindexing-via-upgrade-assistant-failed/305728
**Category:** Elasticsearch
**Created:** [May 26, 2022, 3:14pm UTC](https://discuss.elastic.co/t/reindexing-via-upgrade-assistant-failed/305728 "2022-05-26T15:14:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_P](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefan_p/32/106215_2.png) [@Stefan\_P](https://discuss.elastic.co/u/Stefan_P)
#### Post date: [May 26, 2022, 3:14pm UTC](https://discuss.elastic.co/t/reindexing-via-upgrade-assistant-failed/305728/1 "2022-05-26T15:14:51Z")

</div>

Hi there,

I am trying to use the Upgrade Assistant provided by kibana.  
I have to upgrade one of my indices to version 6.8 because it is created with version 5.x before I can upgrade my cluster to version 7.

Last night I started the migration process but after 10 hours and around 66% the process just errored with this message:  
"TypeError: \_primary\_term from Elasticsearch must be an integer"

What am I supposed to do with such a message? Is one record damaged/different? Can the upgrade assistant not just ignore such entries?  
Is there a way to get more information about this error? I couldn't find any with Google.

The index size is around 10GB and contains mainly simple log entries.

I am running on hosted elastic cloud.

Thanks in advance,  
Stefan

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 28, 2022, 3:36pm UTC](https://discuss.elastic.co/t/reindexing-via-upgrade-assistant-failed/305728/2 "2022-05-28T15:36:21Z")

</div>

I'd start a brand new 8.2 cluster and use reindex from remote if possible.

I don't know exactly what you should do regarding your question. May be reach the support.

---

<div class="post-metadata">

### Author: ![Stefan\_P](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefan_p/32/106215_2.png) [@Stefan\_P](https://discuss.elastic.co/u/Stefan_P)
#### Post date: [May 30, 2022, 5:54am UTC](https://discuss.elastic.co/t/reindexing-via-upgrade-assistant-failed/305728/3 "2022-05-30T05:54:35Z")

</div>

Hi,  
but when I reindex to a new cluster I have to switch all my other indices also to this cluster to use it in the future, which is not that easy just for an upgrade which should be supported by the assistant...

Yeah I reached out to the support 4 days ago already, let's see what they say.

---

<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: [June 27, 2022, 5:55am UTC](https://discuss.elastic.co/t/reindexing-via-upgrade-assistant-failed/305728/4 "2022-06-27T05:55:26Z")

</div>

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