# Reindex error content type plain text

**URL:** <https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929>\
**Category:** Elasticsearch\
**Created:** [May 14, 2019, 6:45am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929 "2019-05-14T06:45:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bry-c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bry-c/32/49123_2.png) [@bry-c](https://discuss.elastic.co/u/bry-c)\
**Post date:** [May 14, 2019, 6:45am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/1 "2019-05-14T06:45:01Z")

</div>

I run remote reindex in elastic version 5.2 to target remote elastic server with version 6.5.4.

This is the command i run in kibana console:  
POST \_reindex  
{  
"source": {  
"remote": {  
"host": "[http://172.16.xx.xx:9200](http://172.16.xx.xx:9200)"  
},  
"index": "test\_source"  
},  
"dest": {  
"index": "test\_reindex"  
}  
}

This error is returned:  
{  
"error": {  
"root\_cause": [  
{  
"type": "status\_exception",  
"reason": "body={"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406}"  
}  
],  
"type": "status\_exception",  
"reason": "body={"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406}",  
"caused\_by": {  
"type": "response\_exception",  
"reason": "POST [http://172.16.xx.xx:9200/\_search/scroll?scroll=5m:](http://172.16.xx.xx:9200/_search/scroll?scroll=5m:) HTTP/1.1 406 Not Acceptable\n{"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406}"  
}  
},  
"status": 406  
}

Is this elastic version 5.2 problem? Your help is greatly appreciated! Thanks!

---

<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 14, 2019, 7:35am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/2 "2019-05-14T07:35:21Z")

</div>

That's the other way. You should run the query on the 6.x cluster and set the source to be the 5.x cluster.

BTW I'd recommend using the latest 6.x release.

---

<div class="post-metadata">

**Author:** ![bry-c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bry-c/32/49123_2.png) [@bry-c](https://discuss.elastic.co/u/bry-c)\
**Post date:** [May 14, 2019, 8:47am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/3 "2019-05-14T08:47:10Z")

</div>

Thanks! 😀

Sorry I did not tell the my goal clearly. I needed to reindex the data to the elastic server version 5.2.  
I found out one solution is just upgrade 5.2 to 5.4.1 and the remote reindex will work.

---

<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 14, 2019, 11:03am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/4 "2019-05-14T11:03:00Z")

</div>

While you are at it, upgrade to the latest 5.x version. That's safer IMO.

---

<div class="post-metadata">

**Author:** ![bry-c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bry-c/32/49123_2.png) [@bry-c](https://discuss.elastic.co/u/bry-c)\
**Post date:** [May 20, 2019, 3:53am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/5 "2019-05-20T03:53:49Z")

</div>

We did not upgrade our elastic server we keep it at version 5.2 as the reindex is working even it's raising this error. It's strange raising error 406 but the reindex tasks is completed.

---

<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 20, 2019, 4:51am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/6 "2019-05-20T04:51:15Z")

</div>

Up to you but I'd upgrade at least to latest 5.x.

---

<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 17, 2019, 4:51am UTC](https://discuss.elastic.co/t/reindex-error-content-type-plain-text/180929/7 "2019-06-17T04:51:17Z")

</div>

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