Kibana 4 with elastic search 1.4.4 gives connect econnrefused

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 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, 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)
at checkRespForFailure (http://localhost:5601/index.js?_b=5888:81641:7)
at http://localhost:5601/index.js?_b=5888:80304:7
at wrappedErrback (http://localhost:5601/index.js?_b=5888:20897:78)
at wrappedErrback (http://localhost:5601/index.js?_b=5888:20897:78)
at wrappedErrback (http://localhost:5601/index.js?_b=5888:20897:78)
at http://localhost:5601/index.js?_b=5888:21030:76
at Scope.$eval (http://localhost:5601/index.js?_b=5888:22017:28)
at Scope.$digest (http://localhost:5601/index.js?_b=5888:21829:31)
at Scope.$apply (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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f9f1700c-9c39-4e15-a9df-19fc486ec16b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Are KB and KS running on the same host?

On 24 February 2015 at 09:46, Rana Singh 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 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, 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)
at checkRespForFailure (http://localhost:5601/index.js?_b=5888:81641:7
)
at http://localhost:5601/index.js?_b=5888:80304:7
at wrappedErrback (http://localhost:5601/index.js?_b=5888:20897:78)
at wrappedErrback (http://localhost:5601/index.js?_b=5888:20897:78)
at wrappedErrback (http://localhost:5601/index.js?_b=5888:20897:78)
at http://localhost:5601/index.js?_b=5888:21030:76
at Scope.$eval (http://localhost:5601/index.js?_b=5888:22017:28)
at Scope.$digest (http://localhost:5601/index.js?_b=5888:21829:31)
at Scope.$apply (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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8R-9hMKGE2TULVZYxkJQtJFeW4V_uAwFc5u7BpxD5qaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/39ad1195-8023-4420-b442-298d4bd0d427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.