# Failed to create shard, failure AlreadyClosedException

**URL:** <https://discuss.elastic.co/t/failed-to-create-shard-failure-alreadyclosedexception/87597>\
**Category:** Elasticsearch\
**Created:** [May 30, 2017, 4:04pm UTC](https://discuss.elastic.co/t/failed-to-create-shard-failure-alreadyclosedexception/87597 "2017-05-30T16:04:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayramachandran](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vijayramachandran](https://discuss.elastic.co/u/vijayramachandran)\
**Post date:** [May 30, 2017, 4:04pm UTC](https://discuss.elastic.co/t/failed-to-create-shard-failure-alreadyclosedexception/87597/1 "2017-05-30T16:04:26Z")

</div>

What could be the cause of the issue?

 ![](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e509d13ef0f4c536b2de9abf6d184c32cb9f6530.png)

Nothing worked, tried to touch a new file also.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2017, 4:53pm UTC](https://discuss.elastic.co/t/failed-to-create-shard-failure-alreadyclosedexception/87597/2 "2017-05-30T16:53:36Z")

</div>

Don't paste images... Hardly readable.

---

<div class="post-metadata">

**Author:** ![vijayramachandran](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vijayramachandran](https://discuss.elastic.co/u/vijayramachandran)\
**Post date:** [May 30, 2017, 8:18pm UTC](https://discuss.elastic.co/t/failed-to-create-shard-failure-alreadyclosedexception/87597/3 "2017-05-30T20:18:26Z")

</div>

Alright, here I go for the error message.

```
 > }
> },
> {
> "state" : "UNASSIGNED",
> "primary" : false,
> "node" : null,
> "relocating_node" : null,
> "shard" : 0,
> "index" : "will-test-index",
> "recovery_source" : {
> "type" : "PEER"
> },
> "unassigned_info" : {
> "reason" : "ALLOCATION_FAILED",
> "at" : "2017-05-30T15:33:31.050Z",
> "failed_attempts" : 5,
> "delayed" : false,
> "details" : "failed to create shard, failure AlreadyClosedException[Underlying file changed by an external force at 2017-05-18T14:31:42Z, (lock=NativeFSLock(path=/export/gcs1/elastic/applications/elasticsearch-5.2.2/data/ccncmu32.de.db.com-node2/nodes/0/node.lock,impl=sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive valid],creationTime=2017-05-30T10:37:34Z))]",
> "allocation_status" : "no_attempt"
> }
> }
> ],
```

---

<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:** [June 27, 2017, 8:18pm UTC](https://discuss.elastic.co/t/failed-to-create-shard-failure-alreadyclosedexception/87597/4 "2017-06-27T20:18:34Z")

</div>

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