# Kibana server is not ready yet

**URL:** <https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [August 22, 2023, 7:39pm UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408 "2023-08-22T19:39:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seamanw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seamanw/32/124048_2.png) [@seamanw](https://discuss.elastic.co/u/seamanw)\
**Post date:** [August 22, 2023, 7:39pm UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408/1 "2023-08-22T19:39:56Z")

</div>

I install Elasticsearch and Kibana following the Official document: [Install Kibana with Docker | Kibana Guide [8.9] | Elastic](https://www.elastic.co/guide/en/kibana/current/docker.html)

the command is:

```auto
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.9.1
docker pull docker.elastic.co/kibana/kibana:8.9.1
docker network create elastic

docker run -it \
    --name es89101 \
    --net elastic \
    --restart=always \
    -v /home/username/elasticsearch/plugins:/usr/share/elasticsearch/plugins \
    -v /home/username/elasticsearch/data:/usr/share/elasticsearch/data \
    -p 9200:9200 \
    -p 9300:9300 \
    docker.elastic.co/elasticsearch/elasticsearch:8.9.1

docker run -it \
    --name kib89101 \
    --net elastic \
    --restart=always \
    -p 5601:5601 \
    docker.elastic.co/kibana/kibana:8.9.1

```

every thing is OK:

When Kibana is starting, I paste the token, but it "Completing setup" for a long time,  
until i refreshed my browser.

Then I input elastic's password, entered kibana.

That's looks ok

But when I **restarted my server** , es89101 and kib89101 is restarted correctly, I can access 9200 port, but when i enter kibana, 5601 port, browser print " **Kibana server is not ready yet**"

I checked Kibana's log whith command:

```auto
docker logs kib89101

```

it prints

```auto
[2023-08-22T19:00:51.807+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 172.18.0.2:9200

```

I don't know why

I've tried several times and got the same result.

my docker version is

```auto
[root@cs8 ~]# docker version
Client: Docker Engine - Community
 Version: 24.0.1
 API version: 1.43
 Go version: go1.20.4
 Git commit: 6802122
 Built: Fri May 19 18:04:11 2023
 OS/Arch: linux/amd64
 Context: default

Server: Docker Engine - Community
 Engine:
  Version: 24.0.1
  API version: 1.43 (minimum version 1.12)
  Go version: go1.20.4
  Git commit: 463850e
  Built: Fri May 19 18:03:12 2023
  OS/Arch: linux/amd64
  Experimental: false
 containerd:
  Version: 1.6.21
  GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version: 1.1.7
  GitCommit: v1.1.7-0-g860f061
 docker-init:
  Version: 0.19.0
  GitCommit: de40ad0
[root@cs8 ~]# 

```

---

<div class="post-metadata">

**Author:** ![kgreiner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kgreiner/32/108978_2.png) [@kgreiner](https://discuss.elastic.co/u/kgreiner)\
**Post date:** [August 22, 2023, 8:38pm UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408/2 "2023-08-22T20:38:09Z")

</div>

Heya @seamanw!

After completing the initial Interactive Setup, the connection info for Elasticsearch is generally written to the `kibana.yml` file for future connections. This includes a value for `elasticsearch.hosts`.

When you restarted the Elasticsearch server, Docker may have assigned a slightly different IP address, e.g. In the logs its looking for ES at `172.18.0.2`, but the IP might now be `172.18.0.3`.

Please start ES, note the IP address, paste that value into the appropriate spot (there may be additional places this value is required) in the `kibana.yml` and then start Kibana.

Let's give that a try!

---

<div class="post-metadata">

**Author:** ![seamanw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seamanw/32/124048_2.png) [@seamanw](https://discuss.elastic.co/u/seamanw)\
**Post date:** [August 23, 2023, 6:26pm UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408/3 "2023-08-23T18:26:08Z")

</div>

I have tried the method you gave, but a new error occurred

I checked ES's new ip, and modified elasticsearch.hosts value in `config/kibana.yml` , and restarted kibana.

browser still shows “Kibana server is not ready yet.”

Kibana's log :

```auto
docker logs kib89101
......
[2023-08-23T18:09:19.330+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. Hostname/IP does not match certificate's altnames: IP: 172.18.0.3 is not in the cert's list: 172.18.0.2, 127.0.0.1
......

```

Looks like an authentication error.

But even if this way solves this problem, do I have to modify the configuration file **every time** I restart? I don't think this way is very elegant, so is there a more perfect solution?

Thanks

---

<div class="post-metadata">

**Author:** ![kgreiner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kgreiner/32/108978_2.png) [@kgreiner](https://discuss.elastic.co/u/kgreiner)\
**Post date:** [August 23, 2023, 8:00pm UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408/4 "2023-08-23T20:00:27Z")

</div>

Sorry that didn't work. I'm not a Docker expert, but I have some more options for us to try.

Let's try adding the container alias for your Elasticsearch (looks like it was `es89101`) to the `elasticsearch.hosts` in the `kibana.yml`.

It should be something like:  
`elasticsearch.hosts: ['https://es89101:9200']`

Please give that a try first.

If that doesn't work, we will try to override with [Docker Env Vars](https://www.elastic.co/guide/en/kibana/current/docker.html#environment-variable-config)

---

<div class="post-metadata">

**Author:** ![seamanw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seamanw/32/124048_2.png) [@seamanw](https://discuss.elastic.co/u/seamanw)\
**Post date:** [August 24, 2023, 7:21am UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408/5 "2023-08-24T07:21:33Z")

</div>

Thank you for reply.

I have tried to set `elasticsearch.hosts` to `https://es89101:9200`, but it looks not work，too.

```auto
docker logs kib89101
......
[2023-08-24T06:57:42.737+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. Hostname/IP does not match certificate's altnames: Host: es89101. is not in the cert's altnames: DNS:localhost, IP Address:172.18.0.2, IP Address:127.0.0.1, DNS:1b58252e4c7e
......

```

Looks like another authentication error.

I'm not a Docker expert too. haha 😂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 21, 2023, 7:21am UTC](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/341408/6 "2023-09-21T07:21:44Z")

</div>

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