views:

304

answers:

3

Hi everyone,

I can't start mongrel server. When I have a look at log file, it tells me that the address that I wanted to use is not available. I tried to check if there were some services using that address, but I could not find any.

The error message in log file:

`initialize_without_backlog': Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL)

Any help is appreciated.

Cheers,

A: 

i've usually seen this when I'm already running mongrel on the same port in another window

austinfromboston
+2  A: 

Some other process is using the same port. See the process list and see if you can find another server running.

If you're running linux try ps -A | grep ruby and see if you get any results.

It is also possible that the particular port is blocked by a firewall or some other security software or you need admin privileges.

rohit.arondekar
A: 

I just had this happen to me, using Sinatra as a frontend.

If you put

 set :host, 'some.ip.address.255'

and that IP is wrong, then you will get this error, both with mongrel and with WEBrick.

Change the IP to the IP of the server to remove the error.

mmr