supervisorctl cannot reach supervisord because the control socket is missing
Fix it fast
Most common cause, 1 of 3supervisord is not running
Enable and start the service, then load your program files the way the Laravel queue docs describe.
sudo systemctl enable --now supervisor
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"Short answer
"unix:///run/supervisor.sock no such file" means supervisorctl looked for supervisord's control socket and nothing was there, so it reports the daemon as not running. Usually supervisord is stopped, it failed to start because a program file such as a Laravel queue worker config is invalid, or supervisorctl reads a different config. Start the service and read its log. Applies to Supervisor 4.x.
Which cause do you have?
Ask systemd whether the daemon is running. inactive or disabled points to the first cause, failed or a restart loop to the second, and active (running) to the third.
systemctl status supervisor --no-pagerThen find the line you see in this list and open its fix:
- 1supervisord is not running
systemctl status shows inactive (dead), or the unit is disabled and the machine was rebooted - 2supervisord exits at start because a program file is invalid
systemctl shows failed or keeps restarting, and the journal names a file under /etc/supervisor/conf.d - 3supervisorctl reads a different config file than the running daemon
supervisord is active and /run/supervisor.sock exists, yet the error names another path, or which -a supervisorctl lists more than one binary
What does the error look like?
unix:///run/supervisor.sock no such filesudo supervisorctl status prints no such file while queue workers have stopped
Cause 1 of 3
supervisord is not running
You seesystemctl status shows inactive (dead), or the unit is disabled and the machine was rebooted
Check
supervisorctl prints <serverurl> no such file when connecting to the UNIX socket fails with file not found, and it exits with the not-running status. The socket only exists while supervisord runs, so a stopped or never-started daemon gives exactly this line.
systemctl is-enabled supervisor
ls -l /run/supervisor.sockFix
Enable and start the service, then load your program files the way the Laravel queue docs describe.
sudo systemctl enable --now supervisor
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start "laravel-worker:*"Verify
supervisorctl lists your programs as RUNNING.
sudo supervisorctl statusConfirmed by raw.githubusercontent.com
Cause 2 of 3
supervisord exits at start because a program file is invalid
You seesystemctl shows failed or keeps restarting, and the journal names a file under /etc/supervisor/conf.d
Check
When the daemon dies during start-up it never creates the socket, so supervisorctl reports the same missing file. A typo in a [program:...] section, such as a worker file copied from the Laravel docs and edited by hand, is enough. Running supervisord in the foreground with the package's own config shows the parse error on screen.
sudo journalctl -u supervisor -n 50 --no-pager
sudo systemctl stop supervisor
sudo supervisord -n -c /etc/supervisor/supervisord.confFix
Correct the file the error names (press Ctrl+C to leave the foreground run first), then start the service again.
sudoedit /etc/supervisor/conf.d/laravel-worker.conf
sudo systemctl start supervisorVerify
The unit stays active and the socket exists.
systemctl is-active supervisor
ls -l /run/supervisor.sockConfirmed by supervisord.org
Cause 3 of 3
supervisorctl reads a different config file than the running daemon
You seesupervisord is active and /run/supervisor.sock exists, yet the error names another path, or which -a supervisorctl lists more than one binary
Check
Both programs search a list of places for supervisord.conf when -c is not given and take the first file they find. A second Supervisor installed with pip, or a stray /etc/supervisord.conf, can make supervisorctl pick a config whose serverurl points at a socket the packaged daemon never creates.
which -a supervisorctl
ls -l /etc/supervisord.conf /etc/supervisor/supervisord.confFix
Point supervisorctl at the daemon's config explicitly, and remove the duplicate install or the stray file so the default works again.
sudo supervisorctl -c /etc/supervisor/supervisord.conf statusVerify
Plain supervisorctl, without -c, now shows the same program list.
sudo supervisorctl statusConfirmed by supervisord.org
How do I stop it coming back?
- Install Supervisor from one source only (the distribution package on servers) and enable the unit so it starts after every reboot.
- After editing a file in /etc/supervisor/conf.d, run sudo supervisorctl reread before update; reread loads the files without adding, removing or restarting programs, so you see what changed before update applies it.
- Add a deploy check that runs supervisorctl status and fails when it exits non-zero, so a dead daemon is noticed before the job queue backs up.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine on the same stack: Spotless Laundry, EZ Estimater.