Matthew Langham
2007-Jul-22 18:42 UTC
[Ferret-talk] Strange Connection refused error acts_as_ferret server
I am having a strange problem starting the acts_as_ferret Drb server on a particular Linux machine (Debian Etch). The same setup works fine on my Mac (OSX). Without the Rails application running (yes, I''ve checked several times) I get the following error if I try to start the ferret server and one of my models contains :remote => true for acts_as_ferret:>>script/ferret_start /usr/lib/ruby/1.8/drb/drb.rb:736:in `open'': druby://localhost:3009 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> (DRb::DRbConnError) from /usr/lib/ruby/1.8/drb/drb.rb:729:in `each'' from /usr/lib/ruby/1.8/drb/drb.rb:729:in `open'' from /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'' from /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new'' from /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open'' from /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'' from /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'' from /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'' ... 6 levels... from /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:39 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from script/runner:3 << If I remove the :remote => true bit then I can start the Ferret server with no problems. I just don''t understand why the model entry is causing this - especially as the application isn''t running. ferret 0.11.3 I''m betting this is in the "Duh" section - but I just don''t see it. Thanks Matthew -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-Jul-23 06:33 UTC
[Ferret-talk] Strange Connection refused error acts_as_ferret server
On Sun, Jul 22, 2007 at 08:42:46PM +0200, Matthew Langham wrote:> I am having a strange problem starting the acts_as_ferret Drb server on > a particular Linux machine (Debian Etch). The same setup works fine on > my Mac (OSX). > > Without the Rails application running (yes, I''ve checked several times) > I get the following error if I try to start the ferret server and one of > my models contains :remote => true for acts_as_ferret: > > >> > script/ferret_start > /usr/lib/ruby/1.8/drb/drb.rb:736:in `open'': druby://localhost:3009 - > #<Errno::ECONNREFUSED: Connection refused - connect(2)> > (DRb::DRbConnError)This looks like the DRb server itself tries to connect to the DRb server - normally aaf should detect when it is running *in* the DRb server, but sometimes this doesn''t seem to work. Do you use the latest aaf (0.4.1)? There have been some fixes in this area since 0.4.0. Please have a look in your development log, watch out for a line starting with ''Asked for a remote server''. Cheers, Jens -- Jens Kr?mer http://www.jkraemer.net/ - Blog http://www.omdb.org/ - The new free film database