-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unix:///var/run/supervisor.sock no such file #480
Comments
You shouldn't have to do |
Same thing: vagrant@homestead:/etc/supervisor$ sudo service supervisor restart |
Anyone knows about this? |
Is supervisord running?
If it's not, you need to figure out why; maybe look at If it is running, then probably the config is not as expected. I would try using
Make sure that |
Hey This file does not exist on my computer: /var/run/supervisor.sock Here is the code you sent: vagrant@homestead:/etc/supervisor$ pgrep -fl supervisor vagrant@homestead:/etc/supervisor$ sudo lsof -c supervisord | egrep 'COMMAND|sock' This is /etc/supervisor/supervisord.conf vagrant@homestead:/etc/supervisor$ cat supervisord.conf [unix_http_server] [supervisord] ; the below section must remain in the config file for RPC [supervisorctl] ; The [include] section can just contain the "files" setting. This [include] |
This comment has been minimized.
This comment has been minimized.
Same problem here, don't know how to solve it yet. :( |
Same problem here |
This should solve this problem:
|
Make sure you have a [unix_http_server] and [rpcinterface:supervisor] section in your conf file |
@rodrigobendia it doesn't work. |
@rodrigobendia I'm having mixed results with those commands as well. As far as I can see, they work. I'm just working inside a Docker container and something keeps killing the |
@rodrigobendia works for me. Thanks! |
I found the fix. Please try. please add below 2 section to your supervisord.conf - [unix_http_server] [rpcinterface:supervisor] Thanks |
@rex did you figure out why the the sock file was being killed inside the docker container? |
@codingwithoutcomments I didn't, unfortunately. I was working on it for a contract gig at the time that has since ended and I no longer have access to the machine in question. :-/ |
may be you conf file raise this error. you should check you conf |
I have had the same problem both on my After viewing the issues and checking the command outputting on my server. It should be caused by the permissions of directory. The configure I used before the outputting of command And I got
Now I configure it to Hope this will be helpful |
Still getting this problem in docker with Ubuntu 14.04 and supervisord 3.0b2 This issue also seems to be a duplicate of: I'm going to open a new issue since both are closed. |
Please do not open duplicate issues. |
@mnaberez I'll just post this here then: Test system: Clean Ubuntu 14.04 install with supervisord 3.0b2 inside a docker container. To save time:
supervisor.log:
conf.d/supervisord.conf:
|
The configuration file above is missing a |
@mnaberez Sorry I wasn't clearer. The supervisord config file at /etc/supervisor/supervisord.conf is the default one. That's just the one in conf.d (it has the same name cause that's the only way I could get supervisor to see it).
|
If this configuration was being used, your log file should contain these lines:
The first line is logged when Since these lines are absent from your log, it does appear that |
@mnaberez You're right. That was the problem. I had accidentally explicitly specified the config file as the one in conf.d, which apparently leads to the above also. facepalm Thanks so much for your help! |
yes itis! |
@rodrigobendia it works for me.. thanks |
Why is this being closed with work arounds but no real fix? Does not work here as well (Debian 8). |
There's no single fix because there are many reasons why the file might not be found, and we can't control most of them: |
In my situation, this is worked for me: |
I had the same problem and after I ran |
Have you tried to re-install supervisor? |
Yes that was my third option, but I solved the problem deleting the bad
entry from the conf.d folder. Now is working fine
…On Mon, Nov 25, 2019, 11:37 PM Nick ***@***.***> wrote:
I had the same problem and after I ran supervisord the log showed that
the problem was coming from an old service that supervisor was trying to
start but I deleted that program folder time ago, but not from the
supervisor conf.d/ folder. so it was trying to start a program who didn't
exist, and this caused the problem.
Have you tried to re-install supervisor?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#480?email_source=notifications&email_token=AHJE6QSO3UKMKQRTD2ZLHZLQVSRW7A5CNFSM4ATE3FXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFEVY5A#issuecomment-558455924>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJE6QR5Z6B4RDQOGVLCQ33QVSRW7ANCNFSM4ATE3FXA>
.
|
After trying every other suggestion on this page, removing and reinstalling is what finally worked for me. I wonder if there was briefly a bad package out there and that's what I had? |
Remove config files |
You may have another supervisord.conf file somewhere in your file system. For me I found one at |
|
If I set error
This is the problem I encountered. |
After a big pain, by following exactly what they say here works First remove your previous supervisor installation
Then do: https://ekn.me/2019-11-05/how-to-use-laravel-queue-worker-with-supervisor I suspect the issue was on the conf file name, seems that needs to be the same as the name of your program?? mmm |
Not all heroes wear capes. |
For me I had this issue with no error output in the log file on supervisord version 3.3.1. It turned out that I had a |
|
Solved my problem |
Same here, I was using
Updated with a fixed log name solved the problem. Maybe other config variables do not accept dynamic values. |
The syntax is |
Since this issue thread is still pretty active, I'll just add my case and hope it helps someone. At first I was trying to use My
I didn't realize that this was for docker. See article
So to restart the services in supservisord.conf, I just had to |
This worked for me tnx! |
What helped me solve it was that one of the programs in
...which revealed how it tries to start. So I just paste that in manually:
This time it did tell me what the error was. It was a permission problem with one of the conf'ed apps.
worked. |
The error message After a while I found out that in one of my config files I created the directory. Supervisor started working. I'm quite sad about this. Maybe supervisor could check things like this and report what's actually wrong with the config? |
I was able to resolve this issue by stopping and starting supervisor. sudo service supervisor stop |
Environment : ubuntu 20.04 in docker container I have same issue, but it resolve by below code in supervisord.conf :
provide help to those in need. |
So I lost like a day on this problem and finally solved it :)) |
Every year I fought this problem which every time forgot. |
Sometimes it happens if directory where are you logging to is not exists. Check |
Here is new solutions! I solved by adding chmod=0777 to [supervisorctl] like below [supervisorctl] serverurl=unix:///var/run/supervisor.sock chmod=0777 Now it worked for me just to help anyone with this same issue. Thank you |
Same error. Figured out that my stderr_logfile and stdout_logfile directory did not exist. Created the logfile directory, stopped supervisord, started it, and everything worked fine. |
I don't seem to be able to get supervisor to run! Here are the details:
vagrant@homestead:/etc/supervisor$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
vagrant@homestead:/etc/su
vagrant@homestead:/etc/supervisor$ sudo apt-get install supervisor
Reading package lists... Done
Building dependency tree
Reading state information... Done
supervisor is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
vagrant@homestead:/etc/supervisor$ sudo service supervisor restart
Restarting supervisor: supervisord.
vagrant@homestead:/etc/supervisor$ sudo supervisord
/usr/lib/python2.7/dist-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
vagrant@homestead:/etc/supervisor$ sudo supervisorctl
unix:///var/run/supervisor.sock no such file
supervisor> help
default commands (type help ):
add clear fg open quit remove restart start stop update
avail exit maintail pid reload reread shutdown status tail version
supervisor> reread
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 224
supervisor> update
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 224
Here are some more details:
vagrant@homestead:/etc/supervisor$ sudo apt-cache show supervisor
Package: supervisor
Priority: extra
Section: universe/admin
Installed-Size: 1485
Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com
Original-Maintainer: Qijiang Fan fqj1994@gmail.com
Architecture: all
Version: 3.0b2-1
Depends: python, python-meld3, python-pkg-resources (>= 0.6c7)
Filename: pool/universe/s/supervisor/supervisor_3.0b2-1_all.deb
Size: 313972
MD5sum: 1e5ee03933451a0f4fc9ff391404f292
SHA1: d9dc47366e99e77b6577a9a82abd538c4982c58e
SHA256: f83f89a439cc8de5f2a545edbf20506695e4b477c579a5824c063fbaf94127c1
Description-en: A system for controlling process state
Supervisor is a system for controlling and maintaining process state,
similar to what init does, but not intended as an init replacement.
.
It will manage individual processes or groups of processes that
need to be started and stopped in order, and it is possible to
control individual process state via an rpc mechanism, thus allowing
ordinary users to restart processes.
Description-md5: b18ffbeaa3a697e8ccaee9cc104ec380
Homepage: http://supervisord.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Thanks
The text was updated successfully, but these errors were encountered: