suchen

Heim  >  Fragen und Antworten  >  Hauptteil

python - supervisorctl 启动报错

在阿里云部署,supervisord -c 启动了,进入supervisorctl报错,报错如下:
ConfigParser.ParsingError: File contains parsing errors: /etc/supervisord.conf

[line 39]: '"supervisord.conf" [readonly] 140L, 8627C\n'

[root@t01 conf.d]# chmod 777 /etc/supervisord.conf
[root@t01 conf.d]# supervisorctl
Traceback (most recent call last):
File "/usr/bin/supervisorctl", line 9, in <module>

load_entry_point('supervisor==3.2.3', 'console_scripts', 'supervisorctl')()

File "/usr/lib/python2.7/site-packages/supervisor/supervisorctl.py", line 1276, in main

options.realize(args, doc=__doc__)

File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 1570, in realize

Options.realize(self, *arg, **kw)

File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 306, in realize

self.process_config()

File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 314, in process_config

self.process_config_file(do_usage)

File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 344, in process_config_file

self.read_config(self.configfile)

File "/usr/lib/python2.7/site-packages/supervisor/options.py", line 1587, in read_config

parser.readfp(fp)

File "/usr/lib64/python2.7/ConfigParser.py", line 324, in readfp

self._read(fp, filename)

File "/usr/lib64/python2.7/ConfigParser.py", line 546, in _read

raise e

ConfigParser.ParsingError: File contains parsing errors: /etc/supervisord.conf

[line 39]: '"supervisord.conf" [readonly] 140L, 8627C\n'

我在这些只懂的东西 都改成了 chmod 777 但是还不行。而且我当前是root,求助如何解决,另外 我 kill supervisord kill不掉,是不是因为我启动supervisord的用户没权限,所以即便是 用 root 启动supervisorctl也不行呢?求助解决方法!

天蓬老师天蓬老师2804 Tage vor1190

Antworte allen(3)Ich werde antworten

  • 阿神

    阿神2017-04-17 17:31:09

    从错误信息看应该是supervisord.conf文件格式有问题,所以提示Parsing错误,错误发生在140行,8627列。

    Antwort
    0
  • 阿神

    阿神2017-04-17 17:31:09

    你是root用户,所以应该不是权限问题
    要不先 echo_supervisord_conf > /etc/supervisord.conf恢复成默认配置试试

    Antwort
    0
  • 黄舟

    黄舟2017-04-17 17:31:09

    把你的supervisord.conf中140行及上下几行的配置发出来看看, 很明显是文件解析报错。 应该不是权限的问题。

    Antwort
    0
  • StornierenAntwort