我已经配置了(几乎是默认值)supervisord.conf并开始了supervisord。启动了任务,并启动了xmlrpc接口(interface),但提供了
evey xmlrpc请求上的xmlrpclib.Fault: <Fault 1: 'UNKNOWN_METHOD'>,即使启动supervisorctl本身也是如此。

日志中有一条相同的消息:

TRAC XML-RPC method called: supervisor.getAllProcessInfo()
TRAC XML-RPC method supervisor.getAllProcessInfo() returned fault: [1] UNKNOWN_METHOD
TRAC 127.0.0.1:44458 - - [11/Nov/2009:09:51:02 +0300] "POST /RPC2 HTTP/1.1" 200 391

最佳答案

我怀疑您从supervisord.conf配置文件中删除了以下几行:

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

08-28 21:21