Bug 1000190 - Supervisor unix HTTP server socket doesn't get created
Summary: Supervisor unix HTTP server socket doesn't get created
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: supervisor
Version: el6
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Francisco Javier Tsao Santín
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-22 22:00 UTC by Andy Shinn
Modified: 2020-03-30 18:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-30 18:55:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andy Shinn 2013-08-22 22:00:48 UTC
Description of problem:

Running older version of supervisor which has a broken unix HTTP server socket.


Version-Release number of selected component (if applicable):

2.1-8.el6


How reproducible:

Install supervisor and try to use the supervisorctl command.


Steps to Reproduce:
1. Install supervisor (sudo yum install supervisor)
2. Ensure the /etc/supervisord.conf has a configuration for unix HTTP server:

[unix_http_server]
file=/var/run/supervisor.sock

3. Start supervisor (sudo service supervisord start)
4. Attempt to invoke the supervisorctl utility (sudo supervisorctl status)

Actual results:

error: <class 'socket.error'>, [Errno 2] No such file or directory: file: <string> line: 1


Expected results:

worker1                RUNNING
worker2                STARTING
worker3                STOPPED

Additional info:

The socket file doesn't appear to get created for the unix HTTP server:

[vagrant@worker-vagrant ~]$ sudo ls /var/run/supervisor.sock
ls: cannot access /var/run/supervisor.sock: No such file or directory

There does not appear to be any major functional differences from 2.1 to 3.0 other than many added configuration options (I'm using 2.1 configurations on 3.0). Can we upgrade the EPEL package to the recently released 3.0 version?

I was able to rebuild the RPM to the 3.0 version with minimal changes (added explicit /etc/supervisord.conf to init script, require python-setuptools).

Comment 1 Francisco Javier Tsao Santín 2020-03-30 18:55:59 UTC
The [unix_http_server] section is part of supervisor 3:
http://supervisord.org/upgrading.html#upgrading-supervisor-2-to-3

You must configure the http_port option in the [supervisord] section of the config file. The default config file:

[supervisord]
http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)

Closing this ticket... 7 years later :-D


Note You need to log in before you can comment on or make changes to this bug.