Rails crashes when running more than 1 instance

Hello everyone,

I’m new here, and I wasn’t sure where to put this question.
So forgive me if this is the wrong place.

The problem I have is that when I open a second, different, rails app on
one server, the ruby proces crashes. When I checkout the ruby process
this is the loop it hangs in:

rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64("/tmp/passenger.18041", {st_mode=S_IFDIR|S_ISUID|0311,
st_size=4096, …}) = 0
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=512, …}) = 0
0) = 0xb7ab8000
4096) = 512
close(4) = 0
munmap(0xb7ab8000, 4096) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 4
bind(4, {sa_family=AF_FILE,
110) = -1 EADDRINUSE (Address already in use)
close(4) = 0

I’ve searched google for “EADDRINUSE (Address already in use)” but I
can’t find a solution… So I hope anyone has experienced this before,
and solved it… If you need some more information, please ask for it.

Thanks in advance!


Are you running another instance of app with new port? Try:
$ script\server -p 3001
for instance.

Tim Baas wrote:

I’ve searched google for “EADDRINUSE (Address already in use)” but…