# Elasticsearch Head plugin is not working for after upgrading ES version from 1.x to 2.x

**URL:** <https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392>\
**Category:** Elasticsearch\
**Created:** [September 23, 2016, 2:49pm UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392 "2016-09-23T14:49:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctvisani](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@ctvisani](https://discuss.elastic.co/u/ctvisani)\
**Post date:** [September 23, 2016, 2:49pm UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392/1 "2016-09-23T14:49:53Z")

</div>

Hi ,  
I am beginner to elastic search and using HEAD plugin as UI interface.I had worked with ES version of 1.3.2 ,working fine and now I had upgraded ES to version 2.3.2 both the server and client pc. I mean that I have installed ES at domain e.g. [www.example.com](http://www.example.com) and accessing it in my local with HEAD plugin as [http://localhost:9200/\_plugin/head](http://localhost:9200/_plugin/head).

Now when I try to access ES with browser e.g. [www.example.com/\_stats](http://www.example.com/_stats) than it's working fine , but when I try to connect it with HEAD plugin than it shows 200 response and gives CORS related error on console. I have tried all configuration of elasticsearch.yml at my local by searching but it's doesn't seems to be work for me. I have attached images related to that.

Response Page Output :

 ![](https://us1.discourse-cdn.com/elastic/original/2X/5/595a40873c2a0034164a0b163ac5ba5b4f45ed65.jpg)

Console Page Output :

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/76b599aa0d0b8eaebe1a7386775155b9a47abdff.jpg)

accessing through browser :

![](https://us1.discourse-cdn.com/elastic/original/2X/2/2e4c0e0e90ef05af878fb1dbd99bc435211cbcb7.jpg)

I have tried  
http.cors.enabled: true  
http.cors.allow-origin: "\*"  
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE  
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length  
with my local configuration but can't work with HEAD plugin.

Thanks.

---

<div class="post-metadata">

**Author:** ![MarkOStewart](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@MarkOStewart](https://discuss.elastic.co/u/MarkOStewart)\
**Post date:** [September 23, 2016, 3:49pm UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392/2 "2016-09-23T15:49:01Z")

</div>

Have you tried to uninstall the plugin and reinstall.  
I think i had similar issues when going from 1.x to 2.x and the remove and reinstall plugin worked.

Also I would investigate the Kopf and HQ plugins.  
Kopf is the newer head plugin and in my opinion a much improved interface vs head.

---

<div class="post-metadata">

**Author:** ![ctvisani](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@ctvisani](https://discuss.elastic.co/u/ctvisani)\
**Post date:** [September 23, 2016, 5:28pm UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392/3 "2016-09-23T17:28:11Z")

</div>

Thanks for the reply.

I have reinstalled head plugin and also reinstalled whole ES. But it does  
not work for me.

I have also used kopf and HQ but head is a very clean ui that's why I  
prefer it.

Anyway,  
I need to know something that  
Does head plugin is supported with newer version ?  
And  
What about CORS settings it is added either at client ES or Server ES or  
Both?

Thanks.

---

<div class="post-metadata">

**Author:** ![MarkOStewart](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@MarkOStewart](https://discuss.elastic.co/u/MarkOStewart)\
**Post date:** [September 23, 2016, 5:47pm UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392/4 "2016-09-23T17:47:25Z")

</div>

It is my understanding that CORs is not required on 2.x. I am not sure if all 2.x or just later versions.

I commented out CORS lines out of my configs after upgrading to 2.3.1

---

<div class="post-metadata">

**Author:** ![ctvisani](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@ctvisani](https://discuss.elastic.co/u/ctvisani)\
**Post date:** [September 28, 2016, 11:46am UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392/5 "2016-09-28T11:46:21Z")

</div>

My problem has been resolved by adding these lines and I am able to connect other nodes by HEAD plugin.

network.host: 0.0.0.0  
http.port: 9200  
http.cors.enabled: true  
http.cors.allow-origin: "\*"

---

<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:** [July 5, 2017, 10:16pm UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-is-not-working-for-after-upgrading-es-version-from-1-x-to-2-x/61392/6 "2017-07-05T22:16:42Z")

</div>


