# Yellow Shard

**URL:** <https://discuss.elastic.co/t/yellow-shard/252514>\
**Category:** Elasticsearch\
**Created:** [October 19, 2020, 9:03am UTC](https://discuss.elastic.co/t/yellow-shard/252514 "2020-10-19T09:03:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurent2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/laurent2/32/77418_2.png) [@laurent2](https://discuss.elastic.co/u/laurent2)\
**Post date:** [October 19, 2020, 9:03am UTC](https://discuss.elastic.co/t/yellow-shard/252514/1 "2020-10-19T09:03:02Z")

</div>

Hello,

I'm having some issue with an elasticsearch install, I don't have extensive knowledge on ES but your help would be appreciated.

2 issues:

- ES is regulary stuck and i have to restart it manually
- ES is in yellow state

Bellow some informations :

**$ curl localhost:9200/\_cluster/allocation/explain**

```auto
{
   "index":"atom",
   "shard":3,
   "primary":false,
   "current_state":"unassigned",
   "unassigned_info":{
      "reason":"CLUSTER_RECOVERED",
      "at":"2020-10-19T08:21:59.949Z",
      "last_allocation_status":"no_attempt"
   },
   "can_allocate":"no",
   "allocate_explanation":"cannot allocate because allocation is not permitted to any of the nodes",
   "node_allocation_decisions":[
      {
         "node_id":"trIWPSYfT9WARbEZ7iWXAA",
         "node_name":"trIWPSY",
         "transport_address":"127.0.0.1:9300",
         "node_decision":"no",
         "deciders":[
            {
               "decider":"same_shard",
               "decision":"NO",
               "explanation":"the shard cannot be allocated to the same node on which a copy of the shard already exists [[atom][3], node[trIWPSYfT9WARbEZ7iWXAA], [P], s[STARTED], a[id=2-V7gQ5HQxyf2TR2VP99Jw]]"
            }
         ]
      }
   ]
}

```

**curl -XGET '[http://localhost:9200/\_cluster/health/?level=shards&pretty=true](http://localhost:9200/_cluster/health/?level=shards&pretty=true)'**

```auto
      "cluster_name" : "elasticsearch",
      "status" : "yellow",
      "timed_out" : false,
      "number_of_nodes" : 1,
      "number_of_data_nodes" : 1,
      "active_primary_shards" : 8,
      "active_shards" : 8,
      "relocating_shards" : 0,
      "initializing_shards" : 0,
      "unassigned_shards" : 8,
      "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" : 50.0,
      "indices" : {
        "atom" : {
          "status" : "yellow",
          "number_of_shards" : 4,
          "number_of_replicas" : 1,
          "active_primary_shards" : 4,
          "active_shards" : 4,
          "relocating_shards" : 0,
          "initializing_shards" : 0,
          "unassigned_shards" : 4,
          "shards" : {
            "0" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            },
            "1" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            },
            "2" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            },
            "3" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            }
          }
        },
        "ratp" : {
          "status" : "yellow",
          "number_of_shards" : 4,
          "number_of_replicas" : 1,
          "active_primary_shards" : 4,
          "active_shards" : 4,
          "relocating_shards" : 0,
          "initializing_shards" : 0,
          "unassigned_shards" : 4,
          "shards" : {
            "0" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            },
            "1" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            },
            "2" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            },
            "3" : {
              "status" : "yellow",
              "primary_active" : true,
              "active_shards" : 1,
              "relocating_shards" : 0,
              "initializing_shards" : 0,
              "unassigned_shards" : 1
            }
          }
        }
      }
    }

```

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [October 19, 2020, 10:23am UTC](https://discuss.elastic.co/t/yellow-shard/252514/2 "2020-10-19T10:23:19Z")

</div>

how many elasticsearch node do you have in this cluster?

---

<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:** [November 16, 2020, 10:23am UTC](https://discuss.elastic.co/t/yellow-shard/252514/3 "2020-11-16T10:23:24Z")

</div>

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