Kibana server not ready yet

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

{"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"}

This is my docker-compose yml file

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

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

Also add a random encryption key

  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
1 Like

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

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

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