# EOFError (End-of-File Error occured Error)

**URL:** <https://www.ruby-forum.com/t/eoferror-end-of-file-error-occured-error/92961>\
**Category:** Ferret\
**Created:** [April 26, 2007, 2:34am UTC](https://www.ruby-forum.com/t/eoferror-end-of-file-error-occured-error/92961 "2007-04-26T02:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharathrentals](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@bharathrentals](https://www.ruby-forum.com/u/bharathrentals)\
**Post date:** [April 26, 2007, 2:34am UTC](https://www.ruby-forum.com/t/eoferror-end-of-file-error-occured-error/92961/1 "2007-04-26T02:34:35Z")

</div>

Hi Randomly I get the following error when users search

EOFError (End-of-File Error occured at \<except.c\>:93 in xraise  
Error occured in compound\_io.c:137 - cmpdi\_read\_i  
Tried to read past end of file. File length is \<303\> and tried  
to read to \<351\>

):

what could be the problem?

thanks

---

<div class="post-metadata">

**Author:** ![bharathrentals](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@bharathrentals](https://www.ruby-forum.com/u/bharathrentals)\
**Post date:** [April 30, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/eoferror-end-of-file-error-occured-error/92961/2 "2007-04-30T19:53:19Z")

</div>

I ran in to this when my production server was running an earlier  
version of Ferret than the system on which I built the index. I made  
sure both were running the same version and the problem stopped.

Good luck,  
-Stuart
