Cannot start Kibana with fatal CLI error YAMLException

Anyone saw this error before? what's the resolution? Thanks,
Here is the error in the log:

Jul 23 00:59:59 awselsprdlap01 systemd: kibana.service holdoff time over, scheduling restart.

Jul 23 00:59:59 awselsprdlap01 systemd: Stopped Kibana.

Jul 23 00:59:59 awselsprdlap01 systemd: Started Kibana.

Jul 23 01:00:00 awselsprdlap01 kibana: FATALÂ CLI ERROR YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 121, column 1:

Jul 23 01:00:00 awselsprdlap01 kibana: ^

Jul 23 01:00:00 awselsprdlap01 kibana: at generateError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:160:10)

Jul 23 01:00:00 awselsprdlap01 kibana: at throwError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:166:9)

Jul 23 01:00:00 awselsprdlap01 kibana: at readBlockMapping (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1027:9)

Jul 23 01:00:00 awselsprdlap01 kibana: at composeNode (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1315:12)

Jul 23 01:00:00 awselsprdlap01 kibana: at readDocument (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1478:3)

Jul 23 01:00:00 awselsprdlap01 kibana: at loadDocuments (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1538:5)

Jul 23 01:00:00 awselsprdlap01 kibana: at load (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1555:19)

Jul 23 01:00:00 awselsprdlap01 kibana: at Object.safeLoad (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1573:10)

Jul 23 01:00:00 awselsprdlap01 kibana: at readYaml (/usr/share/kibana/src/core/server/config/read_config.js:25:38)

Jul 23 01:00:00 awselsprdlap01 kibana: at Object.exports.getConfigFromFiles (/usr/share/kibana/src/core/server/config/read_config.js:50:22)

Jul 23 01:00:00 awselsprdlap01 systemd: kibana.service: main process exited, code=exited, status=1/FAILURE

Jul 23 01:00:00 awselsprdlap01 systemd: Unit kibana.service entered failed state.

Jul 23 01:00:00 awselsprdlap01 systemd: kibana.service failed.

Jul 23 01:00:00 awselsprdlap01 systemd: kibana.service holdoff time over, scheduling restart.

Jul 23 01:00:00 awselsprdlap01 systemd: Stopped Kibana.

Jul 23 01:00:00 awselsprdlap01 systemd: Started Kibana.

Jul 23 01:00:01 awselsprdlap01 kibana: FATALÂ CLI ERROR YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 121, column 1:

Jul 23 01:00:01 awselsprdlap01 kibana: ^

Jul 23 01:00:01 awselsprdlap01 kibana: at generateError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:160:10)

Jul 23 01:00:01 awselsprdlap01 kibana: at throwError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:166:9)

Jul 23 01:00:01 awselsprdlap01 kibana: at readBlockMapping (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1027:9)

Jul 23 01:00:01 awselsprdlap01 kibana: at composeNode (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1315:12)

Jul 23 01:00:01 awselsprdlap01 kibana: at readDocument (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1478:3)

Jul 23 01:00:01 awselsprdlap01 kibana: at loadDocuments (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1538:5)

Jul 23 01:00:01 awselsprdlap01 kibana: at load (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1555:19)

Jul 23 01:00:01 awselsprdlap01 kibana: at Object.safeLoad (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1573:10)

Jul 23 01:00:01 awselsprdlap01 kibana: at readYaml (/usr/share/kibana/src/core/server/config/read_config.js:25:38)

Jul 23 01:00:01 awselsprdlap01 kibana: at Object.exports.getConfigFromFiles (/usr/share/kibana/src/core/server/config/read_config.js:50:22)

Jul 23 01:00:01 awselsprdlap01 systemd: kibana.service: main process exited, code=exited, status=1/FAILURE

Jul 23 01:00:01 awselsprdlap01 systemd: Unit kibana.service entered failed state.

Jul 23 01:00:01 awselsprdlap01 systemd: kibana.service failed.

Jul 23 01:00:01 awselsprdlap01 systemd: kibana.service holdoff time over, scheduling restart.

Jul 23 01:00:01 awselsprdlap01 systemd: Stopped Kibana.

Jul 23 01:00:01 awselsprdlap01 systemd: Started Kibana.

Jul 23 01:00:02 awselsprdlap01 kibana: FATALÂ CLI ERROR YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 121, column 1:

Jul 23 01:00:02 awselsprdlap01 kibana: ^

Jul 23 01:00:02 awselsprdlap01 kibana: at generateError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:160:10)

Jul 23 01:00:02 awselsprdlap01 kibana: at throwError (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:166:9)

Jul 23 01:00:02 awselsprdlap01 kibana: at readBlockMapping (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1027:9)

Jul 23 01:00:02 awselsprdlap01 kibana: at composeNode (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1315:12)

Jul 23 01:00:02 awselsprdlap01 kibana: at readDocument (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1478:3)

Jul 23 01:00:02 awselsprdlap01 kibana: at loadDocuments (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1538:5)

Jul 23 01:00:02 awselsprdlap01 kibana: at load (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1555:19)

Jul 23 01:00:02 awselsprdlap01 kibana: at Object.safeLoad (/usr/share/kibana/node_modules/js-yaml/lib/js-yaml/loader.js:1573:10)

Jul 23 01:00:02 awselsprdlap01 kibana: at readYaml (/usr/share/kibana/src/core/server/config/read_config.js:25:38)

Jul 23 01:00:02 awselsprdlap01 kibana: at Object.exports.getConfigFromFiles (/usr/share/kibana/src/core/server/config/read_config.js:50:22)

Jul 23 01:00:02 awselsprdlap01 systemd: kibana.service: main process exited, code=exited, status=1/FAILURE

Jul 23 01:00:02 awselsprdlap01 systemd: Unit kibana.service entered failed state.

Jul 23 01:00:02 awselsprdlap01 systemd: kibana.service failed.

Jul 23 01:00:02 awselsprdlap01 systemd: kibana.service holdoff time over, scheduling restart.

Jul 23 01:00:02 awselsprdlap01 systemd: Stopped Kibana.

Jul 23 01:00:02 awselsprdlap01 systemd: start request repeated too quickly for kibana.service

Jul 23 01:00:02 awselsprdlap01 systemd: Failed to start Kibana.

Jul 23 01:00:02 awselsprdlap01 systemd: Unit kibana.service entered failed state.

Jul 23 01:00:02 awselsprdlap01 systemd: kibana.service failed.

Here is the kibana.yml:
https://pastebin.com/gbKN4tBG

Hey @niudaye123,

The last line of your kibana.yml reads:

server.host = '*'

Try removing this line altogether. You already have a valid server.host defined earlier in the file.

That was it! This line came out as default and I wasn't sure why it's there. Thanks a bunch!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.