Supervisor HTTP Server Port Issue
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.
Just ran into this as well. I fixed it by doing either of these:
sudo unlink /tmp/supervisor.sock
sudo unlink /var/run/supervisor.sock
This .sock
file is defined in /etc/supervisord.conf [unix_http_server]
file config value (default is /tmp/supervisor.sock
or /var/run/supervisor.sock
).
Hope this helps someone in the future.
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.