[Serusers] ser_ctl - connection refused

Jan Halla jan.halla at roztoky.net
Thu Mar 15 10:14:06 CET 2007


Ctl module is needed for 'sercmd' command not for ser_ctl.

For ser_ctl to be usable you need to configure ser to listen for XML-RPC
commands.

My suggestion: use sercmd command. ;-)

-- hallik

On Wed, Mar 14, 2007 at 05:45:42PM -0700, Terry Robert wrote:
> Hi,
> I'm using ser_ctl as follows:
> 
> ser_ctl -g -s http://localhost:2046 ps
> 
> but get the following error:
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/ser_ctl", line 19, in ?
>     main(sys.argv)
>   File "./serctl/main.py", line 173, in main
>     return call(func, args, opts)
>   File "./serctl/main.py", line 115, in call
>     return apply(func, args, opts)
>   File "./serctl/ctlctl.py", line 235, in ps
>     ret = rpc.core_ps()
>   File "./serctl/ctlrpc.py", line 195, in core_ps
>     ps = self.ser.core.ps()
>   File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request
>     verbose=self.__verbose
>   File "./serctl/serxmlrpc.py", line 132, in request
>     self._http_request(uripath, body, host)
>   File "./serctl/serxmlrpc.py", line 104, in _http_request
>     self.conn.request("POST", uripath, body, headers)
>   File "/usr/lib/python2.3/httplib.py", line 718, in request
>     self._send_request(method, url, body, headers)
>   File "/usr/lib/python2.3/httplib.py", line 739, in _send_request
>     self.endheaders()
>   File "/usr/lib/python2.3/httplib.py", line 712, in endheaders
>     self._send_output()
>   File "/usr/lib/python2.3/httplib.py", line 597, in _send_output
>     self.send(msg)
>   File "/usr/lib/python2.3/httplib.py", line 564, in send
>     self.connect()
>   File "/usr/lib/python2.3/httplib.py", line 548, in connect
>     raise socket.error, msg
> socket.error: (111, 'Connection refused')
> 
> In my ser.cfg, I have:
> 
> # unix sockets and fifo creation parameters
> modparam("ctl", "binrpc", "unix:/tmp/ser_ctl") # default
> modparam("ctl", "binrpc", "udp:10.10.90.51:2046")
> modparam("ctl", "binrpc", "tcp:10.10.90.51:2046")
> modparam("ctl", "binrpc", "unixd:/tmp/unix_dgram")  # unix datagram
> modparam("ctl", "binrpc", "unixs:/tmp/unix_stream") # unix stream
> modparam("ctl", "binrpc", "unix:/tmp/unix_default") # unix stream
> modparam("ctl", "binrpc", "/tmp/unix_test")         # unix stream
> modparam("ctl", "binrpc", "10.10.90.51:3000")         # udp
> modparam("ctl", "binrpc", "tcp:3012")               # tcp any , port 3012
> modparam("ctl", "binrpc", "udp:*:3012")             # udp any , port 3012
> modparam("ctl", "fifo", "fifo:/tmp/ser_fifo")
> modparam("ctl", "mode", 0666)
> 
> Any suggestions? Thanks.
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers



More information about the sr-users mailing list