# Cant connect to localhost

**URL:** <https://discuss.elastic.co/t/cant-connect-to-localhost/39465>\
**Category:** Kibana\
**Created:** [January 18, 2016, 3:19pm UTC](https://discuss.elastic.co/t/cant-connect-to-localhost/39465 "2016-01-18T15:19:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simroo](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@simroo](https://discuss.elastic.co/u/simroo)\
**Post date:** [January 18, 2016, 3:19pm UTC](https://discuss.elastic.co/t/cant-connect-to-localhost/39465/1 "2016-01-18T15:19:30Z")

</div>

Hello  
im trying to set up ELK, on a Centos, but i cant seem to get kibana to work.  
When running curl -XGET [http://localhost:5601](http://localhost:5601) i get Failed connect to localhost:5601;  
also  
service kibana status  
Redirecting to /bin/systemctl status kibana.service  
● kibana.service - no description given  
Loaded: loaded (/usr/lib/systemd/system/kibana.service; enabled; vendor preset: disabled)  
Active: active (running) since mån 2016-01-18 16:17:34 CET; 827ms ago  
Main PID: 22118 (node)  
CGroup: /system.slice/kibana.service  
└─22118 /opt/kibana/bin/../node/bin/node /opt/kibana/bin/../src/cli

jan 18 16:17:34 localhost.localdomain systemd[1]: kibana.service holdoff time over, scheduling restart.  
jan 18 16:17:34 localhost.localdomain systemd[1]: Started no description given.  
jan 18 16:17:34 localhost.localdomain systemd[1]: Starting no description given...

- 

## There is no log file in /var/log/kibana, as there is now kibana. When running ./kibana in the opt/kibana/bin ./kibana FATAL CLI ERROR YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 13, column 13: server.port: 5601 ^ at generateError (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:160:10) at throwError (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:166:9) at readBlockMapping (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:1027:9) at composeNode (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:1315:12) at readDocument (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:1478:3) at loadDocuments (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:1538:5) at load (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:1555:19) at Object.safeLoad (/opt/kibana/node\_modules/js-yaml/lib/js-yaml/loader.js:1573:10) at module.exports (/opt/kibana/src/cli/serve/read\_yaml\_config.js:47:19) at Command.callee$1$0$ (/opt/kibana/src/cli/serve/serve.js:66:22) at tryCatch (/opt/kibana/node\_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as \_invoke] (/opt/kibana/node\_modules/babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/opt/kibana/node\_modules/babel-runtime/regenerator/runtime.js:100:21) at invoke (/opt/kibana/node\_modules/babel-runtime/regenerator/runtime.js:136:37) at enqueueResult (/opt/kibana/node\_modules/babel-runtime/regenerator/runtime.js:185:17) at new Promise (/opt/kibana/node\_modules/babel-core/node\_modules/core-js/modules/es6.promise.js:197:7)

I have disabled the firewall, but still no luck.  
What im i missing ?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [January 18, 2016, 3:55pm UTC](https://discuss.elastic.co/t/cant-connect-to-localhost/39465/2 "2016-01-18T15:55:58Z")

</div>

@simroo looks like Kibana is failing to start because of an invalid kibana.yml file. The log doesn't say where that file it located but it seems to have invalid Yaml.

How did you install Kibana? You will probably have better luck just downloading it from the site: [elastic.co/downloads/kibana](http://elastic.co/downloads/kibana)

---

<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, 2:04pm UTC](https://discuss.elastic.co/t/cant-connect-to-localhost/39465/3 "2017-07-06T14:04:45Z")

</div>

Closed on July 6, 2017, 2:04pm UTC


