Address already in use

Eric Wong normalperson at yhbt.net
Mon Jun 25 20:28:13 UTC 2012


Manuel Palenciano Guerrero <mpalenciano at gmail.com> wrote:
> Hello there,
> 
> I seem to have a problem with unix-sockets, and cannot see many people with the same situation when googling.
> 
> The problem is when upgrading (USR2 + QUIT) our applications. I get the following error very frequently but not always.
> 
> E, [2012-06-21T11:40:46.386486 #29401] ERROR -- : adding listener failed addr=/tmp/unicorn.app.sock (in use)

You should've seen an INFO message saying something like:

   inherited addr=/tmp/unicorn.app.sock fd=...

in your logs.

Can you share your unicorn config?  Are you using a before_exec hook
at all and could that hook be clobbering ENV["UNICORN_FD"]?


More information about the mongrel-unicorn mailing list