Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
supervisorctl shows warning "Supervisord is running as root and it is searching" #741
I suggest adding a warning such as:
The warning appears when
The warning above was due to
Displaying a message to an seasoned end-user about which "automatically detected" configuration file is being used may be a minor annoyance... but the lack of a
If someone really wanted to compromise a system via supervisorctl, they would already know -- and be familiar with -- the default file locations. Security concerns would be better addressed by refusing to start Supervisor if the user is root and the file is not only writeable by root.
It just doesn't make any sense to support automatic detection of 5+ configuration files, but not tell the user which configuration file is being used. If anything, this creates a security issue because any one of a number of files could be the preferred file -- but an administrator may not necessarily know that -- because they have changed an installation from a prepackaged OS version to a pypi/source install.
I just tried this on 3.2.3 and I couldn't duplicate it. It shows the warning when
As mentioned above, the original intention was that warning was shown only for
I think adding some way to get this information would be very reasonable, e.g.
I was getting this through sudo but I went through bash as well
this is on a fresh ubuntu14.04 and installed from pypi via pip; are you using HEAD off the master branch ? I can try that later.
this is installed into a virtualenv, but I can't imagine that affecting this.
I get the error whether or not supervisord is running (though i see the processes if it is running)
No, I used 3.2.3 like you (shown above).
Here's what happens when I install 3.2.3 with
The warning is shown for
It looks like it might be, or some other difference on your system is causing it. If we are able to reproduce it, we can see if there's something we can fix in
changed the title from
Suggestion: "Warn" the name of the configuration file that is loaded if a default is used.
supervisorctl shows warning "Supervisord is running as root and it is searching"
Apr 21, 2016
I migrated from ubuntu 16.04 (from 14.04), I am very confident that the "derive a config file" functionality warrants
this type of notification is already used -
and while it's not necessary when specifying a file:
when not-specifying a file, one would need to check the actual search order for the installed version of supervisor in docs or source code, while a simple notification could suffice