'Cucumber feature' fails with Connection refused error.

926 views
Skip to first unread message

khezr

unread,
Dec 21, 2010, 6:17:23 PM12/21/10
to Cukes
Hi all,

I'm very new to cucumber and am having difficulties running cucumber.
I used to run 'cucumber features' command in RAILS_ROOT and everything
was fine. Today I'm working from home and all I get by running the
command is :

Connection refused - connect(2) (Errno::ECONNREFUSED)
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
560:in `initialize'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
560:in `open'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
560:in `connect'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/timeout.rb:53:in
`timeout'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/timeout.rb:
101:in `timeout'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
560:in `connect'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
553:in `do_start'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
542:in `start'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
1035:in `request'
/home/maryam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:
845:in `post'
./vendor/plugins/geocoder/lib/geocoder.rb:181:in `send'
./vendor/plugins/geocoder/lib/geocoder.rb:181:in `fetch_coordinates'
./vendor/plugins/geocoder/lib/geocoder.rb:178:in `fetch_coordinates'
./vendor/plugins/geocoder/lib/geocoder.rb:191:in `fetch_coordinates!'
./features/step_definitions/factory_girl_steps.rb:3
./features/step_definitions/factory_girl_steps.rb:2:in `each'
./features/step_definitions/factory_girl_steps.rb:2:in `/^the
following (.+) records?$/'
features/manage_foods.feature:8:in `Given the following food records

Here are my installed gem versions:
capybara (0.4.0)
celerity (0.8.5)
cucumber (0.9.2)
cucumber-rails (0.3.1)
culerity (0.2.12)
database_cleaner (0.6.0)
factory_girl (1.3.2)
geokit (1.5.0)
gherkin (2.3.2, 2.2.9)
httparty (0.6.1)
nokogiri (1.4.4)
rails (2.3.5)
rsolr (0.12.1)
rspec (1.3.1, 1.3.0)
rspec-core (2.3.0, 2.0.0)
rspec-expectations (2.3.0, 2.0.0)
rspec-mocks (2.3.0, 2.0.0)
rspec-rails (1.3.3, 1.3.2)
selenium-client (1.2.18)
selenium-webdriver (0.1.1)
sunspot (1.1.0)
sunspot_rails (1.1.0)
webrat (0.7.1)

Does it have anything to do with the solr server? I'm sure the server
is started. Is it related to my network proxy/firewall settings? Any
help would be greatly appreciated.

Thanks,
Khezr

Rob Hunter

unread,
Dec 22, 2010, 12:33:12 AM12/22/10
to cu...@googlegroups.com
On 22 December 2010 10:17, khezr <mar...@foodtree.com> wrote:
> I'm very new to cucumber and am having difficulties running cucumber.
> I used to run 'cucumber features' command in RAILS_ROOT and everything
> was fine. Today I'm working from home and all I get by running the
> command is :
>
> Connection refused - connect(2) (Errno::ECONNREFUSED)
> .../ruby-1.8.7-p302/lib/ruby/1.8/net/http.rb:560:in `initialize'
...
> ./vendor/plugins/geocoder/lib/geocoder.rb:181:in `fetch_coordinates'
...
> ./features/step_definitions/factory_girl_steps.rb:3
...

> features/manage_foods.feature:8:in `Given the following food records
>
>
> Does it have anything to do with the solr server? I'm sure the server
> is started. Is it related to my network proxy/firewall settings? Any
> help would be greatly appreciated.

It looks like your plugin "geocoder" is failing to "fetch coordinates"
from an HTTP server. Make sure that service is running.
I don't know what the "geocoder" plugin is, but hopefully you do.

It doesn't look like anything Cucumber-specific.

Good luck!

--
Rob Hunter
Ninja for Hire

Reply all
Reply to author
Forward
0 new messages