5

我已经配置了(几乎是默认的)supervisord.conf 并启动了 supervisord。已启动的任务和 xmlrpc 接口已启动,但 xmlrpclib.Fault: <Fault 1: 'UNKNOWN_METHOD'>即使在启动 supervisorctl 本身时也会发出每个 xmlrpc 请求。

日志中有相同的消息:

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
4

1 回答 1

10

我怀疑您从 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
于 2009-11-11T21:01:44.383 回答