# Elasticsearch doesn't work!

**URL:** <https://discuss.elastic.co/t/elasticsearch-doesnt-work/350842>\
**Category:** Elasticsearch\
**Created:** [January 11, 2024, 9:48am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-work/350842 "2024-01-11T09:48:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boubou](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@boubou](https://discuss.elastic.co/u/boubou)\
**Post date:** [January 11, 2024, 9:48am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-work/350842/1 "2024-01-11T09:48:52Z")

</div>

I am having difficulties using Elasticsearch. I am on Linux and I have installed Elasticsearch 8.2.

I have modified my elasticsearch.yml and here is what it contains:

```auto
cluster.name: elasticsearch-prod
node.name: myserver
path.data: /db/appli/data/elasticsearch
path.logs: /db/appli/logs/elasticsearch
network.host: myserver
http.port: 9206
transport.port: 9306
discovery.seed_hosts: ["myserver:9306"]
xpack.security.enabled: false

```

When I launch my application, there are no issues. I can enter the following command:

```auto
curl -X GET "http://myserver:9206/"

```

and I get the result:

```auto
{
  "name" : "myserver",
  "cluster_name" : "elasticsearch-prod",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "8.2.0",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "b174af62dd9f4ac4d25875e9381ffe2b9282c5",
    "build_date" : "2022-04-20T10:35:10.180408517Z",
    "build_snapshot" : false,
    "lucene_version" : "9.1.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

```

But if I want to enter data into Elasticsearch, I can't. This command doesn't work:

```auto
curl -X POST "http://myserver:9206/my-index/_doc" -H 'Content-Type: application/json' -d '{"name": "John Doe", "age": 30, "city": "New York"}'

```

So I check the status of my Elasticsearch with:

```auto
curl -X GET "http://myserver:9206/_cat/health?v"

```

and I get:

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

```

Do you have any ideas, please?

---

<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:** [January 11, 2024, 10:28am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-work/350842/2 "2024-01-11T10:28:20Z")

</div>

> [@boubou](#):
>
> Elasticsearch 8.2.

This version is coming up on 2 years old, you're missing out on a lot of improvements by using such an old version.

> [@boubou](#):
>
> `master_not_discovered_exception`

I expect this means you have a discovery problem, see [this troubleshooting guide](https://www.elastic.co/guide/en/elasticsearch/reference/current/discovery-troubleshooting.html) for help.

---

<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:** [February 8, 2024, 10:29am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-work/350842/3 "2024-02-08T10:29:02Z")

</div>

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