Пытаюсь поработать с elasticsearch,kibana и столкнулся с проблемой.
Запускаю контейнер согласно инструкции
docker run -d --name elasticsearch --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:8.2.2
После чего нужно выполнить команду для получения токена в кибану
docker exec -it elasticsearch /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana
Я так понимаю в ответе я должен получить тот самый токен.
Но вместо этого получаю лог ошибки
WARNING: Owner of file [/usr/share/elasticsearch/config/users] used to be [root], but now is [elasticsearch]
WARNING: Owner of file [/usr/share/elasticsearch/config/users_roles] used to be [root], but now is [elasticsearch]
Failed to determine the health of the cluster. Cluster health is currently RED.
This means that some cluster data is unavailable and your cluster is not fully functional.
The cluster logs (https://www.elastic.co/guide/en/elasticsearch/reference/8.2/logging.html) might contain information/indications for the underlying cause
It is recommended that you resolve the issues with your cluster before continuing
It is very likely that the command will fail when run against an unhealthy cluster.
If you still want to attempt to execute this command against an unhealthy cluster, you can pass the `-f` parameter.
ERROR: Failed to determine the health of the cluster. Cluster health is currently RED.
Совершенно не понимаю почему он мне втирает про кластер, я хочу работать и запускаю без кластера. Возможно проблема кроется в WARNING: Owner of file