Supervisord RPC - 请求时出现UNKNOWN_METHOD

5 投票
1 回答
1988 浏览
提问于 2025-04-15 15:53

我配置了几乎是默认的supervisord.conf文件,并启动了supervisord。任务已经启动,xmlrpc接口也正常,但每次发出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

1 个回答

11

我猜你把这些行从 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

撰写回答