# CheckIndex dies with bus error ... how else can I fix shard?

**URL:** <https://discuss.elastic.co/t/checkindex-dies-with-bus-error-how-else-can-i-fix-shard/2609>\
**Category:** Elasticsearch\
**Created:** [June 12, 2015, 9:14pm UTC](https://discuss.elastic.co/t/checkindex-dies-with-bus-error-how-else-can-i-fix-shard/2609 "2015-06-12T21:14:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecweaver](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@ecweaver](https://discuss.elastic.co/u/ecweaver)\
**Post date:** [June 12, 2015, 9:14pm UTC](https://discuss.elastic.co/t/checkindex-dies-with-bus-error-how-else-can-i-fix-shard/2609/1 "2015-06-12T21:14:18Z")

</div>

I have an index shard that seems to have been damaged by a server reboot (neglected to stop indexing and flush first, it appears). It won't complete replicating and the master is chattering madly on the network unless the index is closed.

Ran CheckIndex on that shard (with the index closed), and it's consistently errored out on the file whose name shows up in the ES logs. It says "Bus Error" meaning I think dereferencing a pointer with not enough zeroes on the right. Is there any way to just manually delete that particular file out of the shard's consciousness?

I have made a Snapshot that ended in Partial status, might that be restorable, so I can at least recover the rest of the shards?

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 13, 2015, 4:34am UTC](https://discuss.elastic.co/t/checkindex-dies-with-bus-error-how-else-can-i-fix-shard/2609/2 "2015-06-13T04:34:19Z")

</div>

I'd say your shard is lost, did you have replicas?

---

<div class="post-metadata">

**Author:** ![ecweaver](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@ecweaver](https://discuss.elastic.co/u/ecweaver)\
**Post date:** [June 14, 2015, 8:10pm UTC](https://discuss.elastic.co/t/checkindex-dies-with-bus-error-how-else-can-i-fix-shard/2609/3 "2015-06-14T20:10:46Z")

</div>

Unfortunately not. That was the primary; it would hang when trying to replicate. Took a snapshot, and trying a restore with partial:true... the damaged shard is coming up empty as expected.

---

<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:** [July 6, 2017, 12:07am UTC](https://discuss.elastic.co/t/checkindex-dies-with-bus-error-how-else-can-i-fix-shard/2609/4 "2017-07-06T00:07:36Z")

</div>


