# Cluster ElasticSearch Red

**URL:** <https://discuss.elastic.co/t/cluster-elasticsearch-red/314757>\
**Category:** Elasticsearch\
**Created:** [September 20, 2022, 8:57am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757 "2022-09-20T08:57:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![meyer1](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@meyer1](https://discuss.elastic.co/u/meyer1)\
**Post date:** [September 20, 2022, 8:57am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/1 "2022-09-20T08:57:44Z")

</div>

Hello everyone, here is my problem, I have my elastic cluster with a red status.

I used this api : [http://localhost:9200/\_cluster/health](http://localhost:9200/_cluster/health)

Answer:

```auto
{
cluster_name : "elasticsearch",
status : "red",
timed_out : false,
number_of_nodes : 1,
number_of_data_nodes: 1,
active_primary_shards: 81,
active_shards: 81,
relocated_shards: 0,
initialization_shards : 0,
unassigned shards : 59,
unassigned_delayed_shards: 0,
number_of_tasks_on_wait: 0,
number_of_tasks_in_flight: 0,
task_max_waiting_in_queue_millis: 0,
active_shards_percent_as_number: 57.85714285714286
}

```

and this one: [http://localhost:9200/\_cluster/allocation/explain](http://localhost:9200/_cluster/allocation/explain)

here is the answer :

```auto
{

* note: "No shard was specified in the explain API request, so this response explains a randomly chosen unassigned shard. There may be other unassigned shards in this cluster which cannot be assigned for different reasons. It may not be possible to assign this shard until one of the other shards is assigned correctly. To explain the allocation of other shards (whether assigned or unassigned) you must specify the target shard in the request to this API.",

* index: ".async-search",

* shard: 0,

* primary: true,

* current_state: "unassigned",

* unassigned_info:{
  * reason: "CLUSTER_RECOVERED",

  * at: "2022-09-20T08:14:57.280Z",

  * last_allocation_status: "no_valid_shard_copy"},

* can_allocate: "no_valid_shard_copy",

* allocate_explanation: "cannot allocate because all found copies of the shard are either stale or corrupt",

* node_allocation_decisions:[
  * {
    * node_id: "6jjP2267STulJ90j6cI0pw",

    * node_name: "MBE-DEV08",

    * transport_address: "127.0.0.1:9300",

    * node_attributes:{
      * ml.machine_memory: "16954863616",

      * xpack.installed: "true",

      * transform.node: "true",

      * ml.max_open_jobs: "512",

      * ml.max_jvm_size: "8476688384"},

    * node_decision: "no",

    * store:{
      * in_sync: true,

      * allocation_id: "8-8u13KDSi6QhEYBby4VEA",

      * store_exception:{
        * type: "index_not_found_exception",

        * reason: "no segments* file found in NIOFSDirectory@C:\Users\User\Desktop\elasticsearch-7.16.3\data\nodes\0\indices\mEQ6LFWoSGO-IPaiDv49Wg\0\index lockFactory=org.apache.lucene.store.NativeFSLockFactory@74948d11: files: [_30b.fdm, _30b.fdt, _30b.fdx, _30b.fnm, _30b.kdd, _30b.kdi, _30b.kdm, _30b.si, _30b_1.fnm, _30b_1_Lucene80_0.dvd, _30b_1_Lucene80_0.dvm, _30b_Lucene80_0.dvd, _30b_Lucene80_0.dvm, _30b_Lucene84_0.doc, _30b_Lucene84_0.tim, _30b_Lucene84_0.tip, _30b_Lucene84_0.tmd, _30c.cfe, _30c.cfs, _30c.si, _30d.cfe, _30d.cfs, _30d.si, _30d_1.fnm, _30d_1_Lucene80_0.dvd, _30d_1_Lucene80_0.dvm, _30e.cfe, _30e.cfs, _30e.si, write.lock]"}}}]

}

```

I don't know how to solve this problem, thanks in advance for your help.

---

<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:** [September 20, 2022, 8:58am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/2 "2022-09-20T08:58:46Z")

</div>

> [@meyer1](#):
>
> ```auto
> * index: ".async-search",
> 
> ```

Unless you are using async search, I would just delete that index and let the system recreate it.

---

<div class="post-metadata">

**Author:** ![meyer1](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@meyer1](https://discuss.elastic.co/u/meyer1)\
**Post date:** [September 20, 2022, 9:00am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/3 "2022-09-20T09:00:09Z")

</div>

Thank you for your answer, how can I remove it? Directly on kibana ?

---

<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:** [September 20, 2022, 9:03am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/4 "2022-09-20T09:03:14Z")

</div>

You can do it in Kibana Console or via curl - [Delete index API | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/indices-delete-index.html)

---

<div class="post-metadata">

**Author:** ![meyer1](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@meyer1](https://discuss.elastic.co/u/meyer1)\
**Post date:** [September 20, 2022, 9:09am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/5 "2022-09-20T09:09:35Z")

</div>

thank you for your help, it worked, my status went from red to yellow. My kibana with the dashboards works again!

Just one question, the fact that the status is yellow, does it pose a problem?

---

<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:** [September 20, 2022, 9:10am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/6 "2022-09-20T09:10:10Z")

</div>

It's because you have a single node, so replicas cannot be assigned.

---

<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:** [October 18, 2022, 9:10am UTC](https://discuss.elastic.co/t/cluster-elasticsearch-red/314757/7 "2022-10-18T09:10:16Z")

</div>

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