Acts_as_ferret with Mongrel and Edge Rails

Hi there,

Has anyone tried acts_as_ferret with Edge Rails and Mongrel? When I
install the plugin to a project that has Edge Rails frozen, and the
Mongrel gem installed, I can’t start the server. There’s no error, it
just doesn’t start.

I’ve used acts_as_ferret in the past with WEBrick, and stable Rails
releases without a hitch.

If I remove the acts_as_ferret plugin, I can sucessfully start Mongrel.

Thanks in advance, for any insight.

M.

I’ve successfully used the same setup (though I made some
modification to the plugin but not because it didn’t work). You
didn’t see anything in the log?

Cuong,

Thanks for the reply. Oddly no, there’s nothing in the log.

In the command window, I get:

Booting Mongrel
Starting Rails with Dev Env
Exiting.

Odd.

And there’s nothing in the development log, or the mongrel_debug about
it.

Hmm…

M.

Cuong T. wrote:

I’ve successfully used the same setup (though I made some
modification to the plugin but not because it didn’t work). You
didn’t see anything in the log?

Let me know what version of edgerails you’re using and I"ll see if I
run into the same problem.

Cuong,

I’m using REVISION_4647 of Edge.

Thanks. :slight_smile:

M.

Cuong T. wrote:

Let me know what version of edgerails you’re using and I"ll see if I
run into the same problem.

Guest wrote:

I’m using REVISION_4647 of Edge.

Thanks. :slight_smile:

M.

Cuong T. wrote:

Let me know what version of edgerails you’re using and I"ll see if I
run into the same problem.

I have exactly the same problem here (it’s the same with WEBRick btw.),
being on 4727 (before the new dependency system which breaks other
things). I’d like to add two observations though:

  • Under win32 there are no problems at all
  • Under win32 / cygwin and mac os x (the only systems tested) the error
    is the same (server is dying silently)

Running the console reveals a little bit more information regarding the
bug - there seems to be a problem requiring the gem ferret_ext. But even
manually changing the require to rferret (in acts_as_ferret init.rb)
does not fix the problem.

Console stacktrace (cygwin):

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- ferret_ext (MissingSourceFile) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:331:in
require' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret.rb:25 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:inrequire’
from
./script/…/config/…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:331:in
require' from script/../config/../config/../vendor/plugins/acts_as_ferret/init.rb:1:inload_plugin’
from
./script/…/config/…/config/…/vendor/rails/railties/lib/initializer.rb:361:in
load_plugin' from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings’
… 8 levels…
from /usr/lib/ruby/1.8/irb/init.rb:250:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:insetup’
from /usr/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/bin/irb:13

On Fri, Aug 25, 2006 at 03:27:04AM +0200, Joern Barthel wrote:

run into the same problem.
bug - there seems to be a problem requiring the gem ferret_ext. But even
manually changing the require to rferret (in acts_as_ferret init.rb)
does not fix the problem.

could you try to freeze the ferret gem to your application ?

mkdir vendor/ferret
cp -a /usr/local/lib/ruby/gems/1.8/gems/ferret-x.y.z/lib vendor/ferret/

then add vendor/ferret/lib to your load_path in environment.rb:
config.load_paths += %W( #{RAILS_ROOT}/vendor/ferret/lib )

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

On Mon, Aug 28, 2006 at 12:41:16PM +0200, Runar Ingebrigtsen wrote:

`require’
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in

After

    from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret.rb:25

that doesn’t look like the frozen ferret from your RAILS_ROOT really
gets used…

Jens


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

Jens K. wrote:

On Fri, Aug 25, 2006 at 03:27:04AM +0200, Joern Barthel wrote:

run into the same problem.
bug - there seems to be a problem requiring the gem ferret_ext. But even
manually changing the require to rferret (in acts_as_ferret init.rb)
does not fix the problem.

could you try to freeze the ferret gem to your application ?

This makes no difference here.

Before

$ script/console
Loading development environment.
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- ferret_ext (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret.rb:25 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:33:inrequire’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from script/../config/../config/../vendor/plugins/acts_as_ferret/init.rb:1:inload_plugin’
from
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in
load_plugin' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings’
… 7 levels…
from /usr/lib/ruby/1.8/irb/init.rb:250:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:insetup’
from /usr/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/bin/irb:13

After

$ script/console
Loading development environment.
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- ferret_ext (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/lib/ruby/gems/1.8/gems/ferret-0.10.1/lib/ferret.rb:25 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:inload’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in
require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:independ_on’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in
require_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:inconst_missing’
… 14 levels…
from /usr/lib/ruby/1.8/irb/init.rb:250:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:insetup’
from /usr/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/bin/irb:13