2009-11-11 67 views
4

我配置了(几乎默认)supervisord.conf并启动了supervisord。启动的任务和xmlrpc接口已启动,但即使在启动supervisorctl本身时,evey xmlrpc请求也会提供 xmlrpclib.Fault: <Fault 1: 'UNKNOWN_METHOD'>Supervisord RPC - UNKNOWN_METHOD对任何请求

没有在日志中相同的消息:

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 

回答

9

我怀疑你移除了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 
+0

这工作。我从头开始写配置,并不知道这一节。谢谢。 – wiz 2009-11-12 13:42:35