# Failed to discover Elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/failed-to-discover-elasticsearch-cluster/284865>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [September 22, 2021, 12:33pm UTC](https://discuss.elastic.co/t/failed-to-discover-elasticsearch-cluster/284865 "2021-09-22T12:33:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhaoyi0113](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhaoyi0113/32/99567_2.png) [@zhaoyi0113](https://discuss.elastic.co/u/zhaoyi0113)\
**Post date:** [September 22, 2021, 12:33pm UTC](https://discuss.elastic.co/t/failed-to-discover-elasticsearch-cluster/284865/1 "2021-09-22T12:33:50Z")

</div>

I tried to deploy two nodes Elasticsearch cluster but failed on discover master node.

One node yml file:

```auto
cluster.name: elk-cluster
    network.host: "0.0.0.0"
    bootstrap.memory_lock: false
    node.name: master
    node.master: true
    node.data: false
    cluster.initial_master_nodes:
      - es-entrypoint-0.default.svc.cluster.local
    discovery.seed_hosts:
      - es-entrypoint-0.default.svc.cluster.local:9200
      - es-entrypoint-1.default.svc.cluster.local:9200

```

The other one has:

```auto
cluster.name: elk-cluster
    network.host: "0.0.0.0"
    bootstrap.memory_lock: false
    node.name: worker
    node.master: false
    node.data: true
    discovery.seed_hosts:
      - es-entrypoint-0.default.svc.cluster.local:9200
      - es-entrypoint-1.default.svc.cluster.local:9200

```

I got below error:

```auto
{"type": "server", "timestamp": "2021-09-22T12:27:55,690Z", "level": "INFO", "component": "o.e.c.c.ClusterBootstrapService", "cluster.name": "elk-cluster", "node.name": "master", "message": "skipping cluster bootstrapping as local node does not match bootstrap requirements: [es-entrypoint-0.default.svc.cluster.local]" }
{"type": "server", "timestamp": "2021-09-22T12:28:05,694Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "elk-cluster", "node.name": "master", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [es-entrypoint-0.default.svc.cluster.local] to bootstrap a cluster: have discovered [{master}{vnw-dX52Sji04DDtDbDK2w}{k3E7jD1-RdCG5ml32LgCdg}{10.0.2.163}{10.0.2.163:9300}{lmr}]; discovery will continue using [10.0.2.163:9200, 10.0.2.93:9200] from hosts providers and [{master}{vnw-dX52Sji04DDtDbDK2w}{k3E7jD1-RdCG5ml32LgCdg}{10.0.2.163}{10.0.2.163:9300}{lmr}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" }

```

I don't understand why the master failed to discover?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2021, 12:33pm UTC](https://discuss.elastic.co/t/failed-to-discover-elasticsearch-cluster/284865/2 "2021-10-20T12:33:57Z")

</div>

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