cari

Rumah  >  Soal Jawab  >  teks badan

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 hari yang lalu1191

membalas semua(3)saya akan balas

  • 阿神

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

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

    balas
    0
  • 阿神

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

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

    balas
    0
  • 黄舟

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

    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.

    balas
    0
  • Batalbalas