Forum: Ruby on Rails Ferret on rails--lock doesn't get released when webrick exit

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eca15b2b601e7e577d38bd5210a753ac?d=identicon&s=25 carl (Guest)
on 2005-11-26 20:16
(Received via mailing list)
I'm no doubt doing something wrong here since I just started using
ferret.  I'm following this tutorial:

My ferret_env.rb file looks like this:

require 'ferret'
module FerretConfig
  include Ferret

  INDEX = => File.dirname(__FILE__) +

When I load webrick for the first time, everything works fine.  But
when I exit with ctrl-c and try to load it again, I get this:

=> Booting WEBrick...
`obtain': could not obtain lock:

Is there anything I can do to cause the lock to be released when webrick

1c46e952a61c99d9eae4f21037a088fd?d=identicon&s=25 anatol.pomozov (Guest)
on 2005-11-26 20:40
(Received via mailing list)
In Ferret_environment.rb I have added following line
  Dir["#{FT_PATH}/**/*.lock"].each{|f| File.unlink f}
Just remove all *.lock files on startup. I am not sure that it is the
solution, but it works for me.
E48d29dc8fedb2878fa518d41cc63d88?d=identicon&s=25 JanPrill (Guest)
on 2005-11-27 01:34
(Received via mailing list)
Hi, Carl,

please have a look at and use the
approach that luke describes. This is favorable to the approach that
I've described in the tutorial. You might also have a look at

Jan Prill
This topic is locked and can not be replied to.