# Rails crashes when running more than 1 instance

**URL:** <https://www.ruby-forum.com/t/rails-crashes-when-running-more-than-1-instance/189827>\
**Category:** Deployment\
**Created:** [June 8, 2010, 2:22pm UTC](https://www.ruby-forum.com/t/rails-crashes-when-running-more-than-1-instance/189827 "2010-06-08T14:22:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbobker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Post date:** [June 8, 2010, 2:22pm UTC](https://www.ruby-forum.com/t/rails-crashes-when-running-more-than-1-instance/189827/1 "2010-06-08T14:22:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tbobker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Post date:** [June 8, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/rails-crashes-when-running-more-than-1-instance/189827/2 "2010-06-08T21:37:24Z")

</div>

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…
