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,
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.
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.
in my case, the solution was the following: for some reason, the loopback was down, as could be seen from ifconfig returning nothing.
# ifup lo
was sufficient to obtain
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4052 (3.9 KiB) TX bytes:4052 (3.9 KiB)
Then, the web server worked.
当我已经在另一个窗口的同一端口上运行了杂种时,我通常会看到这种情况
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.