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]]]"
}
]
}
]
}
@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:
and also share set up your configuration . will be easy to debug is there any issue for set up?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.