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

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

天蓬老师
天蓬老师

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

membalas semua(3)
阿神

Berdasarkan mesej ralat, seharusnya terdapat masalah dengan format fail supervisord.conf, jadi ralat Penghuraian digesa Ralat berlaku pada baris 140 dan lajur 8627.

阿神

Anda adalah pengguna akar, jadi ia tidak sepatutnya menjadi masalah kebenaran
Bagaimana pula dengan echo_supervisord_conf > /etc/supervisord.confberbalik kepada konfigurasi lalai dahulu

黄舟

Lihat konfigurasi baris 140 dan baris di atas dan di bawah dalam supervisord.conf anda jelas sekali ralat dalam penghuraian fail. Ia tidak sepatutnya menjadi isu kebenaran.

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan