# checkIndex wit ES 1.1.0

**URL:** <https://discuss.elastic.co/t/checkindex-wit-es-1-1-0/16890>\
**Category:** Elasticsearch\
**Created:** [April 9, 2014, 9:37am UTC](https://discuss.elastic.co/t/checkindex-wit-es-1-1-0/16890 "2014-04-09T09:37:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Salmon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_salmon/32/5330_2.png) [@Michael\_Salmon](https://discuss.elastic.co/u/Michael_Salmon)\
**Post date:** [April 9, 2014, 9:37am UTC](https://discuss.elastic.co/t/checkindex-wit-es-1-1-0/16890/1 "2014-04-09T09:37:15Z")

</div>

I recently had a problem with an index and after searching the net I decided to give checkIndex a try. I found the class in the right jar but I haven't been able to get it to check an index. For example when I run

checkIndex -verbose ...heat-analyzer/7/index

I get:

ERROR: could not read any segments file in directory  
java.io.FileNotFoundException: ...heat-analyzer/7/index/segments\_37l (No such file or directory)

That is correct, the directory contains:

\_checksums-1397035754356 \_j85h\_es090\_0.blm \_j8fu.cfe \_j91a.cfs  
\_isy5.nvm \_j86v.cfe \_j8g4.cfs \_j95w\_es090\_0.tim  
\_j821.si \_j870.cfs \_j8hl.si \_j963.si  
\_j82l.cfs \_j898\_Lucene45\_0.dvd \_j8ln.cfs \_j968.cfs  
\_j838.cfe \_j8ap.cfe \_j8t6.cfe \_j975.si  
\_j83a.fdx \_j8b6.cfs \_j8tb\_es090\_0.doc \_j9b9.cfs  
\_j83o.nvd \_j8c1.si \_j8tp.cfs \_j9di\_es090\_0.blm  
\_j83o.si \_j8cz.si \_j8v9.fnm \_j9e0.cfe  
\_j83p.nvd \_j8et.cfs \_j8yv.cfe segments.gen  
\_j84u.cfs \_j8fa.cfs \_j919.fdt write.lock

I am running ES 1.1.0 and using the checkIndex from Lucene 4.7.0.

Has anyone gotten checkIndex to work with this combination?

## /Michael

This space intentionally left not blank.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0CB7B85A-8ADE-4943-A912-1689411FEFF2%40inovia.nu](https://groups.google.com/d/msgid/elasticsearch/0CB7B85A-8ADE-4943-A912-1689411FEFF2%40inovia.nu).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 9, 2014, 10:50am UTC](https://discuss.elastic.co/t/checkindex-wit-es-1-1-0/16890/2 "2014-04-09T10:50:54Z")

</div>

Hi Michael,

Running checkindex from the command line can prove to be tricky, since  
checkindex is not aware of things like multi-data-path directories that you  
might be using with Elasticsearch. Moreover, you will need to add the  
Elasticsearch jars to the classpath since Elasticsearch customizes some of  
the index file formats.

Elasticsearch has the ability to run checkindex when opening an index, see  
index.shard.check\_on\_startup[1]. When set to true, Elasticsearch will run  
checkindex when opening indices and prevent them from being open if they  
appear to be corrupted. In case of a failure, you will need to check out  
the logs in order to have details. Please not that this is not a live  
setting, so this can only be changed on a closed index.

[1]

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Wed, Apr 9, 2014 at 11:37 AM, Michael Salmon [michael.salmon@inovia.nu](mailto:michael.salmon@inovia.nu)wrote:

> I recently had a problem with an index and after searching the net I  
> decided to give checkIndex a try. I found the class in the right jar but I  
> haven't been able to get it to check an index. For example when I run
> 
> checkIndex -verbose ...heat-analyzer/7/index
> 
> I get:
> 
> ERROR: could not read any segments file in directory  
> java.io.FileNotFoundException: ...heat-analyzer/7/index/segments\_37l (No  
> such file or directory)
> 
> That is correct, the directory contains:
> 
> \_checksums-1397035754356 \_j85h\_es090\_0.blm \_j8fu.cfe  
> \_j91a.cfs  
> \_isy5.nvm \_j86v.cfe \_j8g4.cfs  
> \_j95w\_es090\_0.tim  
> \_j821.si \_j870.cfs \_j8hl.si \_  
> j963.si  
> \_j82l.cfs \_j898\_Lucene45\_0.dvd \_j8ln.cfs  
> \_j968.cfs  
> \_j838.cfe \_j8ap.cfe \_j8t6.cfe \_  
> j975.si  
> \_j83a.fdx \_j8b6.cfs \_j8tb\_es090\_0.doc  
> \_j9b9.cfs  
> \_j83o.nvd \_j8c1.si \_j8tp.cfs  
> \_j9di\_es090\_0.blm  
> \_j83o.si \_j8cz.si \_j8v9.fnm  
> \_j9e0.cfe  
> \_j83p.nvd \_j8et.cfs \_j8yv.cfe  
> segments.gen  
> \_j84u.cfs \_j8fa.cfs \_j919.fdt  
> write.lock
> 
> I am running ES 1.1.0 and using the checkIndex from Lucene 4.7.0.
> 
> Has anyone gotten checkIndex to work with this combination?
> 
> ## /Michael
> 
> This space intentionally left not blank.
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/0CB7B85A-8ADE-4943-A912-1689411FEFF2%40inovia.nu](https://groups.google.com/d/msgid/elasticsearch/0CB7B85A-8ADE-4943-A912-1689411FEFF2%40inovia.nu)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6A\_khwE4MY3XT%3D%3DB3JMVY5%2BDCJfJuafanCiZDtF16epw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6A_khwE4MY3XT%3D%3DB3JMVY5%2BDCJfJuafanCiZDtF16epw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:37am UTC](https://discuss.elastic.co/t/checkindex-wit-es-1-1-0/16890/3 "2017-07-06T01:37:19Z")

</div>

Closed on July 6, 2017, 1:37am UTC


