# Kibana 4 with elastic search 1.4.4 gives connect econnrefused

**URL:** <https://discuss.elastic.co/t/kibana-4-with-elastic-search-1-4-4-gives-connect-econnrefused/22342>\
**Category:** Elasticsearch\
**Created:** [February 23, 2015, 10:46pm UTC](https://discuss.elastic.co/t/kibana-4-with-elastic-search-1-4-4-gives-connect-econnrefused/22342 "2015-02-23T22:46:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rana\_Singh](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Rana\_Singh](https://discuss.elastic.co/u/Rana_Singh)\
**Post date:** [February 23, 2015, 10:46pm UTC](https://discuss.elastic.co/t/kibana-4-with-elastic-search-1-4-4-gives-connect-econnrefused/22342/1 "2015-02-23T22:46:25Z")

</div>

Hi,

I'm trying out kibana 4.0.0 and have downloaded it and elasticsearch 1.4.4,  
but get an error when kibana tries to connect to elasticsearch.

My setup:  
OS: Windows 7

No changes have been made to any of the config files.  
Both services start up nicely, and [http://localhost:9200](http://localhost:9200) gives this output:

{  
"status" : 200,  
"name" : "Jackpot",  
"cluster\_name" : "elasticsearch",  
"version" : {  
"number" : "1.4.4",  
"build\_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",  
"build\_timestamp" : "2015-02-19T13:05:36Z",  
"build\_snapshot" : false,  
"lucene\_version" : "4.10.3"  
},  
"tagline" : "You Know, for Search"  
}

_Elastic-search console window on startup_:  
[2015-02-23 23:30:45,321][WARN][bootstrap] jvm uses the  
client vm, make sure to run `java` with the server vm for best performance  
by adding `-server` to the command line  
[2015-02-23 23:30:45,385][INFO][node] [Jackpot]  
version[1.4.4], pid[9000], build[c88f77f/2015-02-19T13:05:36Z]  
[2015-02-23 23:30:45,386][INFO][node] [Jackpot]  
initializing ...  
[2015-02-23 23:30:45,389][INFO][plugins] [Jackpot]  
loaded [], sites []  
[2015-02-23 23:30:48,507][INFO][node] [Jackpot]  
initialized  
[2015-02-23 23:30:48,507][INFO][node] [Jackpot]  
starting ...  
[2015-02-23 23:30:48,873][INFO][transport] [Jackpot]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/192.168.0.172:9300]}  
[2015-02-23 23:30:49,531][INFO][discovery] [Jackpot]  
elasticsearch/AWIWLy1mQ4aFlUE36aSpog  
[2015-02-23 23:30:53,330][INFO][cluster.service] [Jackpot]  
new\_master  
[Jackpot][AWIWLy1mQ4aFlUE36aSpog][NOLD0048][inet[/192.168.0.172:9300]],  
reason: zen-disco-join (elected\_as\_master)  
[2015-02-23 23:30:53,366][INFO][gateway] [Jackpot]  
recovered [0] indices into cluster\_state  
[2015-02-23 23:30:53,752][INFO][http] [Jackpot]  
bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address  
{inet[/192.168.0.172:9200]}  
[2015-02-23 23:30:53,752][INFO][node] [Jackpot]  
started

_Kibana console window on startup:_  
{"@timestamp":"2015-02-23T22:32:04.365Z","level":"info","message":"Listening  
on 0.0.0.0:5601","node\_env":""production""}

But when I go to [http://localhost:5601](http://localhost:5601), it tries to load the webpage but  
crashes with an\* error message\*:  
Fatal Error  
Kibana: Unable to connect to Elasticsearch  
Error: unknown error  
at respond ([http://localhost:5601/index.js?\_b=5888:81675:15](http://localhost:5601/index.js?_b=5888:81675:15))  
at checkRespForFailure ([http://localhost:5601/index.js?\_b=5888:81641:7](http://localhost:5601/index.js?_b=5888:81641:7))  
at [http://localhost:5601/index.js?\_b=5888:80304:7](http://localhost:5601/index.js?_b=5888:80304:7)  
at wrappedErrback ([http://localhost:5601/index.js?\_b=5888:20897:78](http://localhost:5601/index.js?_b=5888:20897:78))  
at wrappedErrback ([http://localhost:5601/index.js?\_b=5888:20897:78](http://localhost:5601/index.js?_b=5888:20897:78))  
at wrappedErrback ([http://localhost:5601/index.js?\_b=5888:20897:78](http://localhost:5601/index.js?_b=5888:20897:78))  
at [http://localhost:5601/index.js?\_b=5888:21030:76](http://localhost:5601/index.js?_b=5888:21030:76)  
at Scope.$eval ([http://localhost:5601/index.js?\_b=5888:22017:28](http://localhost:5601/index.js?_b=5888:22017:28))  
at Scope.$digest ([http://localhost:5601/index.js?\_b=5888:21829:31](http://localhost:5601/index.js?_b=5888:21829:31))  
at Scope.$apply ([http://localhost:5601/index.js?\_b=5888:22121:24](http://localhost:5601/index.js?_b=5888:22121:24))

_Kibana console spits out this message (Note the connect econnrefused-error  
message):_  
{"@timestamp":"2015-02-23T22:32:04.365Z","level":"info","message":"Listening  
on 0.0.0.0:5601","node\_env":""production""}  
{"@timestamp":"2015-02-23T22:32:33.095Z","level":"info","message":"GET /  
304 -  
3ms","node\_env":""production"","request":{"method":"GET","url":"/","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,_/_;q=0.8","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
{"@timestamp":"2015-02-23T22:32:33.203Z","level":"info","message":"GET  
/styles/main.css?\_b=5888 304 -  
3ms","node\_env":""production"","request":{"method":"GET","url":"/styles/main.css?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"text/css,_/_;q=0.1","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40  
{"@timestamp":"2015-02-23T22:32:33.205Z","level":"info","message":"GET  
/images/initial\_load.gif 304 -  
5ms","node\_env":""production"","request":{"method":"GET","url":"/images/initial\_load.gif","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"image/webp,_/_;q=0.8","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/  
{"@timestamp":"2015-02-23T22:32:33.207Z","level":"info","message":"GET  
/bower\_components/requirejs/require.js?\_b=5888 304 -  
5ms","node\_env":""production"","request":{"method":"GET","url":"/bower\_components/requirejs/require.js?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36  
{"@timestamp":"2015-02-23T22:32:33.213Z","level":"info","message":"GET  
/require.config.js?\_b=5888 304 -  
10ms","node\_env":""production"","request":{"method":"GET","url":"/require.config.js?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
Chrome/40.0.2214.11  
{"@timestamp":"2015-02-23T22:32:33.328Z","level":"info","message":"GET  
/index.js?\_b=5888 304 -  
1ms","node\_env":""production"","request":{"method":"GET","url":"/index.js?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
Chrome/40.0.2214.115 Safari/537.36","r  
{"@timestamp":"2015-02-23T22:32:33.330Z","level":"info","message":"GET  
/styles/theme/elk.ico 304 -  
0ms","node\_env":""production"","request":{"method":"GET","url":"/styles/theme/elk.ico","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
Chrome/40.0.2214.115 Safari/53  
{"@timestamp":"2015-02-23T22:32:33.696Z","level":"info","message":"GET  
/config?\_b=5888 304 -  
3ms","node\_env":""production"","request":{"method":"GET","url":"/config?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
Chrome/40.0.2214.115 Safari/537.36","accept":"_/_","refer  
{"@timestamp":"2015-02-23T22:32:33.925Z","level":"info","message":"GET  
/images/no\_border.png 304 -  
2ms","node\_env":""production"","request":{"method":"GET","url":"/images/no\_border.png","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"image/webp,_/_;q=0.8","user-agent":"Mozilla/5.0  
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2  
{"@timestamp":"2015-02-23T22:32:34.941Z","level":"error","message":"connect  
ECONNREFUSED","node\_env":""production"","error":{"message":"connect  
ECONNREFUSED","name":"Error","stack":"Error: connect ECONNREFUSED\n at  
errnoException (net.js:905:11)\n at Object.afterConnect [as oncomplete]  
(net.js:896:19)\n","code":"ECONNREFUSED"}}  
{"@timestamp":"2015-02-23T22:32:34.944Z","level":"info","message":"GET /  
502 -  
1013ms","node\_env":""production"","request":{"method":"GET","url":"/elasticsearch/","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"application/json,  
text/plain, _/_","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64)  
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Sa  
{"@timestamp":"2015-02-23T22:32:37.161Z","level":"info","message":"GET  
/bower\_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 304 -  
6ms","node\_env":""production"","request":{"method":"GET","url":"/bower\_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0  
(Windows NT

_When I close the kibana.bat - window, I get this from the  
elasticsearch.bat-window:_  
java.io.IOException: An existing connection was forcibly closed by the  
remote host  
at sun.nio.ch.SocketDispatcher.read0(Native Method)  
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)  
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)  
at sun.nio.ch.IOUtil.read(IOUtil.java:192)  
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

So from the error message it looks like kibana has been able to contact  
elastic search, but why it fails beats me. Googling for "connect  
econnrefused" gives me that the service being looked for is not there, in  
my case it will mean that kibana can't find elastic search. But then why  
the error message in elastic search console window?

I'm out of ideas. Anyone help on this matter would be much appreciated!

--  
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/f9f1700c-9c39-4e15-a9df-19fc486ec16b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f9f1700c-9c39-4e15-a9df-19fc486ec16b%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:** [February 24, 2015, 8:16am UTC](https://discuss.elastic.co/t/kibana-4-with-elastic-search-1-4-4-gives-connect-econnrefused/22342/2 "2015-02-24T08:16:52Z")

</div>

Are KB and KS running on the same host?

On 24 February 2015 at 09:46, Rana Singh [singh@iterate.no](mailto:singh@iterate.no) wrote:

> Hi,
> 
> I'm trying out kibana 4.0.0 and have downloaded it and elasticsearch  
> 1.4.4, but get an error when kibana tries to connect to elasticsearch.
> 
> My setup:  
> OS: Windows 7
> 
> No changes have been made to any of the config files.  
> Both services start up nicely, and [http://localhost:9200](http://localhost:9200) gives this  
> output:
> 
> {  
> "status" : 200,  
> "name" : "Jackpot",  
> "cluster\_name" : "elasticsearch",  
> "version" : {  
> "number" : "1.4.4",  
> "build\_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",  
> "build\_timestamp" : "2015-02-19T13:05:36Z",  
> "build\_snapshot" : false,  
> "lucene\_version" : "4.10.3"  
> },  
> "tagline" : "You Know, for Search"  
> }
> 
> _Elastic-search console window on startup_:  
> [2015-02-23 23:30:45,321][WARN][bootstrap] jvm uses the  
> client vm, make sure to run `java` with the server vm for best performance  
> by adding `-server` to the command line  
> [2015-02-23 23:30:45,385][INFO][node] [Jackpot]  
> version[1.4.4], pid[9000], build[c88f77f/2015-02-19T13:05:36Z]  
> [2015-02-23 23:30:45,386][INFO][node] [Jackpot]  
> initializing ...  
> [2015-02-23 23:30:45,389][INFO][plugins] [Jackpot]  
> loaded , sites   
> [2015-02-23 23:30:48,507][INFO][node] [Jackpot]  
> initialized  
> [2015-02-23 23:30:48,507][INFO][node] [Jackpot]  
> starting ...  
> [2015-02-23 23:30:48,873][INFO][transport] [Jackpot]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 192.168.0.172:9300]}  
> [2015-02-23 23:30:49,531][INFO][discovery] [Jackpot]  
> elasticsearch/AWIWLy1mQ4aFlUE36aSpog  
> [2015-02-23 23:30:53,330][INFO][cluster.service] [Jackpot]  
> new\_master  
> [Jackpot][AWIWLy1mQ4aFlUE36aSpog][NOLD0048][inet[/192.168.0.172:9300]],  
> reason: zen-disco-join (elected\_as\_master)  
> [2015-02-23 23:30:53,366][INFO][gateway] [Jackpot]  
> recovered [0] indices into cluster\_state  
> [2015-02-23 23:30:53,752][INFO][http] [Jackpot]  
> bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/  
> 192.168.0.172:9200]}  
> [2015-02-23 23:30:53,752][INFO][node] [Jackpot]  
> started
> 
> _Kibana console window on startup:_  
> {"@timestamp":"2015-02-23T22:32:04.365Z","level":"info","message":"Listening  
> on 0.0.0.0:5601","node\_env":""production""}
> 
> But when I go to [http://localhost:5601](http://localhost:5601), it tries to load the webpage but  
> crashes with an\* error message\*:  
> Fatal Error  
> Kibana: Unable to connect to Elasticsearch  
> Error: unknown error  
> at respond ([http://localhost:5601/index.js?\_b=5888:81675:15](http://localhost:5601/index.js?_b=5888:81675:15))  
> at checkRespForFailure ([http://localhost:5601/index.js?\_b=5888:81641:7](http://localhost:5601/index.js?_b=5888:81641:7)  
> )  
> at [http://localhost:5601/index.js?\_b=5888:80304:7](http://localhost:5601/index.js?_b=5888:80304:7)  
> at wrappedErrback ([http://localhost:5601/index.js?\_b=5888:20897:78](http://localhost:5601/index.js?_b=5888:20897:78))  
> at wrappedErrback ([http://localhost:5601/index.js?\_b=5888:20897:78](http://localhost:5601/index.js?_b=5888:20897:78))  
> at wrappedErrback ([http://localhost:5601/index.js?\_b=5888:20897:78](http://localhost:5601/index.js?_b=5888:20897:78))  
> at [http://localhost:5601/index.js?\_b=5888:21030:76](http://localhost:5601/index.js?_b=5888:21030:76)  
> at Scope.$eval ([http://localhost:5601/index.js?\_b=5888:22017:28](http://localhost:5601/index.js?_b=5888:22017:28))  
> at Scope.$digest ([http://localhost:5601/index.js?\_b=5888:21829:31](http://localhost:5601/index.js?_b=5888:21829:31))  
> at Scope.$apply ([http://localhost:5601/index.js?\_b=5888:22121:24](http://localhost:5601/index.js?_b=5888:22121:24))
> 
> _Kibana console spits out this message (Note the connect  
> econnrefused-error message):_  
> {"@timestamp":"2015-02-23T22:32:04.365Z","level":"info","message":"Listening  
> on 0.0.0.0:5601","node\_env":""production""}  
> {"@timestamp":"2015-02-23T22:32:33.095Z","level":"info","message":"GET /  
> 304 -  
> 3ms","node\_env":""production"","request":{"method":"GET","url":"/","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,_/_;q=0.8","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
> {"@timestamp":"2015-02-23T22:32:33.203Z","level":"info","message":"GET  
> /styles/main.css?\_b=5888 304 -  
> 3ms","node\_env":""production"","request":{"method":"GET","url":"/styles/main.css?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"text/css,_/_;q=0.1","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40  
> {"@timestamp":"2015-02-23T22:32:33.205Z","level":"info","message":"GET  
> /images/initial\_load.gif 304 -  
> 5ms","node\_env":""production"","request":{"method":"GET","url":"/images/initial\_load.gif","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"image/webp,_/_;q=0.8","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/  
> {"@timestamp":"2015-02-23T22:32:33.207Z","level":"info","message":"GET  
> /bower\_components/requirejs/require.js?\_b=5888 304 -  
> 5ms","node\_env":""production"","request":{"method":"GET","url":"/bower\_components/requirejs/require.js?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36  
> {"@timestamp":"2015-02-23T22:32:33.213Z","level":"info","message":"GET  
> /require.config.js?\_b=5888 304 -  
> 10ms","node\_env":""production"","request":{"method":"GET","url":"/require.config.js?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
> Chrome/40.0.2214.11  
> {"@timestamp":"2015-02-23T22:32:33.328Z","level":"info","message":"GET  
> /index.js?\_b=5888 304 -  
> 1ms","node\_env":""production"","request":{"method":"GET","url":"/index.js?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
> Chrome/40.0.2214.115 Safari/537.36","r  
> {"@timestamp":"2015-02-23T22:32:33.330Z","level":"info","message":"GET  
> /styles/theme/elk.ico 304 -  
> 0ms","node\_env":""production"","request":{"method":"GET","url":"/styles/theme/elk.ico","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"_/_","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
> Chrome/40.0.2214.115 Safari/53  
> {"@timestamp":"2015-02-23T22:32:33.696Z","level":"info","message":"GET  
> /config?\_b=5888 304 -  
> 3ms","node\_env":""production"","request":{"method":"GET","url":"/config?\_b=5888","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)  
> Chrome/40.0.2214.115 Safari/537.36","accept":"_/_","refer  
> {"@timestamp":"2015-02-23T22:32:33.925Z","level":"info","message":"GET  
> /images/no\_border.png 304 -  
> 2ms","node\_env":""production"","request":{"method":"GET","url":"/images/no\_border.png","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"image/webp,_/_;q=0.8","user-agent":"Mozilla/5.0  
> (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2  
> {"@timestamp":"2015-02-23T22:32:34.941Z","level":"error","message":"connect  
> ECONNREFUSED","node\_env":""production"","error":{"message":"connect  
> ECONNREFUSED","name":"Error","stack":"Error: connect ECONNREFUSED\n at  
> errnoException (net.js:905:11)\n at Object.afterConnect [as oncomplete]  
> (net.js:896:19)\n","code":"ECONNREFUSED"}}  
> {"@timestamp":"2015-02-23T22:32:34.944Z","level":"info","message":"GET /  
> 502 -  
> 1013ms","node\_env":""production"","request":{"method":"GET","url":"/elasticsearch/","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"application/json,  
> text/plain, _/_","user-agent":"Mozilla/5.0 (Windows NT 6.1; WOW64)  
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Sa  
> {"@timestamp":"2015-02-23T22:32:37.161Z","level":"info","message":"GET  
> /bower\_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 304 -  
> 6ms","node\_env":""production"","request":{"method":"GET","url":"/bower\_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0  
> (Windows NT
> 
> _When I close the kibana.bat - window, I get this from the  
> elasticsearch.bat-window:_  
> java.io.IOException: An existing connection was forcibly closed by the  
> remote host  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:192)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
> at java.lang.Thread.run(Thread.java:745)
> 
> So from the error message it looks like kibana has been able to contact  
> Elasticsearch, but why it fails beats me. Googling for "connect  
> econnrefused" gives me that the service being looked for is not there, in  
> my case it will mean that kibana can't find Elasticsearch. But then why  
> the error message in Elasticsearch console window?
> 
> I'm out of ideas. Anyone help on this matter would be much appreciated!
> 
> --  
> 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/f9f1700c-9c39-4e15-a9df-19fc486ec16b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f9f1700c-9c39-4e15-a9df-19fc486ec16b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/f9f1700c-9c39-4e15-a9df-19fc486ec16b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/f9f1700c-9c39-4e15-a9df-19fc486ec16b%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/CAEYi1X8R-9hMKGE2TULVZYxkJQtJFeW4V\_uAwFc5u7BpxD5qaw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8R-9hMKGE2TULVZYxkJQtJFeW4V_uAwFc5u7BpxD5qaw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Rana\_Singh](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Rana\_Singh](https://discuss.elastic.co/u/Rana_Singh)\
**Post date:** [February 24, 2015, 9:34am UTC](https://discuss.elastic.co/t/kibana-4-with-elastic-search-1-4-4-gives-connect-econnrefused/22342/3 "2015-02-24T09:34:20Z")

</div>

Yes, both are run on same host.

--  
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/39ad1195-8023-4420-b442-298d4bd0d427%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/39ad1195-8023-4420-b442-298d4bd0d427%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:30am UTC](https://discuss.elastic.co/t/kibana-4-with-elastic-search-1-4-4-gives-connect-econnrefused/22342/4 "2017-07-06T00:30:33Z")

</div>


