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"}
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.