Unable to connect to Elasticsearch. Error: index_not_found_exception index_not_found_exception: no such index [.kibana]

I'm trying to install and configure a simple node on my local machine using Docker, following the documentation.

However, when I try to execute the first step of the Kibana configuration and paste the enrollment token, it just hangs.

Upon checking the logs, I see there's a preceding issue:

2023-11-27 09:50:49 [2023-11-27T08:50:49.112+00:00][WARN ][savedobjects-service] Unable to connect to Elasticsearch. Error: index_not_found_exception
2023-11-27 09:50:49     Root causes:
2023-11-27 09:50:49             index_not_found_exception: no such index [.kibana]
2023-11-27 09:50:49 [2023-11-27T08:50:49.141+00:00][INFO ][savedobjects-service] [.kibana] INIT -> CREATE_NEW_TARGET. took: 25ms.

After this, there's nothing more to do but delete the container and try again. But still, no luck.


I'm very stubborn, and it's already been four versions with ELK.

I'm not sure if it was the solution or if there have been changes, as when executing the container creation I've noticed that some layers have been updated since this morning.

But what I do know is that, by mistake, I regenerated the token with

docker exec -it es01 /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

And lo and behold, it worked.

Certainly, each ELK installation is quite a challenge.

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