# Running Elasticsearch error

**URL:** <https://discuss.elastic.co/t/running-elasticsearch-error/23022>\
**Category:** Elasticsearch\
**Created:** [March 31, 2015, 7:53pm UTC](https://discuss.elastic.co/t/running-elasticsearch-error/23022 "2015-03-31T19:53:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelnrluierhfeulne](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@kelnrluierhfeulne](https://discuss.elastic.co/u/kelnrluierhfeulne)\
**Post date:** [March 31, 2015, 7:53pm UTC](https://discuss.elastic.co/t/running-elasticsearch-error/23022/1 "2015-03-31T19:53:52Z")

</div>

Hello, When I run ./bin/elasticsearch like it says in the  
[http://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash](http://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash)  
tutorial I get the following error?

failed to connect to master [[Annie Ghazikhanian] [127.0.0.1:9300]],  
retrying...  
Caused by: java.net.ConnectException: Connection refused: /127.0.0.1:9300

Would you happen to know how I can fix this error? I believe I may be  
accidentally connecting to someone else's cluster.  
Thank you!

--  
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/52a946d5-24a5-4b7d-b8d7-f48678556dce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/52a946d5-24a5-4b7d-b8d7-f48678556dce%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 31, 2015, 11:57pm UTC](https://discuss.elastic.co/t/running-elasticsearch-error/23022/2 "2015-03-31T23:57:09Z")

</div>

It's connecting to itself, 127.0.0.1 is a local address, it's unlikely it's  
connecting to another cluster unless you already have ES installed and  
r9unning on the node.

It'd help if you gist/pastebin/etc the entire log.

On 1 April 2015 at 06:53, kelnrluierhfeulne [dmch12345@gmail.com](mailto:dmch12345@gmail.com) wrote:

> Hello, When I run ./bin/elasticsearch like it says in the  
> [Getting Started with Logstash | Logstash Reference [8.11] | Elastic](http://logstash.net/docs/1.4.2/tutorials/getting-started-with-logstash)  
> tutorial I get the following error?
> 
> failed to connect to master [[Annie Ghazikhanian] [127.0.0.1:9300]],  
> retrying...  
> Caused by: java.net.ConnectException: Connection refused: /127.0.0.1:9300
> 
> Would you happen to know how I can fix this error? I believe I may be  
> accidentally connecting to someone else's cluster.  
> Thank you!
> 
> --  
> 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/52a946d5-24a5-4b7d-b8d7-f48678556dce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/52a946d5-24a5-4b7d-b8d7-f48678556dce%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/52a946d5-24a5-4b7d-b8d7-f48678556dce%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/52a946d5-24a5-4b7d-b8d7-f48678556dce%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X\_AH0DsQKb9XEaL6%3DYTv3tSyssHsuTiyKQJfmQuAOnXkg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_AH0DsQKb9XEaL6%3DYTv3tSyssHsuTiyKQJfmQuAOnXkg%40mail.gmail.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:22am UTC](https://discuss.elastic.co/t/running-elasticsearch-error/23022/3 "2017-07-06T00:22:33Z")

</div>


