Skip to content

Connection refused on AWS works fine locally on osx and Linux #63

@brentgreeff

Description

@brentgreeff

This is probably not an issue with your fine software, but I am unable to figure out where
the problem is coming from.
The error I get is the following.

druby://ci.companyx.co.uk:38318 - #<Errno::ECONNREFUSED: Connection refused - Connection refused> (DRb::DRbConnError)
(druby://127.0.0.1:40856) -e:1
./features/step_definitions/web_steps.rb:20:in `/^(?:|I )am on (.+)$/'

I have writen a simple drb server bound to the address:

druby://127.0.0.1:40856

This seems to work fine.
If on the other hand I dont specify a port and let DRb find one on its own,
then this does not work, I get a timeout.

If I try and bind to the other address:

druby://ci.companyx.co.uk:38318

/drb.rb:861:in `initialize': Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL)

The actual error above that I see during test runs is slightly different:

ECONNREFUSED.

There is probably something in the environment, but I was wondering if
you can point me in the right direction?

Help much appreciated.

Thanks
-Brent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions