# "java.io.EOFException: read past EOF: NIOFSIndexInput" error

**URL:** <https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436>\
**Category:** Elasticsearch\
**Created:** [June 16, 2013, 8:09am UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436 "2013-06-16T08:09:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [June 16, 2013, 8:09am UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436/1 "2013-06-16T08:09:28Z")

</div>

Hi ,

I am seeing this error while executing constant score query -

> <https://gist.github.com/Vineeth-Mohan/5791347>

  
Kindly check.

VERSION - 0.90.1

Thanks  
Vineeth

--  
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:** ![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:** [June 16, 2013, 10:51am UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436/2 "2013-06-16T10:51:30Z")

</div>

Hi,

This looks like your index is corrupted. Does the issue still reproduce if  
you reindex your data?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [June 16, 2013, 3:03pm UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436/3 "2013-06-16T15:03:50Z")

</div>

Hello Adrein ,

Thanks for replying.  
Actually the issue got fixed using this command from lib

java -cp lucene-core-4.3.0.jar -ea:org.apache.lucene...  
org.apache.lucene.index.CheckIndex  
/var/lib/elasticsearch/staging/nodes/0/indices/events/0/index -fix

Thanks  
Vineeth

On Sun, Jun 16, 2013 at 4:21 PM, Adrien Grand \<  
[adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com)\> wrote:

> Hi,
> 
> This looks like your index is corrupted. Does the issue still reproduce if  
> you reindex your data?
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 16, 2013, 5:00pm UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436/4 "2013-06-16T17:00:30Z")

</div>

Hey,

can you tell us, what happened before? Any chance to reproduce it maybe? Do  
you have any indication why this happened and how you got into this state?  
If so, can you create an issue?

Thanks a lot!

--Alex

On Sun, Jun 16, 2013 at 5:03 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> Hello Adrein ,
> 
> Thanks for replying.  
> Actually the issue got fixed using this command from lib
> 
> java -cp lucene-core-4.3.0.jar -ea:org.apache.lucene...  
> org.apache.lucene.index.CheckIndex  
> /var/lib/elasticsearch/staging/nodes/0/indices/events/0/index -fix
> 
> Thanks  
> Vineeth
> 
> On Sun, Jun 16, 2013 at 4:21 PM, Adrien Grand \<  
> [adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com)\> wrote:
> 
> > Hi,
> > 
> > This looks like your index is corrupted. Does the issue still reproduce  
> > if you reindex your data?
> > 
> > --  
> > 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).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).

--  
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:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [June 16, 2013, 5:27pm UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436/5 "2013-06-16T17:27:45Z")

</div>

I have absolutely no idea how i end up here. And now that the index is  
corrected using the lucene command , there is no way i can see it again.  
But sure , when this strike next time , i will make sure i will post back  
on the details.

Thanks  
Vineeth

On Sun, Jun 16, 2013 at 10:30 PM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de)wrote:

> Hey,
> 
> can you tell us, what happened before? Any chance to reproduce it maybe?  
> Do you have any indication why this happened and how you got into this  
> state? If so, can you create an issue?
> 
> Thanks a lot!
> 
> --Alex
> 
> On Sun, Jun 16, 2013 at 5:03 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:
> 
> > Hello Adrein ,
> > 
> > Thanks for replying.  
> > Actually the issue got fixed using this command from lib
> > 
> > java -cp lucene-core-4.3.0.jar -ea:org.apache.lucene...  
> > org.apache.lucene.index.CheckIndex  
> > /var/lib/elasticsearch/staging/nodes/0/indices/events/0/index -fix
> > 
> > Thanks  
> > Vineeth
> > 
> > On Sun, Jun 16, 2013 at 4:21 PM, Adrien Grand \<  
> > [adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com)\> wrote:
> > 
> > > Hi,
> > > 
> > > This looks like your index is corrupted. Does the issue still reproduce  
> > > if you reindex your data?
> > > 
> > > --  
> > > 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).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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).
> 
> --  
> 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).

--  
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:31am UTC](https://discuss.elastic.co/t/java-io-eofexception-read-past-eof-niofsindexinput-error/12436/6 "2017-07-06T02:31:00Z")

</div>


