Docker replication does not work - error - Master is not discoverable

Docker replication does not work - error - Master is not discoverable
Detailed Error - "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes.
They don't come to a same cluster id

Welcome to our community! :smiley:

You will need to provide more information for us to help.
What does your docker config look like?
And your Elasticsearch config.
What do your Elasticsearch logs actually show?

version: '2.2'
services:
es01:
image: es-custom:latest
container_name: es01
environment:
- node.name=rn0000uhc.com
- cluster.name=es-docker-cluster
- discovery.seed_hosts=rn0000.uhc.com
- bootstrap.memory_lock=true
- cluster.initial_master_nodes=rn0000.uhc.com,rp00001.uhc.com
- logger.org.Elasticsearch.discovery=TRACE
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- ELASTIC_PASSWORD=$ELASTIC_PASSWORD
- xpack.license.self_generated.type=basic
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=true
- xpack.security.http.ssl.keystore.path=$CERTS_DIR/cert.p12
- xpack.security.http.ssl.keystore.password=pwd
- xpack.security.transport.ssl.enabled=true
- xpack.security.transport.ssl.verification_mode=none
- xpack.security.transport.ssl.keystore.path=$CERTS_DIR/cert.p12
- xpack.security.transport.ssl.truststore.path=$CERTS_DIR/cert.p12
- xpack.security.transport.ssl.keystore.password=pwd
- xpack.security.transport.ssl.truststore.password=pwd
ulimits:
memlock:
soft: -1
hard: -1
volumes: ['data01:/usr/share/Elasticsearch/data', 'certs:$CERTS_DIR']
ports:
- 0.0.0.0:9200:9200
- 0.0.0.0:9300:9300
healthcheck:
test: curl --cacert $CERTS_DIR/optum_root_ca.pem -s https://localhost:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5

kibana:
image: kibana-custom:latest
ports:
- 0.0.0.0:5601:5601
depends_on:
- es01

volumes: {"data01","certs"}

Docker container logs -----------------"at java.lang.Thread.run(Thread.java:831) [?:?]"] }
{"type": "server", "timestamp": "2021-11-02T19:05:09,898Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "es-docker-cluster", "node.name": "rn00000.uhc.com", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [rn00000.uhc.com, rp00001.uhc.com] to bootstrap a cluster: have discovered [{rn00000.uhc.com}{kkOZFKCESfyJICn4_twZmQ}{9eXDZtl2T-mRe5lY38bKaw}{172.28.0.2}{172.28.0.2:9300}{cdfhilmrstw}{ml.machine_memory=16600846336, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=536870912}]; discovery will continue using [10.29.72.33:9300] from hosts providers and [{rn0000.uhc.com}{kkOZFKCESfyJICn4_twZmQ}{9eXDZtl2T-mRe5lY38bKaw}{172.28.0.2}{172.28.0.2:9300}{cdfhilmrstw}{ml.machine_memory=16600846336, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=536870912}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" }
{"type": "server", "timestamp": "2021-11-02T19:05:09,923Z", "level": "DEBUG", "component": "o.e.d.PeerFinder", "cluster.name": "es-docker-cluster", "node.name": "rn0000.uhc.com", "message": "Peer{transportAddress=10.29.72.33:9300, discoveryNode=null, peersRequestInFlight=false} connection failed",
"stacktrace": ["org.Elasticsearch.transport.ConnectTransportException: [rn0000.uhc.com][172.28.0.2:9300] local node found",

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