Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unix:///tmp/supervisor.sock no such file [closed]

Using Ubuntu 16.04 LTS to deploy my python app. Configured everything and the app is running manually. I want to automate it with supervisor, I have installed supervisor and configured it. But if I run:

Supervisor config file:

; supervisor config file

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

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

supervisorctl reread I end up with unix:///tmp/supervisor.sock no such file

But supervisord status is running,

Anyone having an idea, please.

like image 796
Joseph Daudi Avatar asked Aug 30 '17 09:08

Joseph Daudi


4 Answers

Running this command sudo service supervisord restart solved my issue.

Some answers suggest re-installation, which is essentially doing this

like image 87
Fermat's Little Student Avatar answered Nov 18 '22 08:11

Fermat's Little Student


Finally solved it by reinstalling supervisor after deleting all configuration files in /etc/supervisor/conf.d/ this did the trick.

like image 26
Joseph Daudi Avatar answered Nov 18 '22 10:11

Joseph Daudi


I had the same problem. After reading the man supervisorctl manual I realized the default file is /etc/supervisord.conf which in ubuntu is at /etc/supervisor/supervisord.conf. I created a symlink using:

sudo ln -s  /etc/supervisor/supervisord.conf /etc/supervisord.conf

This fixed my problem.

like image 10
mcgyver Avatar answered Nov 18 '22 08:11

mcgyver


Reason of getting this: There is multiple reasons, what I found is that my supervisor was got corrupted due to the server going down continuously by power tripping.

solution: Remove the supervisor first and then reinstall it.

Steps:

sudo apt-get remove supervisor

sudo apt-get remove --auto-remove supervisor

sudo apt-get purge supervisor

sudo apt-get purge --auto-remove supervisor

Link for the above can be found here :

https://www.howtoinstall.co/en/ubuntu/trusty/supervisor?action=remove

like image 5
ajay kumar prajapati Avatar answered Nov 18 '22 09:11

ajay kumar prajapati