unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Restart with HUP signal can't bind listener
@ 2009-12-02 14:36 Kamil Kukura
  2009-12-02 22:28 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Kamil Kukura @ 2009-12-02 14:36 UTC (permalink / raw)
  To: mongrel-unicorn

I have "preload_app false" in my config, but when trying to restart 
workers with sending HUP to master process Im getting (4 times) the error:

ERROR -- : retrying in 0.5 seconds (4 tries left)
ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
...
...

Complete config file to see here: http://gist.github.com/247235


Thanks in advance,

-- 
Kamil

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Restart with HUP signal can't bind listener
  2009-12-02 14:36 Restart with HUP signal can't bind listener Kamil Kukura
@ 2009-12-02 22:28 ` Eric Wong
  2009-12-08 23:35   ` Kamil Kukura
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2009-12-02 22:28 UTC (permalink / raw)
  To: unicorn list

Kamil Kukura <kamil.kukura@gmail.com> wrote:
> I have "preload_app false" in my config, but when trying to restart  
> workers with sending HUP to master process Im getting (4 times) the 
> error:
>
> ERROR -- : retrying in 0.5 seconds (4 tries left)
> ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
> ...
> ...
>
> Complete config file to see here: http://gist.github.com/247235
>
>
> Thanks in advance,

Hi Kamil,

I can't seem to reproduce this.  Is anything else taking up port
8080 on your box?  Which version of Unicorn is this?

Is there any chance you somehow got two Unicorn masters running?

If you're on Linux, running "netstat -anp | grep :8080" can tell you
what PID is hogging up port 8080.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Restart with HUP signal can't bind listener
  2009-12-02 22:28 ` Eric Wong
@ 2009-12-08 23:35   ` Kamil Kukura
  0 siblings, 0 replies; 3+ messages in thread
From: Kamil Kukura @ 2009-12-08 23:35 UTC (permalink / raw)
  To: mongrel-unicorn

It is running in FreeBSD jail so I finally figured out I had to bind to 
jail's specific IP address, that is in my case:
listen "10.100.10.3:8080"

Dne 2.12.09 23:28, Eric Wong napsal(a):
> I can't seem to reproduce this.  Is anything else taking up port
> 8080 on your box?  Which version of Unicorn is this?
>
> Is there any chance you somehow got two Unicorn masters running?
>
> If you're on Linux, running "netstat -anp | grep :8080" can tell you
> what PID is hogging up port 8080.
>


_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-08 23:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-02 14:36 Restart with HUP signal can't bind listener Kamil Kukura
2009-12-02 22:28 ` Eric Wong
2009-12-08 23:35   ` Kamil Kukura

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).