0

I have a problem with supervisor.

My supervisord.conf looks like:[unix_http_server]

file=/run/supervisor/supervisor.sock

[supervisorctl] serverurl=unix:///run/supervisor/supervisor.sock

[supervisord] nodaemon=true user=root

When I try to start it using the command service supervisor start

I get info logs:

2022-06-29 14:59:59,884 INFO Set uid to user 0 succeeded
2022-06-29 14:59:59,892 INFO RPC interface 'supervisor' initialized
2022-06-29 14:59:59,892 INFO supervisord started with pid 5774

but then when I run the command: supervisorctl status I get the info log: unix:///var/run/supervisor.sock no such file

I try to switch to the nodeamon=false and it works as expected but I read then in the docker container it is recommended to use flag true.

I run my docker image in Azure App Service for Containers.

Do you have any idea what can be wrong?

1 Answers1

0

sudo nano /etc/supervisor/supervisord.conf then add [unix_http_server] file=/var/run/supervisor.sock chmod=0777 Also make sure to change from [supervisorctl] serverurl=unix:///run/supervisor/supervisor.sock

to

serverurl=unix:///var/run/supervisor/supervisor.sock chmod=0777

That's it!