Kibana: Unknown error while connecting to Elasticse

Browser error:
Kibana: Unknown error while connecting to Elasticsearch
Error: Unknown error while connecting to Elasticsearch
Error: Internal Server Error
at respond (http://127.0.0.1:5601/index.js?_b=6004:81691:15)
at checkRespForFailure (http://127.0.0.1:5601/index.js?_b=6004:81659:7)
at http://127.0.0.1:5601/index.js?_b=6004:80322:7
at wrappedErrback (http://127.0.0.1:5601/index.js?_b=6004:20897:78)
at wrappedErrback (http://127.0.0.1:5601/index.js?_b=6004:20897:78)
at wrappedErrback (http://127.0.0.1:5601/index.js?_b=6004:20897:78)
at http://127.0.0.1:5601/index.js?_b=6004:21030:76
at Scope.$eval (http://127.0.0.1:5601/index.js?_b=6004:22017:28)
at Scope.$digest (http://127.0.0.1:5601/index.js?_b=6004:21829:31)
at Scope.$apply (http://127.0.0.1:5601/index.js?_b=6004:22121:24)

Console messages (from kibana):
./kibana -e 192.168.50.5:9200
{"@timestamp":"2015-06-05T00:24:34.220Z","level":"info","message":"No existing kibana index found","node_env":"production"}
{"@timestamp":"2015-06-05T00:24:34.227Z","level":"info","message":"Listening on 0.0.0.0:5601","node_env":"production"}
{"@timestamp":"2015-06-05T00:24:41.260Z","level":"info","message":"GET / 304 - 4ms","node_env":"production","request":{"method":"GET","url":"/","headers":{"host":"localhost:5601","connection":"keep-alive","cache-control":"max-age=0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8","if-none-match":"W/"717-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT"},"remoteAddress":"192.168.0.25","remotePort":36278},"response":{"statusCode":304,"responseTime":4,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.316Z","level":"info","message":"GET /styles/main.css?_b=6004 304 - 2ms","node_env":"production","request":{"method":"GET","url":"/styles/main.css?_b=6004","headers":{"host":"localhost:5601","connection":"keep-alive","cache-control":"max-age=0","accept":"text/css,/;q=0.1","if-none-match":"W/"32508-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.0.25","remotePort":36278},"response":{"statusCode":304,"responseTime":2,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.318Z","level":"info","message":"GET /images/initial_load.gif 304 - 1ms","node_env":"production","request":{"method":"GET","url":"/images/initial_load.gif","headers":{"host":"localhost:5601","connection":"keep-alive","cache-control":"max-age=0","accept":"image/webp,/;q=0.8","if-none-match":"W/"2e9e-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.0.25","remotePort":36279},"response":{"statusCode":304,"responseTime":1,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.319Z","level":"info","message":"GET /bower_components/requirejs/require.js?_b=6004 304 - 2ms","node_env":"production","request":{"method":"GET","url":"/bower_components/requirejs/require.js?_b=6004","headers":{"host":"localhost:5601","connection":"keep-alive","cache-control":"max-age=0","accept":"/","if-none-match":"W/"14640-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.0.25","remotePort":36280},"response":{"statusCode":304,"responseTime":2,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.320Z","level":"info","message":"GET /require.config.js?_b=6004 304 - 2ms","node_env":"production","request":{"method":"GET","url":"/require.config.js?_b=6004","headers":{"host":"localhost:5601","connection":"keep-alive","cache-control":"max-age=0","accept":"/","if-none-match":"W/"9a6-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.0.25","remotePort":36281},"response":{"statusCode":304,"responseTime":2,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.397Z","level":"info","message":"GET /index.js?_b=6004 304 - 1ms","node_env":"production","request":{"method":"GET","url":"/index.js?_b=6004","headers":{"host":"localhost:5601","connection":"keep-alive","accept":"/","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8","if-none-match":"W/"4f5fb7-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT"},"remoteAddress":"192.168.0.25","remotePort":36281},"response":{"statusCode":304,"responseTime":1,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.397Z","level":"info","message":"GET /styles/theme/elk.ico 304 - 1ms","node_env":"production","request":{"method":"GET","url":"/styles/theme/elk.ico","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","accept":"/","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8","if-none-match":"W/"47e-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT"},"remoteAddress":"192.168.0.25","remotePort":36280},"response":{"statusCode":304,"responseTime":1,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:41.767Z","level":"info","message":"GET /config?_b=6004 304 - 3ms","node_env":"production","request":{"method":"GET","url":"/config?_b=6004","headers":{"host":"localhost:5601","connection":"keep-alive","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","accept":"/","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8","if-none-match":"W/"151-5c053bf3""},"remoteAddress":"192.168.0.25","remotePort":36280},"response":{"statusCode":304,"responseTime":3,"contentLength":0}}
{"@timestamp":"2015-06-05T00:24:42.132Z","level":"info","message":"GET /elasticsearch/ 500 - 149ms","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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.0.25","remotePort":36280},"response":{"statusCode":500,"responseTime":149,"contentLength":176}}
{"@timestamp":"2015-06-05T00:24:42.143Z","level":"info","message":"GET /bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.2.0 304 - 0ms","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","cache-control":"max-age=0","if-none-match":"W/"ffac-3353353963"","if-modified-since":"Wed, 01 Apr 2015 16:08:44 GMT","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60","accept":"/","dnt":"1","referer":"http://localhost:5601/","accept-encoding":"gzip, deflate, lzma, sdch","accept-language":"en-US,en;q=0.8"},"remoteAddress":"192.168.0.25","remotePort":36280},"response":{"statusCode":304,"responseTime":0,"contentLength":0}}

elastic search is running under a docker-container with the elastic image

My bad, I was using -e localhost:9200 on kibana instead of http://localhost:9200