I have supervisor setup to manage a few processes. It works perfectly fine when I boot my server, however when I stop it and try to start it again it fails and give's me this error msg:

 * Starting Supervisor daemon manager...
Error: Another program is already listening on a port that one of our HTTP servers is configured to use.  Shut this program down first before starting supervisord.
For help, use /usr/bin/supervisord -h
   ...fail!

I'm running nginx on port 80 and 4 web servers on ports 8000, 8001, 8002, 8003

Does anyone have any idea of what is going on?

When I reboot everything works fine.

link|improve this question
feedback

2 Answers

Just ran into this as well. I fixed it by doing:

sudo unlink /tmp/supervisor.sock

This .sock file is defined in /etc/supervisord.conf's [unix_http_server]'s file config value (default is /tmp/supervisor.sock).

Hope this helps someone in the future.

link|improve this answer
@sdolan Wow it helped me! I removed /var/run/supervisor.sock and got rid of error on Debian Stable – greenmang0 Aug 4 '10 at 14:08
1  
run a find / -name supervisor.sock before you run unlink - on debian systems it sits in /var/run/, but your unlink solution worked for me – AndrewPK Jun 13 '11 at 21:55
feedback

I'd use lsof to find out what process is listening on those ports.

lsof -i tcp | grep LISTEN

Once you've worked out what process it is, that's half the battle.

link|improve this answer
Thanks, I will try that – Catalina Mar 1 '10 at 21:28
feedback

Your Answer

 
or
required, but never shown