Bugs: Browse | Submit New | Admin

[#27969] Errno::ECONNREFUSED: Connection refused - connect(2)

Date:
2010-03-15 18:24
Priority:
3
Submitted By:
Devis Clark (devis)
Assigned To:
Daniel Berger (djberg96)
Category:
net-ping
State:
Open
Platform:
Ruby Version:
Summary:
Errno::ECONNREFUSED: Connection refused - connect(2)

Detailed description
Hello.

I create rails application through command:

> rails rails

Get spec file through:

> ./script/generate rspec_model example

Get spork bootstrap:

> spork -b

Some edit in spec_helper.

First situation:

> spork
> ./script/spec --drb spec/models/example_spec.rb

Ok, no error.

Secondary situation:

i add

config.gem 'net-ping', :lib => 'net/ping' net-ping

in config/environment.rb and try:

> spork
> ./script/spec --drb spec/models/example_spec.rb

Result in spork screen:

Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
Spork is ready and listening on 8989!
Exception encountered: #<DRb::DRbConnError: druby://localhost:43229 - #<Errno::ECONNREFUSED: Connection refused
- connect(2)>>
backtrace:
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:736:in `rescue in block in open'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:730:in `block in open'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:729:in `each'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:729:in `open'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1191:in `initialize'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1171:in `new'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1171:in `open'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1087:in `block in method_missing'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1105:in `with_friend'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1086:in `method_missing'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1074:in `respond_to?'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/run_strategy/forking.rb:10:in `block in run'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/forker.rb:21:in `block in initialize'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/forker.rb:18:in `fork'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/forker.rb:18:in `initialize'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/run_strategy/forking.rb:9:in `new'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/run_strategy/forking.rb:9:in `run'
/usr/local/rvm/gems/ruby-1.9.1-p378/gems/spork-0.8.1/lib/spork/server.rb:47:in `run'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1558:in `perform_without_block'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1518:in `perform'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1592:in `block (2 levels) in main_loop'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1588:in `loop'
/usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/drb/drb.rb:1588:in `block in main_loop'


> /script/about:
About your application's environment
Ruby version              1.9.1 (i686-linux)
RubyGems version          1.3.6
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Application root          /home/devis/tmp/rails
Environment               development
Database adapter          sqlite3
Database schema version   0

> ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]


> gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
authlogic (2.1.3)
authlogic-oid (1.0.4)
configuration (1.1.0)
crack (0.1.6)
factory_girl (1.2.3)
ffi (0.6.3)
foreign_keys (2.0.0)
gemcutter (0.5.0)
heroku (1.8.3)
hoe (2.5.0)
httparty (0.5.2)
json_pure (1.2.3)
launchy (0.3.5)
macaddr (1.0.0)
mime-types (1.16)
mysqlplus (0.1.1)
net-ping (1.3.2)
net-ssh (2.0.19)
rack (1.0.1)
rack-openid (0.2.3)
rails (2.3.5)
rake (0.8.7)
remarkable (3.1.13)
remarkable_activerecord (3.1.13)
remarkable_rails (3.1.12)
rest-client (1.3.1)
rr (0.10.0)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-openid (2.1.7)
rubyforge (2.0.4)
rubygems-update (1.3.6)
russian (0.2.5)
spork (0.8.1)
sqlite3 (0.0.8)
test-unit (1.2.3)
uuid (2.1.0)
will_paginate (2.3.12)








Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-06-22 04:38
Sender: Daniel Berger

I've released net-ping 1.3.3 and Ruby 1.9.2 is out now I think.
Are you still seeing this error?

Regards,

Dan
Date: 2010-03-16 17:06
Sender: Devis Clark

I tried ruby 1.9.1p420 (2010-02-04 revision 26571) [i686-
linux]. The problem is repeated.

I'm not sure and confused too ;) but i think trouble in net-
ping, because Ruby Drb work without him. May be having problems 
when class Net::Ping loading and something overload.

Sorry for my english.
Date: 2010-03-16 00:26
Sender: Daniel Berger

I'm confused. What does this have to do with net-ping exactly?

Regards,

Dan

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item