Source: supervisor Version: 3.2.0-1 Severity: important Dear Maintainer,
supervisorctl command can not connect to supervisord with default configuration. % sudo supervisorctl version http://localhost:9001 refused connection But, can connet with -c (--configuration) or -s (--serverurl). % sudo supervisorctl -c /etc/supervisor/supervisord.conf version 3.2.0 % sudo supervisorctl -s unix:///var/run/supervisor.sock version 3.2.0 The problem is that supervisorctl command does not read configuration file (/etc/supervisor/supervisord.conf). Rebuilding package with modified debian/patches/0003-add-etc-supervisor-supervisord.conf-to-searchpath.patch fixes this problem in my environment. -------------------------------------------------------------------------------- From: Qijiang Fan <fqj1...@gmail.com> Date: Fri, 19 Jul 2013 11:43:06 +0800 Subject: add /etc/supervisor/supervisord.conf to searchpath --- supervisor/options.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) Index: supervisor-3.2.0/supervisor/options.py =================================================================== --- supervisor-3.2.0.orig/supervisor/options.py +++ supervisor-3.2.0/supervisor/options.py @@ -100,7 +100,8 @@ class Options: os.path.join(here, 'supervisord.conf'), 'supervisord.conf', 'etc/supervisord.conf', - '/etc/supervisord.conf'] + '/etc/supervisord.conf', + '/etc/supervisor/supervisord.conf'] self.searchpaths = searchpaths self.environ_expansions = {} Index: supervisor-3.2.0/supervisor/tests/test_options.py =================================================================== --- supervisor-3.2.0.orig/supervisor/tests/test_options.py +++ supervisor-3.2.0/supervisor/tests/test_options.py @@ -159,10 +159,11 @@ class OptionTests(unittest.TestCase): def test_searchpaths(self): options = self._makeOptions() - self.assertEqual(len(options.searchpaths), 5) + self.assertEqual(len(options.searchpaths), 6) self.assertTrue('supervisord.conf' in options.searchpaths) self.assertTrue('etc/supervisord.conf' in options.searchpaths) self.assertTrue('/etc/supervisord.conf' in options.searchpaths) + self.assertTrue('/etc/supervisor/supervisord.conf' in options.searchpaths) def test_options_and_args_order(self): # Only config file exists -------------------------------------------------------------------------------- Maybe, following commit causes this problem. http://anonscm.debian.org/cgit/collab- maint/supervisor.git/commit/?id=c0495ea0e47b0f707e60495d7095886e5fd2ffa5 -- System Information: Debian Release: stretch/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)