python - supervisorctl 启动报错
天蓬老师
天蓬老师 2017-04-17 17:29:09
0
3
1196

在阿里云部署,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也不行呢?求助解决方法!

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
阿神

Judging from the error message, there should be a problem with the format of the supervisord.conf file, so a Parsing error is prompted. The error occurs at line 140 and column 8627.

阿神

You are the root user, so it should not be a permissions problem
How about echo_supervisord_conf > /etc/supervisord.conftry restoring to the default configuration

黄舟

Take a look at the configuration of line 140 and the lines above and below in your supervisord.conf. It is obviously an error in file parsing. It shouldn't be a permissions issue.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template