Kibana connection failed

Hi.
I'm using docker with a 3 nodes cluster with ES. I try to add kibana in docker.yml, but I cannot make it run.

cluster state:
{
"name" : "elasticsearch-1",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "kb1NHdbrRteGe0H5YPX2OA",
"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
elasticsearch-1:
image: elasticsearch:7.7.0
container_name: elasticsearch-1
environment:
- node.name=elasticsearch-1
- cluster.initial_master_nodes=elasticsearch-1,elasticsearch-2,elasticsearch-3
- discovery.seed_hosts=elasticsearch-2:9300,elasticsearch-3:9300
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data1
ports:
- 9200:9200
networks:
- esnet
kibana:
image: kibana:7.7.0
container_name: kibana
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://elasticsearch-1:9200
ports:
- '5601:5601'
networks:
- esnet
................................

kibana log
{"type":"log","@timestamp":"2020-05-26T20:42:26Z","tags":["error","elasticsearch","data"],"pid":6,"message":"Request error, retrying\nHEAD http://elasticsearch:9200/.apm-custom-link => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}

{"type":"log","@timestamp":"2020-05-26T20:42:26Z","tags":["error","elasticsearch","data"],"pid":6,"message":"Request error, retrying\nHEAD http://elasticsearch:9200/.apm-agent-configuration => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}

{"type":"log","@timestamp":"2020-05-26T20:42:27Z","tags":["error","elasticsearch","monitoring"],"pid":6,"message":"Request error, retrying\nGET http://elasticsearch:9200/_xpack => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}

{"type":"log","@timestamp":"2020-05-26T20:42:28Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"Unable to revive connection: http://elasticsearch:9200/"}

{"type":"log","@timestamp":"2020-05-26T20:42:28Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"No living connections"}

{"type":"log","@timestamp":"2020-05-26T20:42:28Z","tags":["error","elasticsearch","data"],"pid":6,"message":"Request error, retrying\nGET http://elasticsearch:9200/_xpack => getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200"}

{"type":"log","@timestamp":"2020-05-26T20:42:29Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"Unable to revive connection: http://elasticsearch:9200/"}

{"type":"log","@timestamp":"2020-05-26T20:42:29Z","tags":["warning","elasticsearch","data"],"pid":6,"message":"No living connections"}

Thanks in advance !

should be replaced by ELASTICSEARCH_HOSTS

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