Solution to the error "Another program is already listening on a port that one of our HTTP servers is configured to use" in Supervisor.

Author
By Darío Rivera
Posted On in Supervisor

Installing supervisor is relatively simple. However, although it is not very common, it may happen that when installing supervisor we come across one or another error when trying to start the daemon that manages the processes. One of these errors may be:

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.

This can basically be interpreted as the supervisor daemon already tried to start but failed and left a port in use. What you must do is identify the process that is currently in progress like this:

$ ps -ef | grep supervisord
root       10138       1  0 09:33 ?        00:00:00 /usr/bin/python /usr/bin/supervisord
fermius    11512    9115  0 09:44 pts/2    00:00:00 grep supervisord

Once this is done, you must kill the process associated with supervisor with the PID number.

sudo kill -s SIGTERM 10138

After this, you can calmly start the daemon again.

sudo supervisord -c /etc/supervisord.conf

Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.