# IO errors with 2 processes

**URL:** <https://www.ruby-forum.com/t/io-errors-with-2-processes/114262>\
**Category:** Ferret\
**Created:** [September 10, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/io-errors-with-2-processes/114262 "2007-09-10T18:22:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![supasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@supasta](https://www.ruby-forum.com/u/supasta)\
**Post date:** [September 10, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/io-errors-with-2-processes/114262/1 "2007-09-10T18:22:41Z")

</div>

## Hi All, I’m using acts as ferret and getting a lot of these errors:

## Error occured in fs\_store.c:324 - fs\_open\_input couldn’t create InStream /var/rails/projectblue/website/public/…/config/…/index/production/content\_page/\_347i.fdt:

## and also some of these errors:

## uninitialized constant Ferret::Index::Index::LockError [RAILS\_ROOT]/vendor/rails/activesupport/lib/active\_support/dependencies.rb:477:in `const\_missing’

Now I’ve got a daemon I’m using to spider some webpages which is an  
independant process from the actual webserver. I thought I’d be able to  
get away with it, since the daemon is the only thing that writes to the  
database (the web server just does reads.)

Do you think this is causing the problem? Any solutions?

Thanks,  
Chris.

---

<div class="post-metadata">

**Author:** ![supasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@supasta](https://www.ruby-forum.com/u/supasta)\
**Post date:** [September 10, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/io-errors-with-2-processes/114262/2 "2007-09-10T19:12:11Z")

</div>

On Mon, Sep 10, 2007 at 06:22:41PM +0200, Chris W. wrote:

> ## uninitialized constant Ferret::Index::Index::LockError [RAILS\_ROOT]/vendor/rails/activesupport/lib/active\_support/dependencies.rb:477:in `const\_missing’
> 
> Now I’ve got a daemon I’m using to spider some webpages which is an  
> independant process from the actual webserver. I thought I’d be able to  
> get away with it, since the daemon is the only thing that writes to the  
> database (the web server just does reads.)
> 
> Do you think this is causing the problem? Any solutions?

most probably it is. When you create (rebuild) a new index where the old  
one was, searches will fail because the old index isn’t there anymore.

Try building the new index in a separate directory, or use the DRb  
server which exactly does this.

Cheers,  
Jens

–  
Jens Krämer  
webit! Gesellschaft für neue Medien mbH  
Schnorrstraße 76 | 01069 Dresden  
Telefon +49 351 46766-0 | Telefax +49 351 46766-66  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa

---

<div class="post-metadata">

**Author:** ![supasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@supasta](https://www.ruby-forum.com/u/supasta)\
**Post date:** [September 11, 2007, 11:37am UTC](https://www.ruby-forum.com/t/io-errors-with-2-processes/114262/3 "2007-09-11T11:37:20Z")

</div>

Thanks for the reply, I’ll do it.
