# Can't connect to cluster when master node is off

**URL:** <https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634>\
**Category:** Elasticsearch\
**Created:** [December 14, 2020, 7:34pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634 "2020-12-14T19:34:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidreza\_ghadir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza_ghadir/32/80756_2.png) [@hamidreza\_ghadir](https://discuss.elastic.co/u/hamidreza_ghadir)\
**Post date:** [December 14, 2020, 7:34pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/1 "2020-12-14T19:34:29Z")

</div>

Hi,  
I have a cluster with three node.  
When master node is turned off , I can't connect to any of nodes with their addresses.

MasterNode: 0.0.0.0:9200, Node2: 0.0.0.0:9201, Node3: 0.0.0.0:9202

with this configuration:

node.name:es01  
cluster.name:es-docker-cluster  
discovery.seed\_hosts:es02,es03  
bootstrap.memory\_lock:true

* * *

node.name:es02  
cluster.name:es-docker-cluster  
discovery.seed\_hosts:es01,es03  
bootstrap.memory\_lock:true

* * *

node.name:es03  
cluster.name:es-docker-cluster  
discovery.seed\_hosts:es01,es02  
bootstrap.memory\_lock:true

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 14, 2020, 8:58pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/2 "2020-12-14T20:58:47Z")

</div>

Are all 3 nodes master eligible?

---

<div class="post-metadata">

**Author:** ![hamidreza\_ghadir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza_ghadir/32/80756_2.png) [@hamidreza\_ghadir](https://discuss.elastic.co/u/hamidreza_ghadir)\
**Post date:** [December 14, 2020, 10:02pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/3 "2020-12-14T22:02:29Z")

</div>

Hi,  
No, i don't set any type for nodes.

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [December 14, 2020, 10:32pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/4 "2020-12-14T22:32:19Z")

</div>

Without an active master node, there is no cluster.

---

<div class="post-metadata">

**Author:** ![hamidreza\_ghadir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza_ghadir/32/80756_2.png) [@hamidreza\_ghadir](https://discuss.elastic.co/u/hamidreza_ghadir)\
**Post date:** [December 14, 2020, 10:41pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/5 "2020-12-14T22:41:45Z")

</div>

But when master node shutted down one of two other node selected as master. And shard and replica created in other nodes

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 14, 2020, 11:27pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/6 "2020-12-14T23:27:43Z")

</div>

Then sharing the connection error you are getting would be helpful.

---

<div class="post-metadata">

**Author:** ![hamidreza\_ghadir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza_ghadir/32/80756_2.png) [@hamidreza\_ghadir](https://discuss.elastic.co/u/hamidreza_ghadir)\
**Post date:** [December 15, 2020, 5:30pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/7 "2020-12-15T17:30:27Z")

</div>

Hi,:  
I don't get any exception. Just i cant connect to other nodes with http://:9201 or 9202.

---

<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:** [January 12, 2021, 5:30pm UTC](https://discuss.elastic.co/t/cant-connect-to-cluster-when-master-node-is-off/258634/8 "2021-01-12T17:30:29Z")

</div>

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