[Solved]-Supervisor โ€“ Can't start supervisorctl as root or user (User is set in config)

15๐Ÿ‘

โœ…

I added my username to the superisord.conf file under the [unix_http_server] section like so:

[unix_http_server]
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0700                       ; sockef file mode (default 0700)
chown=appuser:supervisor        ;(username:group)

This seemed to work- time will tell if it continues working after I manage solve the rest of the supervisor issues.

๐Ÿ‘คAdam Starrh

6๐Ÿ‘

Adding more to Adamโ€™s solution.

you need to give the group permissions to read/write to the socket too.

[unix_http_server]
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0770                       ; sockef file mode (default 0700)
chown=appuser:supervisor        ;(username:group)

0๐Ÿ‘

I tried the provided answers but the problem was not solved.
Finally, I used ; to comment the following line, and the problem was solved.

; logfile=/tmp/supervisord.log ; main log file; default $CWD/supervisord.log
๐Ÿ‘คs.abbaasi

Leave a comment