# An election requires a node with id\[-zQWNDqiRVe\_EHGtFKi6Zw\], have discovered \[...\] which is not a quorum

**URL:** https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537
**Category:** Elasticsearch
**Created:** [July 9, 2020, 1:53pm UTC](https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537 "2020-07-09T13:53:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MartiM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martim/32/45072_2.png) [@MartiM](https://discuss.elastic.co/u/MartiM)
#### Post date: [July 9, 2020, 1:53pm UTC](https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537/1 "2020-07-09T13:53:14Z")

</div>

Hi Everybody,

We use 2 have to nodes of elasticsearch on the cluster. One of them deleted by a human error. Now we are trying to recover the cluster from one elastic node and trying to add 2 news nodes.

Finally the cluster is never coming up . The error is like the master node has to aprove this but the master node was started from 0.(data folder empty). The error that we are getting is

> master not discovered or elected yet, an election requires a node with id [-zQWNDqiRVe\_EHGtFKi6Zw], have discovered [{elasticsearch1}{B5NU\_B9NSkK6GUaQRVbpcw}{90DTUGvHR3GbJyRFAqGcBg}{10.0.52.247}{10.0.52.247:9300}{ml.machine\_memory=19327352832, ml.max\_open\_jobs=20, xpack.installed=true}] which is not a quorum

The node has the data is in the "elasticsearch2".

The Setup is over docker swarm (below is the compose setup)

```auto

    services:
      elasticsearch1:
        image: docker.elastic.co/elasticsearch/elasticsearch:7.2.1
        ports:
          - target: 9200
            published: 9200
            protocol: tcp
            mode: host
        environment:
            - "ES_JAVA_OPTS=-Xms10g -Xmx10g"
            - bootstrap.memory_lock=false
            - cluster.initial_master_nodes=elasticsearch2,elasticsearch3
            - discovery.seed_hosts=elasticsearch2,elasticsearch3
            - node.name=elasticsearch1
            - cluster.name=es-udsp-cluster
            - network.host=0.0.0.0
            - discovery.zen.ping_timeout=100s
            - discovery.zen.minimum_master_nodes=2
            - node.master=true
            - node.data=true
            - node.ingest=true
        volumes:
          - esmaster1:/usr/share/elasticsearch/data
        deploy:
          endpoint_mode: dnsrr
          mode: "replicated"
          replicas: 1
          resources:
            limits:
              memory: 11G

      elasticsearch2:
        image: docker.elastic.co/elasticsearch/elasticsearch:7.2.1
        ports:
          - target: 9200
            published: 9202
            protocol: tcp
            mode: host
        environment:
            - "ES_JAVA_OPTS=-Xms10g -Xmx10g"
            - bootstrap.memory_lock=false
            - cluster.initial_master_nodes=elasticsearch2,elasticsearch3
            - discovery.seed_hosts=elasticsearch1,elasticsearch3
            - node.name=elasticsearch2
            - cluster.name=es-udsp-cluster
            - discovery.zen.ping_timeout=100s
            - discovery.zen.minimum_master_nodes=1
            - network.host=0.0.0.0
            - node.master=true
            - node.data=true
            - node.ingest=true
        volumes:
          - esmaster2:/usr/share/elasticsearch/data
        deploy:
          mode: "replicated"
          endpoint_mode: dnsrr
          replicas: 1
          resources:
            limits:
              memory: 11G

      elasticsearch3:
        image: docker.elastic.co/elasticsearch/elasticsearch:7.2.1
        ports:
          - target: 9200
            published: 9203
            protocol: tcp
            mode: host
        environment:
            - "ES_JAVA_OPTS=-Xms10g -Xmx10g"
            - bootstrap.memory_lock=false
            - cluster.initial_master_nodes=elasticsearch2,elasticsearch3
            - discovery.seed_hosts=elasticsearch2,elasticsearch1
            - node.name=elasticsearch3
            - cluster.name=es-udsp-cluster
            - network.host=0.0.0.0
            - discovery.zen.ping_timeout=100s
            - discovery.zen.minimum_master_nodes=2
            - node.master=true
            - node.data=true
            - node.ingest=true
        volumes:
          - esmaster3:/usr/share/elasticsearch/data
        deploy:
          endpoint_mode: dnsrr
          mode: "replicated"
          replicas: 1
          resources:
            limits:
              memory: 11G

    volumes:
      postgres:
      esmaster1:
      esmaster2:
      esmaster3:

```

How can i solve this issue?

---

<div class="post-metadata">

### Author: ![MartiM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martim/32/45072_2.png) [@MartiM](https://discuss.elastic.co/u/MartiM)
#### Post date: [July 9, 2020, 1:55pm UTC](https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537/2 "2020-07-09T13:55:11Z")

</div>

@DavidTurner

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 9, 2020, 2:59pm UTC](https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537/3 "2020-07-09T14:59:29Z")

</div>

Since you've lost half of your nodes (i.e. one of the two) you cannot safely recover. You will need to restore your cluster from a recent snapshot. See [https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability-cluster-small-clusters.html#high-availability-cluster-design-two-nodes](https://www.elastic.co/guide/en/elasticsearch/reference/current/high-availability-cluster-small-clusters.html#high-availability-cluster-design-two-nodes) for more details about building clusters that are resilient to failures.

---

<div class="post-metadata">

### Author: ![MartiM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martim/32/45072_2.png) [@MartiM](https://discuss.elastic.co/u/MartiM)
#### Post date: [July 9, 2020, 4:40pm UTC](https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537/4 "2020-07-09T16:40:20Z")

</div>

If i don't have snapshot because i have never setup them.

do i have not trick to recover the data?

Thanks @DavidTurner

I will use snapshot from now!

---

<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: [August 6, 2020, 4:40pm UTC](https://discuss.elastic.co/t/an-election-requires-a-node-with-id-zqwndqirve-ehgtfki6zw-have-discovered-which-is-not-a-quorum/240537/5 "2020-08-06T16:40:23Z")

</div>

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