balintant balintant - 1 month ago 14
Node.js Question

Supervisor on Debian Wheezy: another program is already listening on a port that one of our HTTP servers is configured to use

When I run

service supervisor start
I run into the following error:

Starting supervisor: 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


Content of /var/log/superuser/supervisord.log:

2014-08-04 16:25:45,891 CRIT Supervisor running as root (no user in config file)
2014-08-04 16:25:45,891 WARN Included extra file "/etc/supervisor/conf.d/com.domain.subdomain.conf" during parsing


Good-to-know-stuff:

- I use Debian Wheezy on a Digital Ocean server.

- I have tried to check the ports supervisor uses in a clean Vagrant box with the same specs, but I have got the same errors.

How could I check which port is the source of this error?

Answer

I solved my problem by unlinking the .sock file.

sudo unlink /var/run/supervisor.sock

If this does not help you should check and unlink the file at /tmp/supervisor.sock.