# TranslogCorruptedException after restarting ES

**URL:** <https://discuss.elastic.co/t/translogcorruptedexception-after-restarting-es/29276>\
**Category:** Elasticsearch\
**Created:** [September 14, 2015, 7:02pm UTC](https://discuss.elastic.co/t/translogcorruptedexception-after-restarting-es/29276 "2015-09-14T19:02:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)\
**Post date:** [September 14, 2015, 7:02pm UTC](https://discuss.elastic.co/t/translogcorruptedexception-after-restarting-es/29276/1 "2015-09-14T19:02:42Z")

</div>

Hi All,

I am getting IndexShardGatewayRecoveryException after my ES instance got restarted. I am using ES 1.4.4  
Can someone help me to fix this?

```
 [2015-09-14 11:57:50,186][WARN][indices.cluster] [My Node] [failing_index][2] failed to start shard
    org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException: [failing_index][2] failed to recover shard
    	at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:287)
    	at org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:132)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: org.elasticsearch.index.translog.TranslogCorruptedException: translog corruption while reading from stream
    	at org.elasticsearch.index.translog.ChecksummedTranslogStream.read(ChecksummedTranslogStream.java:70)
    	at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:257)
    	... 4 more
    Caused by: java.io.EOFException
    	at org.elasticsearch.common.io.stream.InputStreamStreamInput.readBytes(InputStreamStreamInput.java:53)
    	at org.elasticsearch.index.translog.BufferedChecksumStreamInput.readBytes(BufferedChecksumStreamInput.java:55)
    	at org.elasticsearch.common.io.stream.StreamInput.readBytesReference(StreamInput.java:86)
    	at org.elasticsearch.common.io.stream.StreamInput.readBytesReference(StreamInput.java:74)
    	at org.elasticsearch.index.translog.Translog$Create.readFrom(Translog.java:353)
    	at org.elasticsearch.index.translog.ChecksummedTranslogStream.read(ChecksummedTranslogStream.java:68)
    	... 5 more
```

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [September 14, 2015, 10:28pm UTC](https://discuss.elastic.co/t/translogcorruptedexception-after-restarting-es/29276/2 "2015-09-14T22:28:56Z")

</div>

Hi,

Did the disk get full or something happen? On your node look for:

```auto
/path/to/esdata/<cluster_name>/nodes/<node_number>/indices/failing_index/2/translog/translog-*

```

Stop Elasticsearch, then you can try moving the files from inside the translog directory to another location. Then start Elasticsearcha and see if that fixes it.

---

<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 5, 2017, 11:50pm UTC](https://discuss.elastic.co/t/translogcorruptedexception-after-restarting-es/29276/3 "2017-07-05T23:50:22Z")

</div>


