docker-compose.yml
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
container_name: elasticsearch
environment:
- discovery.type=single-node
ports:
- 9200:9200
- 9300:9300
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.7.0
container_name: kibana
ports:
- 5601:5601
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- elastic
networks:
elastic:
volumes:
esdata:
Логи кибаны:
{"type":"log","@timestamp":"2023-05-11T08:43:52Z","tags":["info","savedobjects-service"],"pid":8,"message":"Starting saved objects migrations"}
{"type":"log","@timestamp":"2023-05-11T08:43:52Z","tags":["info","savedobjects-service"],"pid":8,"message":"Creating index .kibana_1."}
{"type":"log","@timestamp":"2023-05-11T08:43:52Z","tags":["warning","savedobjects-service"],"pid":8,"message":"Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_1/aE_ZrxxqRMKfjowySuD93w] already exists, with { index_uuid=\"aE_ZrxxqRMKfjowySuD93w\" & index=\".kibana_1\" }"}
{"type":"log","@timestamp":"2023-05-11T08:43:52Z","tags":["warning","savedobjects-service"],"pid":8,"message":"Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_1 and restarting Kibana."}
Но при этом пинг с обеих сторон проходит и курл с кибаны выполняется:
bash-4.2$ curl http://elasticsearch:9200/
{
"name" : "6ee089297c4e",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "Isg4Og2BQDypcuxt9rSglQ",
"version" : {
"number" : "7.7.0",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "81a1e9eda8e6183f5237786246f6dced26a10eaf",
"build_date" : "2020-05-12T02:01:37.602180Z",
"build_snapshot" : false,
"lucene_version" : "8.5.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
Уже пару дней убил, попробовал разные версии кибаны и эластика и пробовал с разных ресурсов docker-compose.yml, но логи всегда +- одни и те же, хотя неделю назад также запускал кибану и эластик, и все нормально работало, спокойно с хоста заходил в веб-морду кибаны.
В чем может быть ошибка?