Unable to authenticate user ['elastic'] in docker-compose

I am hitting below error in Kibana during startup via docker compose. I am using same id elastic in my kibana

below is my docker-compsoe code

version: "3.9"

services:
  kibana:
    image: docker.elastic.co/kibana/kibana:${ELASTIC_STACK_VERSION}
    environment:
       - ELASTICSEARCH_USERNAME=elastic
       - ELASTICSEARCH_PASSWORD=changme
    volume:
........
{"type":"log","@timestamp":"2021-08-14T14:11:21+00:00","tags":["error","savedobjects-service"],"pid":1213,"message":"Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: unable to authenticate user ['elastic'] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]"}

elasticsearch.yml

server.host: '0.0.0.0'
elasticsearch.hosts: '["http://es1:9200","http://es2:9200","http://es3:9200"]'

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