Kibana server is not ready yet

Hello everyone,
I am trying to setup my ELK Stack with authentication in docker with the following commands:

docker run -d --name elastic -p :9200:9200 -p :9300:9300 --restart=always -e "http.host=0.0.0.0" -e "discovery.type=single-node" -e "xpack.security.enabled=true" -e "ELASTICSEARCH_USERNAME=elastic" -e "ELASTICSEARCH_PASSWORD=changeme" -v /opt/elastic/data:/usr/share/elasticsearch/data docker.elastic.co/elasticsearch/elasticsearch:7.13.1

docker run -d --name kibana -p :8085:5601 --restart=always -e "ELASTICSEARCH_HOSTS=http://:9200" -e XPACK_GRAPH_ENABLED=true -e XPACK_WATCHER_ENABLED=true -e XPACK_ML_ENABLED=true -e XPACK_MONITORING_ENABLED=true -e XPACK_MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED -e "ELASTICSEARCH_USERNAME=elastic" -e "ELASTICSEARCH_PASSWORD=changeme" docker.elastic.co/kibana/kibana:7.13.1

docker run -d --name logstash
--restart=always
-p 10.100.50.97:5044:5044 -p 10.100.50.97:9600:9600
-e "XPACK.MONITORING.ELASTICSEARCH.HOSTS=http://10.100.50.97:9200"
docker.elastic.co/logstash/logstash:7.13.1


But when I try to access the kibana web interface I get this error:

Kibana server is not ready yet

When to run the above commands without the authentication part, it works, but I really need the authentication.

I've already searched the solution everywhere, but no success.

Could anyone help with this issue?

Thanks!

Install Kibana with Docker | Kibana Guide [8.3] | Elastic hope this guide helps you in setting it up. let us know if u have followed all the steps mentioned and able to follow through. When you installed Elasticsearch, it automatically creates the token and credentials for you. However, this token created during installation has a usage time of 30 min to use in kibana.

Thanks
Rashmi

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