unable to run supervisor

Asked by Jose

After installing supervisor(sudo apt-get install supervisor), I tried
$ echo_supervisord_conf
I get the following

Traceback (most recent call last):
  File "/usr/bin/echo_supervisord_conf", line 9, in <module>
    load_entry_point('supervisor==3.0a8', 'console_scripts', 'echo_supervisord_conf')()
  File "/usr/lib/pymodules/python2.6/supervisor/confecho.py", line 19, in main
    config = pkg_resources.resource_string(__name__, 'skel/sample.conf')
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 875, in resource_string
    self, resource_name
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1148, in get_resource_string
    return self._get(self._fn(self.module_path, resource_name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1275, in _get
    stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/pymodules/python2.6/supervisor/skel/sample.conf'

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu supervisor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

i think you need: /usr/lib/pymodules/python2.6/supervisor/skel/sample.conf

from somewhere or to make the file yourself using man pages and the like

Revision history for this message
Jose (okycastro) said :
#2

Thank you. But down you think that ubuntu package should contains all the necessary things to run, so you can follow the manual? Getting things running will be a lot easier. I just want to raise the flag that someone new to supervisord will have a hard time(like me) getting things if all the things that are in the manual are not there.

I will keep looking for that sample.conf file. But I wish it was part of the package itself

Thank you

Revision history for this message
Josh Lind (joshuaklind) said :
#3

This really should get created automatically. But...

gunzip /usr/share/doc/supervisor/examples/sample.conf.gz
mv /usr/share/doc/supervisor/examples/sample.conf /usr/lib/pymodules/python2.6/supervisor/skel/sample.conf

Can you help with this problem?

Provide an answer of your own, or ask Jose for more information if necessary.

To post a message you must log in.