# Elasticsearch Cluster Status red and Incides status red without error and reason

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513>\
**Category:** Elasticsearch\
**Created:** [June 21, 2021, 9:38am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513 "2021-06-21T09:38:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatdat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tatdat/32/113160_2.png) [@tatdat](https://discuss.elastic.co/u/tatdat)\
**Post date:** [June 21, 2021, 9:38am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513/1 "2021-06-21T09:38:14Z")

</div>

Hi everyone,

My problem is some indices have red status without reason.

ENV:

- Elasticsearch 7.9.0
- Centos 7
- Clustering 4 node (3 data-master Node + 1 Coordinator Node)
- Using logstash to parsing data and using elasticsearch ingest
- Indices with 1 rep and 2 shard
- No alert about Disk watermark (disk free 30-40% per node)
- **No error on cluster log**

Some information detail

```auto
{

  "cluster_uuid" : "Qzb3n-hDTVaN5YBdRgBBlg",
  "version" : {
    "number" : "7.9.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "a479a2a7fce0389512d6a9361301708b92dff667",
    "build_date" : "2020-08-11T21:36:48.204330Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  }
}

```

**Cluster Health**

```auto
GET _cluster/health

{
  "status" : "red",
  "timed_out" : false,
  "number_of_nodes" : 4,
  "number_of_data_nodes" : 3,
  "active_primary_shards" : 779,
  "active_shards" : 1389,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 109,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 92.72363150867824
}

```

**Indices status**

```auto
GET _cat/shards?h=index,shard,prirep,state,unassigned.reason

index-software-2021.06 1 r UNASSIGNED NODE_LEFT
index-software-2021.06 1 p UNASSIGNED ALLOCATION_FAILED
index-software-2021.06 0 r UNASSIGNED NODE_LEFT
index-software-2021.06 0 p UNASSIGNED ALLOCATION_FAILED

```

**Index explain**

```auto
GET /_cluster/allocation/explain
{
  "index": "index-software-2021.05",
  "shard": 1,
  "primary": true
}

=> 
{
  "index" : "ca-signed-software-2021.06",
  "shard" : 1,
  "primary" : true,
  "current_state" : "unassigned",
  "unassigned_info" : {
    "reason" : "ALLOCATION_FAILED",
    "at" : "2021-06-21T05:13:43.804Z",
    "failed_allocation_attempts" : 5,
    "details" : "failed shard on node [vinoghVsS82uLdJogTO3lw]: failed to create shard, failure IOException[failed to obtain in-memory shard lock]; nested: ShardLockObtainFailedException[[ca-signed-software-2021.06][1]: obtaining shard lock timed out after 5000ms, previous lock details: [shard creation] trying to lock for [shard creation]]; ",
    "last_allocation_status" : "no"
  },
  "can_allocate" : "no",
  "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes that hold an in-sync shard copy",
  "node_allocation_decisions" : [
    {
      "node_id" : "AyR07ULeS2CUxrwyEzwb7g",
      "node_name" : "node-2",
      "transport_address" : "10.36.13.202:9300",
      "node_attributes" : {
        "ml.machine_memory" : "16654782464",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "data" : "warm",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "store" : {
        "found" : false
      }
    },
    {
      "node_id" : "WjOITVufQKKkJk6Ngts9Pg",
      "node_name" : "node-1",
      "transport_address" : "10.36.13.201:9300",
      "node_attributes" : {
        "ml.machine_memory" : "16654790656",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "data" : "hot",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "store" : {
        "in_sync" : false,
        "allocation_id" : "EsoB8tIxTqWhLtUPkUpU7g"
      }
    },
    {
      "node_id" : "vinoghVsS82uLdJogTO3lw",
      "node_name" : "node-3",
      "transport_address" : "10.36.13.203:9300",
      "node_attributes" : {
        "ml.machine_memory" : "16654790656",
        "ml.max_open_jobs" : "20",
        "xpack.installed" : "true",
        "data" : "cold",
        "transform.node" : "true"
      },
      "node_decision" : "no",
      "store" : {
        "in_sync" : true,
        "allocation_id" : "6M2dv6htQgqZiwCqlAQ5tA"
      },
      "deciders" : [
        {
          "decider" : "max_retry",
          "decision" : "NO",
          "explanation" : "shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/_cluster/reroute?retry_failed=true] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2021-06-21T05:13:43.804Z], failed_attempts[5], failed_nodes[[vinoghVsS82uLdJogTO3lw]], delayed=false, details[failed shard on node [vinoghVsS82uLdJogTO3lw]: failed to create shard, failure IOException[failed to obtain in-memory shard lock]; nested: ShardLockObtainFailedException[[ca-signed-software-2021.06][1]: obtaining shard lock timed out after 5000ms, previous lock details: [shard creation] trying to lock for [shard creation]]; ], allocation_status[deciders_no]]]"
        }
      ]
    }
  ]
}

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/8/48a3e09090805228052d09af788fee78a5a20acd.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af5bc8fdf2a0e55d1c447797618640d22b64fbc3.png)

---

<div class="post-metadata">

**Author:** ![amo1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@amo1](https://discuss.elastic.co/u/amo1)\
**Post date:** [June 21, 2021, 12:26pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513/2 "2021-06-21T12:26:33Z")

</div>

Have you tried `POST /_cluster/reroute?retry_failed=true`?

> **[Cluster reroute API | Elasticsearch Guide \[7.13\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html)**

---

<div class="post-metadata">

**Author:** ![tatdat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tatdat/32/113160_2.png) [@tatdat](https://discuss.elastic.co/u/tatdat)\
**Post date:** [June 21, 2021, 9:14pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513/3 "2021-06-21T21:14:52Z")

</div>

Wow it worked!. But i still dont know why indices have red status. No watermark, no node down or left. That is 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:** [June 22, 2021, 12:50am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513/4 "2021-06-22T00:50:55Z")

</div>

> [@tatdat](#):
>
> - Elasticsearch 7.9.0

Please upgrade, 7.9 was released a while ago, latest is 7.13 🙂

---

<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:** [July 20, 2021, 12:51am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-red-and-incides-status-red-without-error-and-reason/276513/5 "2021-07-20T00:51:29Z")

</div>

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