Kibana is not loading on 5601

I am using docker-compose to bring up the elastic stack. Everything was working fine till yesterday. I decided to push bulk size database query data, so Kibana started throwing timeout errors. Hence I customized the kibana.yml file as follows -

server.port: 5601
server.host: "127.0.0.1"
#server.basePath: ""
#server.rewriteBasePath: false
#server.maxPayloadBytes: 1048576
#server.name: "your-hostname"
elasticsearch.url: "http://elasticsearch:9200"
#elasticsearch.preserveHost: true
#kibana.index: ".kibana"
#kibana.defaultAppId: "home"
#elasticsearch.username: "user123"
#elasticsearch.password: "password123"
#server.ssl.enabled: false
#server.ssl.certificate: /path/to/your/server.crt
#server.ssl.key: /path/to/your/server.key
#elasticsearch.ssl.certificate: /path/to/your/client.crt
#elasticsearch.ssl.key: /path/to/your/client.key
#elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]
#elasticsearch.ssl.verificationMode: full
elasticsearch.pingTimeout: 5000
elasticsearch.requestTimeout: 300000
#elasticsearch.requestHeadersWhitelist: [ authorization ]
#elasticsearch.customHeaders: {}
elasticsearch.shardTimeout: 100000
elasticsearch.startupTimeout: 20000
#elasticsearch.logQueries: false
#pid.file: /var/run/kibana.pid
#logging.dest: stdout
#logging.silent: false
#logging.quiet: false
#logging.verbose: false
#ops.interval: 5000
#i18n.locale: "en"

After this whenever I run docker-compose.yml, all data get pushed perfectly to Elasticsearch and it is reachable via 127.0.0.1:9200. But Kibana server is not connecting at all and throws "Empty Response error". Can anyone please help?

I just solved it. Apparently while accessing Kibana from a VM or Docker, we need to specify "server.host" parameter in kibana.yml to point to "0.0.0.0" and not localhost or any local IP address.

1 Like

Great. Thanks for keeping the community posted.

Cheers,
Bhavya

1 Like

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