# Getting “master not discovered exception” even running only one node

**URL:** <https://discuss.elastic.co/t/getting-master-not-discovered-exception-even-running-only-one-node/223699>\
**Category:** Elasticsearch\
**Created:** [March 16, 2020, 6:54am UTC](https://discuss.elastic.co/t/getting-master-not-discovered-exception-even-running-only-one-node/223699 "2020-03-16T06:54:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jane\_C](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jane_c/32/64481_2.png) [@Jane\_C](https://discuss.elastic.co/u/Jane_C)\
**Post date:** [March 16, 2020, 6:54am UTC](https://discuss.elastic.co/t/getting-master-not-discovered-exception-even-running-only-one-node/223699/1 "2020-03-16T06:54:47Z")

</div>

Hi there,

I am using Elasticsearch 7.6.0 and I only have one node. But I still getting the exception, **master\_not\_discovered\_exception** when running  
curl -H "Content-Type: application/json" -XPUT 127.0.0.1:9200/movies -d '

```
> {
> "mappings":{
> "properties":{
> "year":{
> "type":"date"
> }
> }
> }
> }'

```

Error:  
`{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}`

This is what I get when I `curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty'`

```
    {
      "error" : {
        "root_cause" : [
          {
            "type" : "master_not_discovered_exception",
            "reason" : null
          }
        ],
        "type" : "master_not_discovered_exception",
        "reason" : null
      },
      "status" : 503
    }

```

This is what i get when I `curl -XGET 127.0.0.1:9200`

```
        {
          "name" : "node-1",
          "cluster_name" : "elasticsearch",
          "cluster_uuid" : "_na_",
          "version" : {
            "number" : "7.6.1",
            "build_flavor" : "default",
            "build_type" : "deb",
            "build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
            "build_date" : "2020-02-29T00:15:25.529771Z",
            "build_snapshot" : false,
            "lucene_version" : "8.4.0",
            "minimum_wire_compatibility_version" : "6.8.0",
            "minimum_index_compatibility_version" : "6.0.0-beta1"
          },
          "tagline" : "You Know, for Search"
        }

```

This is my elasticsearch.yml (I only revised these 4 area):

```
node.name: node-1
network.host: 0.0.0.0
discovery.seed_hosts: ["127.0.0.1"]
cluster.initial_master_nodes: ["node-1"]

```

This is my netstat -tuplen

```
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 101 17100 -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 22836 -
tcp6 0 0 :::9300 :::* LISTEN 111 28712 -
tcp6 0 0 :::22 :::* LISTEN 0 22847 -
tcp6 0 0 :::9200 :::* LISTEN 111 28793 -
udp 0 0 127.0.0.53:53 0.0.0.0:* 101 17099 -
udp 0 0 10.0.2.15:68 0.0.0.0:* 100 17032 

```

I also have elasticsearch on my local but I didn't start it. And the elasticsearch has error is running on my VM : ubuntu-18.04.4

Please help! Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Jane\_C](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jane_c/32/64481_2.png) [@Jane\_C](https://discuss.elastic.co/u/Jane_C)\
**Post date:** [March 16, 2020, 7:31am UTC](https://discuss.elastic.co/t/getting-master-not-discovered-exception-even-running-only-one-node/223699/2 "2020-03-16T07:31:09Z")

</div>

I just solved the problem by stopped the ES which run on my local.

---

<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:** [April 13, 2020, 7:31am UTC](https://discuss.elastic.co/t/getting-master-not-discovered-exception-even-running-only-one-node/223699/3 "2020-04-13T07:31:09Z")

</div>

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