# Elasticsearch server is down or unreachable

**URL:** <https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487>\
**Category:** Elasticsearch\
**Created:** [October 29, 2014, 9:21pm UTC](https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487 "2014-10-29T21:21:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![versneldiemen](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@versneldiemen](https://discuss.elastic.co/u/versneldiemen)\
**Post date:** [October 29, 2014, 9:21pm UTC](https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487/1 "2014-10-29T21:21:12Z")

</div>

Hello there,

I keep getting this message when i start Kibana. But if i go look on my  
server i see that elasticsearch is running perfectly

_root@server:~# service elasticsearch status_

- 
  - elasticsearch is running\*

_Connection FailedPossibility #1: Your elasticsearch server is down or  
unreachableThis can be caused by a network outage, or a failure of the  
Elasticsearch process. If you have recently run a query that required a  
terms facet to be executed it is possible the process has run out of memory  
and stopped. Be sure to check your Elasticsearch logs for any sign of  
memory pressure.Possibility #2: You are running Elasticsearch 1.4 or  
higherElasticsearch 1.4 ships with a security setting that prevents Kibana  
from connecting. You will need to set http.cors.allow-origin in your  
elasticsearch.yml to the correct protocol, hostname, and port (if not 80)  
that your access Kibana from. Note that if you are running Kibana in a  
sub-url, you should exclude the sub-url path and only include the protocol,  
hostname and port. For example, [http://mycompany.com:8080](http://mycompany.com:8080), not  
 [http://mycompany.com:8080/kibana.Click](http://mycompany.com:8080/kibana.Click) back, or the home button, when you  
have resolved the connection issue_

Plz some help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ad4d89ac-58bc-4760-b638-8c7064b94ad1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ad4d89ac-58bc-4760-b638-8c7064b94ad1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Prakash\_Dutta](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@Prakash\_Dutta](https://discuss.elastic.co/u/Prakash_Dutta)\
**Post date:** [November 10, 2014, 10:16am UTC](https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487/2 "2014-11-10T10:16:32Z")

</div>

Hi

I am also facing same issues. Read some where that elasticsearch in not  
running but when I tried with the url : [http://localhost:9200](http://localhost:9200), it is  
showing the below message

{  
"status" : 200,  
"name" : "Tzabaoth",  
"cluster\_name" : "elasticsearch",  
"version" : {  
"number" : "1.4.0",  
"build\_hash" : "bc94bd81298f81c656893ab1ddddd30a99356066",  
"build\_timestamp" : "2014-11-05T14:26:12Z",  
"build\_snapshot" : false,  
"lucene\_version" : "4.10.2"  
},  
"tagline" : "You Know, for Search"  
}

it means, elasticsearch is running. Added below two lines in elasticsearch.yml

http.cors.allow-origin: "/.\*/"  
http.cors.allow-credentials: true

After doing all this steps also, facing same issues.

Please suggest me the way to solve this.

Thanks in advance to all.

Regards  
Prakash

On Thursday, October 30, 2014 2:51:12 AM UTC+5:30, [versne...@gmail.com](mailto:versne...@gmail.com)  
wrote:

> Hello there,
> 
> I keep getting this message when i start Kibana. But if i go look on my  
> server i see that elasticsearch is running perfectly
> 
> _root@server:~# service elasticsearch status_
> 
> - 
> - elasticsearch is running\*
> 
> _Connection FailedPossibility #1: Your elasticsearch server is down or  
> unreachableThis can be caused by a network outage, or a failure of the  
> Elasticsearch process. If you have recently run a query that required a  
> terms facet to be executed it is possible the process has run out of memory  
> and stopped. Be sure to check your Elasticsearch logs for any sign of  
> memory pressure.Possibility #2: You are running Elasticsearch 1.4 or  
> higherElasticsearch 1.4 ships with a security setting that prevents Kibana  
> from connecting. You will need to set http.cors.allow-origin in your  
> elasticsearch.yml to the correct protocol, hostname, and port (if not 80)  
> that your access Kibana from. Note that if you are running Kibana in a  
> sub-url, you should exclude the sub-url path and only include the protocol,  
> hostname and port. For example, [http://mycompany.com:8080](http://mycompany.com:8080)  
> [http://mycompany.com:8080](http://mycompany.com:8080), not [http://mycompany.com:8080/kibana](http://mycompany.com:8080/kibana)  
> [http://mycompany.com:8080/kibana](http://mycompany.com:8080/kibana).Click back, or the home button, when you  
> have resolved the connection issue_
> 
> Plz some help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6aaac82e-edfb-400e-a4a8-013950ce6eab%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6aaac82e-edfb-400e-a4a8-013950ce6eab%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Drew\_Town](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drew_town/32/44829_2.png) [@Drew\_Town](https://discuss.elastic.co/u/Drew_Town)\
**Post date:** [November 10, 2014, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487/3 "2014-11-10T13:01:17Z")

</div>

I got it to work by adding

http.cors.enabled: true

and leaving the allow-origin out and the allow-credentials out.  
allow-origin seems to default to anything if it is not present. cors is  
disabled by default.

Drew

On Monday, November 10, 2014 4:16:32 AM UTC-6, Prakash Dutta wrote:

> Hi
> 
> I am also facing same issues. Read some where that elasticsearch in not  
> running but when I tried with the url : [http://localhost:9200](http://localhost:9200), it is  
> showing the below message
> 
> {  
> "status" : 200,  
> "name" : "Tzabaoth",  
> "cluster\_name" : "elasticsearch",  
> "version" : {  
> "number" : "1.4.0",  
> "build\_hash" : "bc94bd81298f81c656893ab1ddddd30a99356066",  
> "build\_timestamp" : "2014-11-05T14:26:12Z",  
> "build\_snapshot" : false,  
> "lucene\_version" : "4.10.2"  
> },  
> "tagline" : "You Know, for Search"  
> }
> 
> it means, elasticsearch is running. Added below two lines in elasticsearch.yml
> 
> http.cors.allow-origin: "/.\*/"  
> http.cors.allow-credentials: true
> 
> After doing all this steps also, facing same issues.
> 
> Please suggest me the way to solve this.
> 
> Thanks in advance to all.
> 
> Regards  
> Prakash
> 
> On Thursday, October 30, 2014 2:51:12 AM UTC+5:30, [versne...@gmail.com](mailto:versne...@gmail.com)  
> wrote:
> 
> > Hello there,
> > 
> > I keep getting this message when i start Kibana. But if i go look on my  
> > server i see that elasticsearch is running perfectly
> > 
> > _root@server:~# service elasticsearch status_
> > 
> > - 
> > - elasticsearch is running\*
> > 
> > _Connection FailedPossibility #1: Your elasticsearch server is down or  
> > unreachableThis can be caused by a network outage, or a failure of the  
> > Elasticsearch process. If you have recently run a query that required a  
> > terms facet to be executed it is possible the process has run out of memory  
> > and stopped. Be sure to check your Elasticsearch logs for any sign of  
> > memory pressure.Possibility #2: You are running Elasticsearch 1.4 or  
> > higherElasticsearch 1.4 ships with a security setting that prevents Kibana  
> > from connecting. You will need to set http.cors.allow-origin in your  
> > elasticsearch.yml to the correct protocol, hostname, and port (if not 80)  
> > that your access Kibana from. Note that if you are running Kibana in a  
> > sub-url, you should exclude the sub-url path and only include the protocol,  
> > hostname and port. For example, [http://mycompany.com:8080](http://mycompany.com:8080)  
> > [http://mycompany.com:8080](http://mycompany.com:8080), not [http://mycompany.com:8080/kibana](http://mycompany.com:8080/kibana)  
> > [http://mycompany.com:8080/kibana](http://mycompany.com:8080/kibana).Click back, or the home button, when you  
> > have resolved the connection issue_
> > 
> > Plz some help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/304b326c-c16b-46d5-843e-eab083d7e2a7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/304b326c-c16b-46d5-843e-eab083d7e2a7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jack\_Judge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_judge/32/85499_2.png) [@Jack\_Judge](https://discuss.elastic.co/u/Jack_Judge)\
**Post date:** [December 5, 2014, 10:59pm UTC](https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487/4 "2014-12-05T22:59:20Z")

</div>

Apologies for resurrecting an old thread, just wanted to highlight that  
this worked for me.  
I was fronting K3 with Apache, tried enabling all the options within  
elasticsearch.yml, then also in Apache and finally, in desperation, with  
ngnix but enabling just that one line as Drew says works.

On Monday, 10 November 2014 05:01:18 UTC-8, Drew Town wrote:

> I got it to work by adding
> 
> http.cors.enabled: true
> 
> and leaving the allow-origin out and the allow-credentials out.  
> allow-origin seems to default to anything if it is not present. cors is  
> disabled by default.
> 
> Drew
> 
> On Monday, November 10, 2014 4:16:32 AM UTC-6, Prakash Dutta wrote:
> 
> > Hi
> > 
> > I am also facing same issues. Read some where that elasticsearch in not  
> > running but when I tried with the url : [http://localhost:9200](http://localhost:9200), it is  
> > showing the below message
> > 
> > {  
> > "status" : 200,  
> > "name" : "Tzabaoth",  
> > "cluster\_name" : "elasticsearch",  
> > "version" : {  
> > "number" : "1.4.0",  
> > "build\_hash" : "bc94bd81298f81c656893ab1ddddd30a99356066",  
> > "build\_timestamp" : "2014-11-05T14:26:12Z",  
> > "build\_snapshot" : false,  
> > "lucene\_version" : "4.10.2"  
> > },  
> > "tagline" : "You Know, for Search"  
> > }
> > 
> > it means, elasticsearch is running. Added below two lines in elasticsearch.yml
> > 
> > http.cors.allow-origin: "/.\*/"  
> > http.cors.allow-credentials: true
> > 
> > After doing all this steps also, facing same issues.
> > 
> > Please suggest me the way to solve this.
> > 
> > Thanks in advance to all.
> > 
> > Regards  
> > Prakash
> > 
> > On Thursday, October 30, 2014 2:51:12 AM UTC+5:30, [versne...@gmail.com](mailto:versne...@gmail.com)  
> > wrote:
> > 
> > > Hello there,
> > > 
> > > I keep getting this message when i start Kibana. But if i go look on my  
> > > server i see that elasticsearch is running perfectly
> > > 
> > > _root@server:~# service elasticsearch status_
> > > 
> > > - 
> > > - elasticsearch is running\*
> > > 
> > > _Connection FailedPossibility #1: Your elasticsearch server is down or  
> > > unreachableThis can be caused by a network outage, or a failure of the  
> > > Elasticsearch process. If you have recently run a query that required a  
> > > terms facet to be executed it is possible the process has run out of memory  
> > > and stopped. Be sure to check your Elasticsearch logs for any sign of  
> > > memory pressure.Possibility #2: You are running Elasticsearch 1.4 or  
> > > higherElasticsearch 1.4 ships with a security setting that prevents Kibana  
> > > from connecting. You will need to set http.cors.allow-origin in your  
> > > elasticsearch.yml to the correct protocol, hostname, and port (if not 80)  
> > > that your access Kibana from. Note that if you are running Kibana in a  
> > > sub-url, you should exclude the sub-url path and only include the protocol,  
> > > hostname and port. For example, [http://mycompany.com:8080](http://mycompany.com:8080)  
> > > [http://mycompany.com:8080](http://mycompany.com:8080), not [http://mycompany.com:8080/kibana](http://mycompany.com:8080/kibana)  
> > > [http://mycompany.com:8080/kibana](http://mycompany.com:8080/kibana).Click back, or the home button, when you  
> > > have resolved the connection issue_
> > > 
> > > Plz some help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/faf60ffa-153c-4c04-bd87-fd68595560ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/faf60ffa-153c-4c04-bd87-fd68595560ce%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:45am UTC](https://discuss.elastic.co/t/elasticsearch-server-is-down-or-unreachable/20487/5 "2017-07-06T00:45:23Z")

</div>


