Michael Leung
2006-Aug-23 19:07 UTC
[Ferret-talk] 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. -- Posted via http://www.ruby-forum.com/.
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? On 8/23/06, Michael Leung <mleung at projectrideme.com> wrote:> 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk >
Michael Leung
2006-Aug-23 20:39 UTC
[Ferret-talk] acts_as_ferret with Mongrel and Edge Rails
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 Tran 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?-- Posted via http://www.ruby-forum.com/.
Let me know what version of edgerails you''re using and I"ll see if I run into the same problem. On 8/23/06, Michael Leung <mleung at projectrideme.com> wrote:> > 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 Tran 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? > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk >
Cuong, I''m using REVISION_4647 of Edge. Thanks. :) M. Cuong Tran wrote:> Let me know what version of edgerails you''re using and I"ll see if I > run into the same problem.-- Posted via http://www.ruby-forum.com/.
Guest wrote:> I''m using REVISION_4647 of Edge. > > Thanks. :) > > M. > > Cuong Tran 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:in `require'' 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:in `require'' 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:in `load_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:in `silence_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:in `setup'' from /usr/lib/ruby/1.8/irb.rb:54:in `start'' from /usr/bin/irb:13 -- Posted via http://www.ruby-forum.com/.
On Fri, Aug 25, 2006 at 03:27:04AM +0200, Joern Barthel wrote:> Guest wrote: > > > I''m using REVISION_4647 of Edge. > > > > Thanks. :) > > > > M. > > > > Cuong Tran 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.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 kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
Jens Kraemer 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:in `require'' 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:in `require'' 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:in `load_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:in `silence_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:in `setup'' 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:in `require'' 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:in `load'' 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:in `depend_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:in `const_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:in `setup'' from /usr/lib/ruby/1.8/irb.rb:54:in `start'' from /usr/bin/irb:13 -- Posted via http://www.ruby-forum.com/.
On Mon, Aug 28, 2006 at 12:41:16PM +0200, Runar Ingebrigtsen wrote:> Jens Kraemer 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:in `require'' > 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:in `require'' > 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:in > `load_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:in > `silence_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:in `setup'' > 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:in `require'' > 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:25that 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 kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66