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
Kamil Kukura <kamil.kukura at 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
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. >