# Unassigned shards on the node

**URL:** <https://discuss.elastic.co/t/unassigned-shards-on-the-node/263231>\
**Category:** Elasticsearch\
**Created:** [February 4, 2021, 11:18am UTC](https://discuss.elastic.co/t/unassigned-shards-on-the-node/263231 "2021-02-04T11:18:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyashree](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priyashree/32/45100_2.png) [@priyashree](https://discuss.elastic.co/u/priyashree)\
**Post date:** [February 4, 2021, 11:18am UTC](https://discuss.elastic.co/t/unassigned-shards-on-the-node/263231/1 "2021-02-04T11:18:05Z")

</div>

Cluster state is changed to red since there are 2 unassigned shards.

```auto
curl -s 'localhost:9200/_cat/shards' | fgrep UNASSIGNED
.kibana_task_manager_1 0 p UNASSIGNED                                 
.kibana_task_manager_1 0 r UNASSIGNED

```

curl -XGET localhost:9200/\_cluster/allocation/explain?pretty gives the following results

```auto
"node_decision" : "no",
      "store" : {
        "in_sync" : true,
        "allocation_id" : "allocation_id",
        "store_exception" : {
          "type" : "shard_lock_obtain_failed_exception",
          "reason" : "[.kibana_task_manager_1][0]: obtaining shard lock timed out after 5000ms, previous lock details: [shard creation] trying to lock for [open index]",
          "index_uuid" : "index-uuid",
          "shard" : "0",
          "index" : ".kibana_task_manager_1"
        }
      },
      "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-02-03T02:49:56.691Z], failed_attempts[5], failed_nodes, delayed=false, details[failed shard on node [node-id]: failed to create shard, failure IOException[failed to obtain in-memory shard lock]; nested: ShardLockObtainFailedException[[.kibana_task_manager_1][0]: obtaining shard lock timed out after 5000ms, previous lock details: [shard creation] trying to lock for [shard creation]]; ], allocation_status[deciders_no]]]"

```

---

<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:** [March 4, 2021, 11:18am UTC](https://discuss.elastic.co/t/unassigned-shards-on-the-node/263231/2 "2021-03-04T11:18:41Z")

</div>

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