Cant connect to localhost


(Simroo) #1

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 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 ?


(Spencer Alger) #2

@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


(system) #3