# Restart dremio service and Fail new election

**URL:** https://community.dremio.com/t/restart-dremio-service-and-fail-new-election/4611
**Category:** Uncategorized
**Created:** [November 21, 2019, 5:03pm UTC](https://community.dremio.com/t/restart-dremio-service-and-fail-new-election/4611 "2019-11-21T17:03:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![caiounderscore](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@caiounderscore](https://community.dremio.com/u/caiounderscore)
#### Post date: [November 21, 2019, 5:03pm UTC](https://community.dremio.com/t/restart-dremio-service-and-fail-new-election/4611/1 "2019-11-21T17:03:59Z")

</div>

Hello there,

I have two master dremium for high availability, but when restarted the service of primary node master, the second master node in stand-by fails while trying to take over as the new coordinator.

### Dremio.conf

```auto
paths: {
  # the local path for dremio to store data.
  local: "/mnt/dremio-metadata"

dist: "s3a://vlr-dremio4-prd/dremio-storage/"
  # the distributed path Dremio data including job results, downloads, uploads, etc
  #dist: "pdfs://"${paths.local}"/pdfs"
}

services: {
  coordinator.enabled: true,
  coordinator.master.enabled: true,
  executor.enabled: false,
  coordinator.master.embedded-zookeeper.enabled: true
}

```

Server log:  
[server.log.zip](https://community.dremio.com/uploads/short-url/9uAhD8FeDEXRgk9nvxlVQW91UUt.zip) (4,9,KB)

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [November 24, 2019, 6:00am UTC](https://community.dremio.com/t/restart-dremio-service-and-fail-new-election/4611/2 "2019-11-24T06:00:55Z")

</div>

@caiounderscore

I see your secondary coordinator is unable to talk to the ZooKeeper, see below. Are you be able to ping and telnet to the Zookeeper on the configured port from the secondary coordinator?

> 2019-11-21 05:12:48,406 [zk-curator-2] INFO c.d.s.coordinator.zk.ZKClusterClient - Not able to get election status in 60000ms. Cancelling election…  
> 2019-11-21 05:12:48,407 [zk-curator-2] ERROR ROOT - Dremio is exiting. Node lost its master status.  
> 2019-11-21 05:12:55,713 [main] INFO com.dremio.common.config.SabotConfig - Configuration and plugin file(s) identified in 73ms.  
> Base Configuration:

---

<div class="post-metadata">

### Author: ![caiounderscore](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@caiounderscore](https://community.dremio.com/u/caiounderscore)
#### Post date: [November 27, 2019, 3:32am UTC](https://community.dremio.com/t/restart-dremio-service-and-fail-new-election/4611/4 "2019-11-27T03:32:05Z")

</div>

@balaji.ramaswamy

I don’t use ZooKeeper external, I use ZooKeeper embedded, in other words, my secondary coordinator will be the ZooKeeper.

After secondary coordinator fails while trying to take a new coordinator, the first coordinator retake a new master, but, if i will stop service dremio service of first coordinator or reboot machine, the secondary master retake fine for a new coordinator.

The main problem is if **restart** service dremio of primary master, the secondary master fails when trying take over as the new coordinator.

---

<div class="post-metadata">

### Author: ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)
#### Post date: [November 27, 2019, 5:28am UTC](https://community.dremio.com/t/restart-dremio-service-and-fail-new-election/4611/5 "2019-11-27T05:28:33Z")

</div>

@caiounderscore

External ZK is a requirement for HA

[https://docs.dremio.com/advanced-administration/high-availability.html](https://docs.dremio.com/advanced-administration/high-availability.html)

Thanks
