Supervisor sock file missing
Solution 1:
This happens to me when the physical machine reboots. My machines run Ubuntu, ranging from 12.04 to 16.04. I resolve it by restarting supervisor as a service.
sudo service supervisor stop
sudo service supervisor start
(This somehow works a lot better than simply using 'restart')
Obviously this is not an ideal fix if you depend on Supervisor to start other programs for you without needing to be restarted after every reboot. I am currently looking into systemd
like others suggested.
Edit: If you are on Ubuntu 16.04, this answer might fix all your problem as it did mine. You should 'enable' systemd to start supervisord. https://unix.stackexchange.com/a/291098
Solution 2:
Here is in my case. Let say the error is unix:///var/run/supervisord.sock no such file
when typing this command sudo supervisorctl status
So my solution is:
- Open supervisor config file
sudo nano /etc/supervisor/supervisord.conf
- Check the line where serverurl of supervisorctl path pointed.
[supervisorctl]
serverurl=unix:///var/run/supervisord.sock ; use a unix:// URL for a unix socket
- Change path serverurl to
unix:///var/run/supervisor.sock
. See the difference of supervisord and supervisor - Restart supervisor
service supervisor restart
- Check status supervisor
sudo service supervisor status
- Check again if error is still present
sudo supervisorctl status
if so, try delete your config in/etc/supervisor/conf.d/ ...
or reinstall supervisor