# Unassigned shards found

**URL:** <https://discuss.elastic.co/t/unassigned-shards-found/100864>\
**Category:** Elasticsearch\
**Created:** [September 18, 2017, 11:54am UTC](https://discuss.elastic.co/t/unassigned-shards-found/100864 "2017-09-18T11:54:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zjzhiqian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zjzhiqian/32/21556_2.png) [@zjzhiqian](https://discuss.elastic.co/u/zjzhiqian)\
**Post date:** [September 18, 2017, 11:54am UTC](https://discuss.elastic.co/t/unassigned-shards-found/100864/1 "2017-09-18T11:54:50Z")

</div>

```auto
curl _cluster/allocation/explain find unsigned shards , why and how to fix it 
{
    "index": "merge_tran_2017_09_07", 
    "shard": 0, 
    "primary": false, 
    "current_state": "unassigned", 
    "unassigned_info": {
        "reason": "ALLOCATION_FAILED", 
        "at": "2017-09-07T04:17:59.781Z", 
        "failed_allocation_attempts": 5, 
        "details": "failed to create shard, failure IllegalStateException[environment is not locked]; nested: NoSuchFileException[/data/elasticsearch/nodes/0/node.lock]; ", 
        "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": "NOZajOvESK6hiFSRs_L2gA", 
            "node_name": "node-1", 
            "transport_address": "10.28.92.2:9300", 
            "node_decision": "no", 
            "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[2017-09-07T04:17:59.781Z], failed_attempts[5], delayed=false, details[failed to create shard, failure IllegalStateException[environment is not locked]; nested: NoSuchFileException[/data/elasticsearch/nodes/0/node.lock]; ], allocation_status[no_attempt]]]"
                }
            ]
        }, 
        {
            "node_id": "h13wjbt2Q9yHHp0G9mlBpA", 
            "node_name": "node-3", 
            "transport_address": "10.30.32.69:9300", 
            "node_decision": "no", 
            "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[2017-09-07T04:17:59.781Z], failed_attempts[5], delayed=false, details[failed to create shard, failure IllegalStateException[environment is not locked]; nested: NoSuchFileException[/data/elasticsearch/nodes/0/node.lock]; ], allocation_status[no_attempt]]]"
                }, 
                {
                    "decider": "same_shard", 
                    "decision": "NO", 
                    "explanation": "the shard cannot be allocated to the same node on which a copy of the shard already exists [[merge_tran_2017_09_07][0], node[h13wjbt2Q9yHHp0G9mlBpA], [P], s[STARTED], a[id=qH0RLWPCTnad9E-ajGSZzA]]"
                }
            ]
        }, 
        {
            "node_id": "u6c_DrDOQTika6aa6ENHLA", 
            "node_name": "node-2", 
            "transport_address": "10.28.92.196:9300", 
            "node_decision": "no", 
            "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[2017-09-07T04:17:59.781Z], failed_attempts[5], delayed=false, details[failed to create shard, failure IllegalStateException[environment is not locked]; nested: NoSuchFileException[/data/elasticsearch/nodes/0/node.lock]; ], allocation_status[no_attempt]]]"
                }
            ]
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![poojagupta](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@poojagupta](https://discuss.elastic.co/u/poojagupta)\
**Post date:** [September 20, 2017, 7:34am UTC](https://discuss.elastic.co/t/unassigned-shards-found/100864/2 "2017-09-20T07:34:34Z")

</div>

> [@zjzhiqian](#):
>
> failed to create shard, failure IllegalStateException[environment

@zjzhiqian There are more reason for unassigned shard as shards data is more than available nodes / low disk etc.  
any one node is failing in the cluster. first check is your cluster is in working?  
you can also reallocate the shards using reroute API.  
follow the below link:

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

and also share set up your configuration . will be easy to debug is there any issue for set up?

---

<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, 2017, 7:34am UTC](https://discuss.elastic.co/t/unassigned-shards-found/100864/3 "2017-10-18T07:34:41Z")

</div>

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