Kibana server not ready yet: ValidationError: child "elasticsearch" fails because [child "hosts" fails because ["hosts" at position 0 fails because ["0" must be a string]]]

Hi,
I am setting up a production cluster with version 6.6.0.1 as follows:
3 elastic nodes all as master, ingest, data
1 kibana node with elastic in it as elastic load balancer (master,ingest,data: false)
1 apm, 1 logstash

I am getting: Kibana server is not ready yet

Kibana Log:
Feb 14 12:10:04 kibana.bps.go.id systemd[1]: Started Kibana.
Feb 14 12:10:19 kibana.bps.go.id kibana[7720]: {"type":"log","@timestamp":"2019-02-14T05:10:19Z","tags":["plugin","warning"],"pid":7720,"path":"/usr/share/kibana/src/legacy/core_plugins/ems_util","message":"Skipping non-plugin directory at /usr/share/kibana/src/legacy/core_plugins/ems_util"}
Feb 14 12:10:21 kibana.bps.go.id kibana[7720]: {"type":"log","@timestamp":"2019-02-14T05:10:21Z","tags":["fatal","root"],"pid":7720,"message":"{ ValidationError: child "elasticsearch" fails because [child "hosts" fails because ["hosts" at position 0 fails because ["0" must be a string]]]\n at Object.exports.process (/usr/share/kibana/node_modules/joi/lib/errors.js:196:19)\n at internals.Object._validateWithOptions (/usr/share/kibana/node_modules/joi/lib/types/any/index.js:675:31)\n at module.exports.internals.Any.root.validate (/usr/share/kibana/node_modules/joi/lib/index.js:146:23)\n at Config._commit (/usr/share/kibana/src/server/config/config.js:139:35)\n at Config.set (/usr/share/kibana/src/server/config/config.js:108:10)\n at Config.extendSchema (/usr/share/kibana/src/server/config/config.js:81:10)\n at extendConfigService (/usr/share/kibana/src/plugin_discovery/plugin_config/extend_config_service.js:45:10) name: 'ValidationError' }"}
Feb 14 12:10:21 kibana.bps.go.id kibana[7720]: FATAL ValidationError: child "elasticsearch" fails because [child "hosts" fails because ["hosts" at position 0 fails because ["0" must be a string]]]
Feb 14 12:10:21 kibana.bps.go.id systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
Feb 14 12:10:21 kibana.bps.go.id systemd[1]: Unit kibana.service entered failed state.
Feb 14 12:10:21 kibana.bps.go.id systemd[1]: kibana.service failed.
Feb 14 12:10:22 kibana.bps.go.id systemd[1]: kibana.service holdoff time over, scheduling restart.
Feb 14 12:10:22 kibana.bps.go.id systemd[1]: Stopped Kibana.
Feb 14 12:10:22 kibana.bps.go.id systemd[1]: Started Kibana.

Elasticsearch cluster health:
https://gist.githubusercontent.com/sinunk/e8a14a72fc52a861dd76aabe74502086/raw/47d306e881a132253afae1b904cca705c22ca99e/elastic-cluster-health.md

Thank you for your help

Hi, this error message is self explanatory and indicates you need to check your kibana.yml settings.

ValidationError: child "elasticsearch" fails because [child "hosts" fails because ["hosts" at position 0 fails because ["0" must be a string]]]

See the documentation for elasticsearch.hosts in https://www.elastic.co/guide/en/kibana/current/settings.html. The value type is a list of strings

Thanks, it turns out elastic.url is deperecated in 6.6
Now it's elasticsearch.hosts

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