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

**URL:** <https://discuss.elastic.co/t/unable-to-authenticate-user-elastic-in-docker-compose/281445>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [August 14, 2021, 2:56pm UTC](https://discuss.elastic.co/t/unable-to-authenticate-user-elastic-in-docker-compose/281445 "2021-08-14T14:56:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naaviin](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@naaviin](https://discuss.elastic.co/u/naaviin)\
**Post date:** [August 14, 2021, 2:56pm UTC](https://discuss.elastic.co/t/unable-to-authenticate-user-elastic-in-docker-compose/281445/1 "2021-08-14T14:56:38Z")

</div>

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

```auto
version: "3.9"

services:
  kibana:
    image: docker.elastic.co/kibana/kibana:${ELASTIC_STACK_VERSION}
    environment:
       - ELASTICSEARCH_USERNAME=elastic
       - ELASTICSEARCH_PASSWORD=changme
    volume:
........

```

```auto
{"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

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

```

---

<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 11, 2021, 2:57pm UTC](https://discuss.elastic.co/t/unable-to-authenticate-user-elastic-in-docker-compose/281445/2 "2021-09-11T14:57:21Z")

</div>

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