# Failed to perform scheduled engine refresh (RefreshFailedEngineException)

**URL:** <https://discuss.elastic.co/t/failed-to-perform-scheduled-engine-refresh-refreshfailedengineexception/13962>\
**Category:** Elasticsearch\
**Created:** [October 16, 2013, 4:07am UTC](https://discuss.elastic.co/t/failed-to-perform-scheduled-engine-refresh-refreshfailedengineexception/13962 "2013-10-16T04:07:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake\_Scott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jake_scott/32/2053_2.png) [@Jake\_Scott](https://discuss.elastic.co/u/Jake_Scott)\
**Post date:** [October 16, 2013, 4:07am UTC](https://discuss.elastic.co/t/failed-to-perform-scheduled-engine-refresh-refreshfailedengineexception/13962/1 "2013-10-16T04:07:39Z")

</div>

Hi ya,

We are seeing errors and wondering if there is any way to fix it. We are  
running on 64-bit Windows 7.

We have the following Java version:

java version "1.7.0\_40"  
Java(TM) SE Runtime Environment (build 1.7.0\_40-b43)  
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)

Cheers  
Jake

[2013-10-16 16:31:52,211][INFO][cluster.metadata] [dev-jakes]  
[postoffice] deleting index  
[2013-10-16 16:31:52,336][INFO][cluster.metadata] [dev-jakes]  
[postoffice] creating index, cause [api], shards [5]/[1], mappings []  
[2013-10-16 16:31:52,578][INFO][cluster.metadata] [dev-jakes]  
[postoffice] create\_mapping [users]  
[2013-10-16 16:31:53,355][INFO][cluster.metadata] [dev-jakes]  
[postoffice] update\_mapping [users] (dynamic)  
[2013-10-16 16:31:53,387][WARN][index.shard.service] [dev-jakes]  
[postoffice][0] Failed to perform scheduled engine refresh  
org.elasticsearch.index.engine.RefreshFailedEngineException:  
[postoffice][0] Refresh failed  
at  
org.elasticsearch.index.engine.robin.RobinEngine.refresh(RobinEngine.java:795)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.refresh(InternalIndexShard.java:426)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard$EngineRefresher$1.run(InternalIndexShard.java:801)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)  
Caused by: java.io.IOException: Cannot overwrite:  
C:\Projects\ElasticSearch\data\postoffice\nodes\0\indices\postoffice\0\index\_0.cfs  
at org.apache.lucene.store.FSDirectory.ensureCanWrite(FSDirectory.java:298)  
at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:287)  
at  
org.apache.lucene.store.RateLimitedFSDirectory.createOutput(RateLimitedFSDirectory.java:41)  
at  
org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:419)  
at  
org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:409)  
at  
org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:62)  
at  
org.apache.lucene.store.CompoundFileWriter.getOutput(CompoundFileWriter.java:103)  
at  
org.apache.lucene.store.CompoundFileWriter.createOutput(CompoundFileWriter.java:231)  
at  
org.apache.lucene.store.CompoundFileDirectory.createOutput(CompoundFileDirectory.java:332)  
at org.apache.lucene.store.Directory.copy(Directory.java:201)  
at org.elasticsearch.index.store.Store$StoreDirectory.copy(Store.java:338)  
at  
org.apache.lucene.store.TrackingDirectoryWrapper.copy(TrackingDirectoryWrapper.java:113)  
at  
org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4292)  
at  
org.apache.lucene.index.DocumentsWriterPerThread.sealFlushedSegment(DocumentsWriterPerThread.java:574)  
at  
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:541)  
at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:478)  
at  
org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:615)  
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:365)  
at  
org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:275)  
at  
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:250)  
at  
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:240)  
at  
org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:170)  
at  
org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:118)  
at  
org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58)  
at  
org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:155)  
at  
org.apache.lucene.search.ReferenceManager.maybeRefresh(ReferenceManager.java:204)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.refresh(RobinEngine.java:776)  
... 5 more  
Suppressed: java.io.IOException: Cannot overwrite:  
C:\Projects\ElasticSearch\data\postoffice\nodes\0\indices\postoffice\0\index\_0.cfs  
at org.apache.lucene.store.FSDirectory.ensureCanWrite(FSDirectory.java:298)  
at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:287)  
at  
org.apache.lucene.store.RateLimitedFSDirectory.createOutput(RateLimitedFSDirectory.java:41)  
at  
org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:419)  
at  
org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:409)  
at  
org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:62)  
at  
org.apache.lucene.store.CompoundFileWriter.getOutput(CompoundFileWriter.java:103)  
at  
org.apache.lucene.store.CompoundFileWriter.close(CompoundFileWriter.java:147)  
at  
org.apache.lucene.store.CompoundFileDirectory.close(CompoundFileDirectory.java:256)  
at  
org.apache.lucene.util.IOUtils.closeWhileHandlingException(IOUtils.java:81)  
at  
org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4300)  
... 19 more

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Jake\_Scott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jake_scott/32/2053_2.png) [@Jake\_Scott](https://discuss.elastic.co/u/Jake_Scott)\
**Post date:** [October 16, 2013, 4:11am UTC](https://discuss.elastic.co/t/failed-to-perform-scheduled-engine-refresh-refreshfailedengineexception/13962/2 "2013-10-16T04:11:39Z")

</div>

I also forgot to mention I am running the 0.90.5 version of ES

On Wednesday, October 16, 2013 5:07:39 PM UTC+13, Jake Scott wrote:

> Hi ya,
> 
> We are seeing errors and wondering if there is any way to fix it. We are  
> running on 64-bit Windows 7.
> 
> We have the following Java version:
> 
> java version "1.7.0\_40"  
> Java(TM) SE Runtime Environment (build 1.7.0\_40-b43)  
> Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
> 
> Cheers  
> Jake
> 
> [2013-10-16 16:31:52,211][INFO][cluster.metadata] [dev-jakes]  
> [postoffice] deleting index  
> [2013-10-16 16:31:52,336][INFO][cluster.metadata] [dev-jakes]  
> [postoffice] creating index, cause [api], shards [5]/[1], mappings   
> [2013-10-16 16:31:52,578][INFO][cluster.metadata] [dev-jakes]  
> [postoffice] create\_mapping [users]  
> [2013-10-16 16:31:53,355][INFO][cluster.metadata] [dev-jakes]  
> [postoffice] update\_mapping [users] (dynamic)  
> [2013-10-16 16:31:53,387][WARN][index.shard.service] [dev-jakes]  
> [postoffice][0] Failed to perform scheduled engine refresh  
> org.elasticsearch.index.engine.RefreshFailedEngineException:  
> [postoffice][0] Refresh failed  
> at  
> org.elasticsearch.index.engine.robin.RobinEngine.refresh(RobinEngine.java:795)  
> at  
> org.elasticsearch.index.shard.service.InternalIndexShard.refresh(InternalIndexShard.java:426)  
> at  
> org.elasticsearch.index.shard.service.InternalIndexShard$EngineRefresher$1.run(InternalIndexShard.java:801)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)  
> Caused by: java.io.IOException: Cannot overwrite:  
> C:\Projects\Elasticsearch\data\postoffice\nodes\0\indices\postoffice\0\index\_0.cfs  
> at org.apache.lucene.store.FSDirectory.ensureCanWrite(FSDirectory.java:298)  
> at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:287)  
> at  
> org.apache.lucene.store.RateLimitedFSDirectory.createOutput(RateLimitedFSDirectory.java:41)  
> at  
> org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:419)  
> at  
> org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:409)  
> at  
> org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:62)  
> at  
> org.apache.lucene.store.CompoundFileWriter.getOutput(CompoundFileWriter.java:103)  
> at  
> org.apache.lucene.store.CompoundFileWriter.createOutput(CompoundFileWriter.java:231)  
> at  
> org.apache.lucene.store.CompoundFileDirectory.createOutput(CompoundFileDirectory.java:332)  
> at org.apache.lucene.store.Directory.copy(Directory.java:201)  
> at org.elasticsearch.index.store.Store$StoreDirectory.copy(Store.java:338)  
> at  
> org.apache.lucene.store.TrackingDirectoryWrapper.copy(TrackingDirectoryWrapper.java:113)  
> at  
> org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4292)  
> at  
> org.apache.lucene.index.DocumentsWriterPerThread.sealFlushedSegment(DocumentsWriterPerThread.java:574)  
> at  
> org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:541)  
> at  
> org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:478)  
> at  
> org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:615)  
> at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:365)  
> at  
> org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:275)  
> at  
> org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:250)  
> at  
> org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:240)  
> at  
> org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:170)  
> at  
> org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:118)  
> at  
> org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58)  
> at  
> org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:155)  
> at  
> org.apache.lucene.search.ReferenceManager.maybeRefresh(ReferenceManager.java:204)  
> at  
> org.elasticsearch.index.engine.robin.RobinEngine.refresh(RobinEngine.java:776)  
> ... 5 more  
> Suppressed: java.io.IOException: Cannot overwrite:  
> C:\Projects\Elasticsearch\data\postoffice\nodes\0\indices\postoffice\0\index\_0.cfs  
> at org.apache.lucene.store.FSDirectory.ensureCanWrite(FSDirectory.java:298)  
> at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:287)  
> at  
> org.apache.lucene.store.RateLimitedFSDirectory.createOutput(RateLimitedFSDirectory.java:41)  
> at  
> org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:419)  
> at  
> org.elasticsearch.index.store.Store$StoreDirectory.createOutput(Store.java:409)  
> at  
> org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:62)  
> at  
> org.apache.lucene.store.CompoundFileWriter.getOutput(CompoundFileWriter.java:103)  
> at  
> org.apache.lucene.store.CompoundFileWriter.close(CompoundFileWriter.java:147)  
> at  
> org.apache.lucene.store.CompoundFileDirectory.close(CompoundFileDirectory.java:256)  
> at  
> org.apache.lucene.util.IOUtils.closeWhileHandlingException(IOUtils.java:81)  
> at  
> org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4300)  
> ... 19 more

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:12am UTC](https://discuss.elastic.co/t/failed-to-perform-scheduled-engine-refresh-refreshfailedengineexception/13962/3 "2017-07-06T02:12:16Z")

</div>


