# Head and remote connections via browser after 1.5 to 2.0 upgrade

**URL:** <https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438>\
**Category:** Elasticsearch\
**Created:** [November 12, 2015, 4:38pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438 "2015-11-12T16:38:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacpm](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@isaacpm](https://discuss.elastic.co/u/isaacpm)\
**Post date:** [November 12, 2015, 4:38pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/1 "2015-11-12T16:38:18Z")

</div>

Hi,

I've upgraded from 1.5 to 2.0 by adding the new repo and performing a yum update.  
After the upgrade I had to cleanup the plugins folder, then installed head plugin again and elasticsearch started just fine.  
Local queries seem to work fine and so does Kibana.

The problem is when I try to connect via browser to the head plugin (or any other direct query) I get a connection refused.  
The elasticsearch.yml seems ok, as it states that by default it will listen on the interface 0.0.0.0, which is what I want.  
Any ideas on what could be happening here? And what can I do to get it to listen in all interfaces again or discard that as the problem?

Thanks,  
Isaac

---

<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:** [November 12, 2015, 5:01pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/2 "2015-11-12T17:01:00Z")

</div>

Head plugin has not been updated to 2.0.0 AFAIK.

---

<div class="post-metadata">

**Author:** ![isaacpm](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@isaacpm](https://discuss.elastic.co/u/isaacpm)\
**Post date:** [November 12, 2015, 5:02pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/3 "2015-11-12T17:02:14Z")

</div>

ok, so that's explains why it doesn't work....

Any reason for direct queries through the browser not working?  
I deleted the folder \_site under plugins because it was making it fail to start, would that have anything to do?

---

<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:** [November 12, 2015, 5:14pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/4 "2015-11-12T17:14:35Z")

</div>

May be CORS settings? Or network.host is not set and you are trying to access it from another computer?

---

<div class="post-metadata">

**Author:** ![isaacpm](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@isaacpm](https://discuss.elastic.co/u/isaacpm)\
**Post date:** [November 12, 2015, 5:17pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/5 "2015-11-12T17:17:29Z")

</div>

That's the first think I've checked, the network.host.  
It's as default, which in theory means it bins to all IP addresses, and it was working before the update.  
But a netstat shows it only listening on 127.0.0.1.  
Not sure what other option would I need to change in ES2 to make it listen in all interfaces

---

<div class="post-metadata">

**Author:** ![isaacpm](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@isaacpm](https://discuss.elastic.co/u/isaacpm)\
**Post date:** [November 12, 2015, 5:26pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/6 "2015-11-12T17:26:19Z")

</div>

Found it, ES2 by default binds to _local_ which is 127.0.0.1, I had to change the setting network.bind\_host to 0.0.0.0 and now it works fine.

Thanks for pointing me in the right direction 😄

---

<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, 11:38pm UTC](https://discuss.elastic.co/t/head-and-remote-connections-via-browser-after-1-5-to-2-0-upgrade/34438/7 "2017-07-05T23:38:53Z")

</div>


