# ElasticSearch 7.0 Cluster Error

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227>\
**Category:** Elasticsearch\
**Created:** [May 1, 2019, 4:18pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227 "2019-05-01T16:18:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfoley84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dfoley84/32/38973_2.png) [@dfoley84](https://discuss.elastic.co/u/dfoley84)\
**Post date:** [May 1, 2019, 4:18pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227/1 "2019-05-01T16:18:34Z")

</div>

Hi Currently, I am currently configuration a 4 Node cluster with 1 Master and 3 data Nodes within a Cluster

When i do a curl http://:9200/\_cat/nodes?v I am getting the following

`{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}root@ip-10-7:/var/log/elasticsearch#`

elasticsearch.yml File:

```
# Use a descriptive name for your cluster:
#
cluster.name: RMDEV
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: Master
node.data: False
node.master: true
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: [_local_,_site_]
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
#The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["<LocalIP>:9200"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["<localIp>:9200"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3

```

Node Configuration File:

```
# Use a descriptive name for your cluster:
#
cluster.name: RMDEV
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-3
node.data: true
node:master: False
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- 
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: [_local_,_site_]
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["<MASTER IP>:9200"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["<MASTER IP>:9200"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various ------------------
```

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [May 1, 2019, 8:08pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227/2 "2019-05-01T20:08:55Z")

</div>

error says it can't connect to host.  
your config file has node.name=master is this valid systemname?  
your network.host entry says [_local_,_site_] I think it should be ip address of your master server

and your curl command should be something like  
curl -Xget http://:9200/\_cluster/health?pretty

---

<div class="post-metadata">

**Author:** ![dfoley84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dfoley84/32/38973_2.png) [@dfoley84](https://discuss.elastic.co/u/dfoley84)\
**Post date:** [May 1, 2019, 8:44pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227/3 "2019-05-01T20:44:25Z")

</div>

Hi,

this _local_,_site_ binds both local 127.0.0.1 and the private IP address.

> ### Special values for `network.host` [edit](https://github.com/elastic/elasticsearch/edit/7.0/docs/reference/modules/network.asciidoc)
> 
> The following special values may be passed to `network.host` :
> 
> | `_[networkInterface]_` | Addresses of a network interface, for example `_en0_` . |
> | --- | --- |
> | `_local_` | Any loopback addresses on the system, for example `127.0.0.1` . |
> | `_site_` | Any site-local addresses on the system, for example `192.168.0.1` . |
> | `_global_` | Any globally-scoped addresses on the system, for example `8.8.8.8` . |

---

<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:** [May 1, 2019, 9:25pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227/4 "2019-05-01T21:25:05Z")

</div>

Can you share the log messages from this node? They should be describing why the master is not being discovered in more detail.

---

<div class="post-metadata">

**Author:** ![dfoley84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dfoley84/32/38973_2.png) [@dfoley84](https://discuss.elastic.co/u/dfoley84)\
**Post date:** [May 1, 2019, 9:42pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227/5 "2019-05-01T21:42:40Z")

</div>

Got it working i took out :9200 out of the seed discovery

---

<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:** [May 29, 2019, 9:42pm UTC](https://discuss.elastic.co/t/elasticsearch-7-0-cluster-error/179227/6 "2019-05-29T21:42:44Z")

</div>

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