# Kibana- Unable to Retrieve Version information from Elasticsearch

**URL:** <https://discuss.elastic.co/t/kibana-unable-to-retrieve-version-information-from-elasticsearch/298673>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [March 2, 2022, 8:15pm UTC](https://discuss.elastic.co/t/kibana-unable-to-retrieve-version-information-from-elasticsearch/298673 "2022-03-02T20:15:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![userR](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@userR](https://discuss.elastic.co/u/userR)\
**Post date:** [March 2, 2022, 8:15pm UTC](https://discuss.elastic.co/t/kibana-unable-to-retrieve-version-information-from-elasticsearch/298673/1 "2022-03-02T20:15:35Z")

</div>

Hi, I am using 8.0.0 for Elasticsearch and Kibana, with a docker-compose set up. Elasticsearch is running with no issues, how I do get the title message error.

Error:

```auto
[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. socket hang up - Local: IP:PORT, Remote: IP:PORT

```

RESOLVED: Had to generate passwords with Elasticsearch

---

<div class="post-metadata">

**Author:** ![userR](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@userR](https://discuss.elastic.co/u/userR)\
**Post date:** [March 2, 2022, 8:25pm UTC](https://discuss.elastic.co/t/kibana-unable-to-retrieve-version-information-from-elasticsearch/298673/2 "2022-03-02T20:25:36Z")

</div>

I do see this as well in the logs:

```auto
Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.

```

How would I go about doing this with Docker-Compose?

Digging deeper, I see this log error:

```auto
[ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]

```

---

<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:** [March 30, 2022, 8:25pm UTC](https://discuss.elastic.co/t/kibana-unable-to-retrieve-version-information-from-elasticsearch/298673/3 "2022-03-30T20:25:45Z")

</div>

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