Discussion:
[Supervisor-users] Supervisor will not work on ubuntu 12.04 on aws
David Montgomery
2013-11-15 06:57:16 UTC
Permalink
Hi,

I am trying to figure out why supervisor will not work under Ubuntu 12.04
and rather concerned

I use pip to install.

I place the below in /etc/supervisord.conf

[include]
files = *.supervisor

[supervisord]
pidfile = /var/run/supervisord.pid
nodaemon=false

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

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

[rpcinterface:supervisor]
supervisor.rpcinterface_factory =
supervisor.rpcinterface:make_main_rpcinterface

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




I place conf files in etc/supervisor/conf.d/


start supervisor and wow...nothing is running.

***@ip-10-129-29-72:/etc# service supervisor status
is not running.
Starting supervisor:
/usr/local/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 '
Unlinking stale socket /var/run/supervisord.sock
supervisord.


Why will supervisor not run?
Jens Rantil
2013-11-19 15:01:06 UTC
Permalink
Hi David,

I didn't know `pip install supervisor` would install supervisor service on
Debian. Maybe it is so nowadays, I don't know.

That said, why happens when you try to start supervisor in your terminal
bypassing the Debian `service` framework?

Cheers,
Jens
Post by David Montgomery
Hi,
I am trying to figure out why supervisor will not work under Ubuntu 12.04
and rather concerned
I use pip to install.
I place the below in /etc/supervisord.conf
[include]
files = *.supervisor
[supervisord]
pidfile = /var/run/supervisord.pid
nodaemon=false
[supervisorctl]
serverurl=unix:///var/run/supervisord.sock ; use a unix:// URL for a unix
socket
[unix_http_server]
file = /var/run/supervisord.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory =
supervisor.rpcinterface:make_main_rpcinterface
[include]
files = /etc/supervisor/conf.d/*.conf
I place conf files in etc/supervisor/conf.d/
start supervisor and wow...nothing is running.
is not running.
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 '
Unlinking stale socket /var/run/supervisord.sock
supervisord.
Why will supervisor not run?
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Matthew Hall
2013-11-19 19:00:10 UTC
Permalink
Whatever is causing the problem is not related to Ubuntu 12.04 LTS. Because I
have used it that way for months in my company and it works fine on my machine
and a few other machines. So it would be a good idea to back up a few steps
and try looking at how it loads with strace and what kind of issues might be
present in the configuration files, etc.

Matthew.
Chris Watts
2013-11-19 19:10:35 UTC
Permalink
Thank you,

This is not an area i have a lot of expertise in. its very strange that the
handlers get events for when the handlers themselves enter running mode,
but after that they stop. its almost like they are not being reset back to
ready but i can't figure out how.
Post by Matthew Hall
Whatever is causing the problem is not related to Ubuntu 12.04 LTS. Because I
have used it that way for months in my company and it works fine on my machine
and a few other machines. So it would be a good idea to back up a few steps
and try looking at how it loads with strace and what kind of issues might be
present in the configuration files, etc.
Matthew.
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Loading...