# Elastic Translog corrupted error (Unassigned shards)

**URL:** https://discuss.elastic.co/t/elastic-translog-corrupted-error-unassigned-shards/345255
**Category:** Elasticsearch
**Created:** [October 18, 2023, 7:17am UTC](https://discuss.elastic.co/t/elastic-translog-corrupted-error-unassigned-shards/345255 "2023-10-18T07:17:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rajesh123](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@Rajesh123](https://discuss.elastic.co/u/Rajesh123)
#### Post date: [October 18, 2023, 7:17am UTC](https://discuss.elastic.co/t/elastic-translog-corrupted-error-unassigned-shards/345255/1 "2023-10-18T07:17:37Z")

</div>

Hello Friends,  
Can you suggest below error related translog corrupted .100+ shards are red (unassigned state) due disk failure and most of the shards recover but few shards not getting recovery.  
tried below option to resolve it  
--_POST \_cluster/reroute_ , no luck  
--Snapshot recovery, but data not registered, so I can not use this option  
--elasticsearch-shard command line tool, But getting ,`Exception in thread "main" ElasticsearchException[failed to lock node's directory, is Elasticsearch still running?]`

\*"

```auto
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[2023-10-17T06:30:33.485Z], failed_attempts[5], failed_nodes[[]], delayed=false, details[failed shard on node *
*[]: failed recovery, failure RecoveryFailedException[[][0]: Recovery failed on {}{}{}{}{}{dilm}{ml.machine_memory=60129005568, xpack.installed=true, ml.max_open_jobs=20}]; nested: IndexShardRecoveryException[failed recovery]; nested: TranslogCorruptedException[translog from source [E:\ElasticsearchData\data\nodes\0\indices\Yj_B0BVvS_2z23xxv06S-Q\0\**translog] is corrupted**]; nested: NoSuchFileException[D:\ElasticsearchData\data\nodes\0\indices\Yj_B0BVvS_2z23xxv06S-Q\0\translog\translog-1827.tlog]; ], allocation_status[deciders_no]]]"""*

```

any suggestion on above issue ?

---

<div class="post-metadata">

### Author: ![Rajesh123](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@Rajesh123](https://discuss.elastic.co/u/Rajesh123)
#### Post date: [October 18, 2023, 11:39am UTC](https://discuss.elastic.co/t/elastic-translog-corrupted-error-unassigned-shards/345255/2 "2023-10-18T11:39:18Z")

</div>

any help ?

---

<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: [November 15, 2023, 11:39am UTC](https://discuss.elastic.co/t/elastic-translog-corrupted-error-unassigned-shards/345255/3 "2023-11-15T11:39:50Z")

</div>

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