任何请求上的Supervisord RPC - UNKNOWN_METHOD

wiz*_*wiz 5 python xml-rpc supervisord

我已配置(几乎默认)supervisord.conf并启动了supervisord.已启动任务和xmlrpc接口已启动,但xmlrpclib.Fault: <Fault 1: 'UNKNOWN_METHOD'>即使启动supervisorctl本身,也会提供 evey 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
Run Code Online (Sandbox Code Playgroud)

Chr*_*ugh 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
Run Code Online (Sandbox Code Playgroud)