# Kibana server not ready yet

**URL:** <https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [August 27, 2021, 5:13pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694 "2021-08-27T17:13:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Techy\_Vince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techy_vince/32/93831_2.png) [@Techy\_Vince](https://discuss.elastic.co/u/Techy_Vince)\
**Post date:** [August 27, 2021, 5:13pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694/1 "2021-08-27T17:13:09Z")

</div>

Hey everyone! Please I need fixing this error. Currently ruining from a docker container

```auto
{"type":"log","@timestamp":"2021-08-27T16:29:22+00:00","tags":["warning","plugins","actions","actions"],"pid":1215,"message":"APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command."}
{"type":"log","@timestamp":"2021-08-27T16:29:22+00:00","tags":["warning","plugins","alerting","plugins","alerting"],"pid":1215,"message":"APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command."}
{"type":"log","@timestamp":"2021-08-27T16:29:29+00:00","tags":["info","plugins","ruleRegistry"],"pid":1215,"message":"Write is disabled, not installing assets"}
{"type":"log","@timestamp":"2021-08-27T16:29:30+00:00","tags":["info","savedobjects-service"],"pid":1215,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
{"type":"log","@timestamp":"2021-08-27T16:29:31+00:00","tags":["error","savedobjects-service"],"pid":1215,"message":"Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 127.0.0.1:9200"}

```

---

<div class="post-metadata">

**Author:** ![Techy\_Vince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techy_vince/32/93831_2.png) [@Techy\_Vince](https://discuss.elastic.co/u/Techy_Vince)\
**Post date:** [August 27, 2021, 5:19pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694/2 "2021-08-27T17:19:51Z")

</div>

This is my docker-compose yml file

```auto
version: '2.2'
services:
  es01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.14.0
    container_name: elasticsearch
    environment:
      - node.name=es01
      - cluster.name=es-docker-cluster
      - discovery.seed_hosts=es01
      - cluster.initial_master_nodes=es01
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - data01:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
    networks:
      - elastic
  kib01:
    image: docker.elastic.co/kibana/kibana:7.14.0
    container_name: kibana
    ports:
      - 5601:5601
    environment:
      ELASTICSEARCH_URL: https://localhost:9200
      ELASTICSEARCH_HOSTS: http://localhost:9200
    networks:
      - elastic
volumes:
  data01:
    driver: local
networks:
  elastic:
    driver: bridge

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 27, 2021, 7:22pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694/3 "2021-08-27T19:22:21Z")

</div>

> [@Techy\_Vince](#):
>
> ```auto
> kib01:
> image: docker.elastic.co/kibana/kibana:7.14.0
> container_name: kibana
> ports:
> - 5601:5601
> environment:
> ELASTICSEARCH_URL: https://localhost:9200
> ELASTICSEARCH_HOSTS: http://localhost:9200
> networks:
> - elastic
> 
> ```

Your Kibana should look something like this, your kibana is not pointing to the correct elasticsearch endpoint.

Also add a random encryption key

```auto
  kib01:
    image: docker.elastic.co/kibana/kibana:${TAG}
    container_name: kib01
    ports:
      - 5601:5601
    environment:
      ELASTICSEARCH_URL: http://es01:9200
      ELASTICSEARCH_HOSTS: '["http://es01:9200"]' <!--- You need to refer to the service or container name
      XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: sadfkjhasdf-c4d3-4a0a-8290-asdflkjasdf
    networks:
      - elastic

```

---

<div class="post-metadata">

**Author:** ![Techy\_Vince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/techy_vince/32/93831_2.png) [@Techy\_Vince](https://discuss.elastic.co/u/Techy_Vince)\
**Post date:** [August 27, 2021, 7:32pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694/4 "2021-08-27T19:32:13Z")

</div>

It worked. Thank you! Quick question, where did you get the encryptionkey and why add it?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 27, 2021, 7:33pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694/5 "2021-08-27T19:33:51Z")

</div>

> **[Configure security in Kibana | Kibana Guide \[7.14\] | Elastic](https://www.elastic.co/guide/en/kibana/current/using-kibana-with-security.html#using-kibana-with-security)**

Make up a 32 bit string ... it is unique to you

---

<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 24, 2021, 7:36pm UTC](https://discuss.elastic.co/t/kibana-server-not-ready-yet/282694/7 "2021-09-24T19:36:05Z")

</div>

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