# Error in Elasticsearch logs: index.engine indexname \[0\] failed to acquire searcher, source indices\_ttl

**URL:** <https://discuss.elastic.co/t/error-in-elasticsearch-logs-index-engine-indexname-0-failed-to-acquire-searcher-source-indices-ttl/56327>\
**Category:** Elasticsearch\
**Created:** [July 25, 2016, 6:24pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-logs-index-engine-indexname-0-failed-to-acquire-searcher-source-indices-ttl/56327 "2016-07-25T18:24:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![newelasticuser](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@newelasticuser](https://discuss.elastic.co/u/newelasticuser)\
**Post date:** [July 25, 2016, 6:24pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-logs-index-engine-indexname-0-failed-to-acquire-searcher-source-indices-ttl/56327/1 "2016-07-25T18:24:53Z")

</div>

The following exception is thrown every minute in the logs

Error in Elasticsearch logs: index.engine indexname [0] failed to acquire searcher, source indices\_ttl  
java.lang.illegalstateexception: can't locate the origin of the current request.

Help on resolving this error.

---

<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:** [July 26, 2016, 10:33am UTC](https://discuss.elastic.co/t/error-in-elasticsearch-logs-index-engine-indexname-0-failed-to-acquire-searcher-source-indices-ttl/56327/2 "2016-07-26T10:33:43Z")

</div>

Can you show us the entire error from the log?

---

<div class="post-metadata">

**Author:** ![newelasticuser](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@newelasticuser](https://discuss.elastic.co/u/newelasticuser)\
**Post date:** [July 26, 2016, 5:01pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-logs-index-engine-indexname-0-failed-to-acquire-searcher-source-indices-ttl/56327/3 "2016-07-26T17:01:54Z")

</div>

[2016-07-26 11:49:43,461][ERROR][index.engine] [hostname] [myindex][0] failed to acquire searcher, source indices\_ttl  
java.lang.IllegalStateException: can't locate the origin of the current request  
at org.elasticsearch.shield.authz.accesscontrol.ShieldIndexSearcherWrapper.wrap(ShieldIndexSearcherWrapper.java:124)  
at org.elasticsearch.index.engine.IndexSearcherWrappingService.wrap(IndexSearcherWrappingService.java:80)  
at org.elasticsearch.index.engine.Engine.acquireSearcher(Engine.java:303)  
at org.elasticsearch.index.engine.Engine.acquireSearcher(Engine.java:287)  
at org.elasticsearch.index.shard.IndexShard.acquireSearcher(IndexShard.java:849)  
at org.elasticsearch.indices.ttl.IndicesTTLService.purgeShards(IndicesTTLService.java:200)  
at org.elasticsearch.indices.ttl.IndicesTTLService.access$000(IndicesTTLService.java:67)  
at org.elasticsearch.indices.ttl.IndicesTTLService$PurgerThread.run(IndicesTTLService.java:140)  
[2016-07-26 11:49:43,462][WARN][indices.ttl] [hostname] failed to execute ttl purge  
[myindex][[myindex][0]] EngineException[failed to acquire searcher, source indices\_ttl]; nested: IllegalStateException[can't locate the origin of the current request];  
at org.elasticsearch.index.engine.Engine.acquireSearcher(Engine.java:316)  
at org.elasticsearch.index.engine.Engine.acquireSearcher(Engine.java:287)  
at org.elasticsearch.index.shard.IndexShard.acquireSearcher(IndexShard.java:849)  
at org.elasticsearch.indices.ttl.IndicesTTLService.purgeShards(IndicesTTLService.java:200)  
at org.elasticsearch.indices.ttl.IndicesTTLService.access$000(IndicesTTLService.java:67)  
at org.elasticsearch.indices.ttl.IndicesTTLService$PurgerThread.run(IndicesTTLService.java:140)  
Caused by: java.lang.IllegalStateException: can't locate the origin of the current request  
at org.elasticsearch.shield.authz.accesscontrol.ShieldIndexSearcherWrapper.wrap(ShieldIndexSearcherWrapper.java:124)  
at org.elasticsearch.index.engine.IndexSearcherWrappingService.wrap(IndexSearcherWrappingService.java:80)  
at org.elasticsearch.index.engine.Engine.acquireSearcher(Engine.java:303)  
... 5 more  
~

---

<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, 10:32pm UTC](https://discuss.elastic.co/t/error-in-elasticsearch-logs-index-engine-indexname-0-failed-to-acquire-searcher-source-indices-ttl/56327/4 "2017-07-05T22:32:48Z")

</div>


