# Failed to sync translog java.io.IOException: Input/output error

**URL:** https://discuss.elastic.co/t/failed-to-sync-translog-java-io-ioexception-input-output-error/27951
**Category:** Elasticsearch
**Created:** [August 24, 2015, 1:26pm UTC](https://discuss.elastic.co/t/failed-to-sync-translog-java-io-ioexception-input-output-error/27951 "2015-08-24T13:26:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ziv2081](https://avatars.discourse-cdn.com/v4/letter/z/d2c977/32.png) [@ziv2081](https://discuss.elastic.co/u/ziv2081)
#### Post date: [August 24, 2015, 1:26pm UTC](https://discuss.elastic.co/t/failed-to-sync-translog-java-io-ioexception-input-output-error/27951/1 "2015-08-24T13:26:06Z")

</div>

Hey,

I'm receiving this error quite often ( every 5-10 seconds) from my indices and even marvel index.

From my indices when I bulk index 200-1000 documents from a single machine in a single thread.

And from marvel when the system is idle:  
[2015-08-24 13:24:26,561][WARN][index.gateway.local] [secdo\_test\_1] [.marvel-2015.08.24][0] failed to sync translog  
java.io.IOException: Input/output error  
at sun.nio.ch.FileDispatcherImpl.force0(Native Method)  
at sun.nio.ch.FileDispatcherImpl.force(FileDispatcherImpl.java:76)  
at sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:386)  
at org.elasticsearch.index.translog.fs.SimpleFsTranslogFile.sync(SimpleFsTranslogFile.java:162)  
at org.elasticsearch.index.translog.fs.FsTranslog.sync(FsTranslog.java:440)  
at org.elasticsearch.index.gateway.local.LocalIndexShardGateway$Sync$1.run(LocalIndexShardGateway.java:378)  
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)

I'm running 1.7.1 and its an EC2 single node with EBS volumes raid0.

How bad is this?

Best regards,

---

<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: [August 24, 2015, 10:32pm UTC](https://discuss.elastic.co/t/failed-to-sync-translog-java-io-ioexception-input-output-error/27951/2 "2015-08-24T22:32:00Z")

</div>

> [@ziv2081](#):
>
> java.io.IOException: Input/output error

Doesn't look good, can you run a FS check?

---

<div class="post-metadata">

### Author: ![ziv2081](https://avatars.discourse-cdn.com/v4/letter/z/d2c977/32.png) [@ziv2081](https://discuss.elastic.co/u/ziv2081)
#### Post date: [August 25, 2015, 3:50pm UTC](https://discuss.elastic.co/t/failed-to-sync-translog-java-io-ioexception-input-output-error/27951/3 "2015-08-25T15:50:00Z")

</div>

thanks for the tip.

I used mdadm raid0 on amazon EBS.  
Once I changed the database to use only one EBS volume instead of mdadm it started working properly again.

---

<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:53pm UTC](https://discuss.elastic.co/t/failed-to-sync-translog-java-io-ioexception-input-output-error/27951/4 "2017-07-05T23:53:58Z")

</div>


