Kibana- Unable to Retrieve Version information from Elasticsearch

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:

[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

I do see this as well in the logs:

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:

[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]

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