Forum: Rails deployment Rails crashes when running more than 1 instance.

Posted by Tim Baas (mnrkaktus)
on 2010-06-08 14:22
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
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ab8000
read(4,
"t\341\"\220\10\220\320\r\377k#O*9B\276D\217\7\243,8\332\36\320\342&\267\301K\315M"...,
4096) = 512
close(4)                                = 0
munmap(0xb7ab8000, 4096)                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 4
bind(4, {sa_family=AF_FILE,
path="/tmp/passenger.18041/backends/backend.dOEikAiQ0A3ayNPKjlCvkSPB6MsONoe0OImt8FLzU2vKpRCZcM20V1MRnTLP0WSgTMZMD"...},
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!

Tim
Posted by Pirogov Eugene (gmile)
on 2010-06-08 21:37
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...
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.