[OpenSIPS-Users] Openxcap: Error: Unhandled error in Deferred

Thiago Rondon thiago at aware.com.br
Tue Jul 28 14:24:44 CEST 2009


Luci,

Hmm. If I don't load module 'pua_mi.so', the problem is:

Jul 28 09:22:03 debian openxcap[11488]: Starting factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x887c64c>
Jul 28 09:22:03 debian /usr/local/sbin/opensips[11559]: 
ERROR:mi_xmlrpc:default_method: command pua_publish is not available!
Jul 28 09:22:03 debian openxcap[11488]: error: Unhandled error in Deferred:
Jul 28 09:22:03 debian openxcap[11488]: Traceback (most recent call last):
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/protocols/basic.py", 
line 239, in dataReceived
Jul 28 09:22:03 debian openxcap[11488]:     return 
self.rawDataReceived(data)
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/http.py", 
line 466, in rawDataReceived
Jul 28 09:22:03 debian openxcap[11488]:     self.handleResponseEnd()
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/http.py", 
line 430, in handleResponseEnd
Jul 28 09:22:03 debian openxcap[11488]:     self.handleResponse(b)
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/xmlrpc.py", 
line 279, in handleResponse
Jul 28 09:22:03 debian openxcap[11488]:     
self.factory.parseResponse(contents)
Jul 28 09:22:03 debian openxcap[11488]: --- <exception caught here> ---
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/xmlrpc.py", 
line 307, in parseResponse
Jul 28 09:22:03 debian openxcap[11488]:     response = 
xmlrpclib.loads(contents)
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/xmlrpclib.py", line 1132, in loads
Jul 28 09:22:03 debian openxcap[11488]:     return u.close(), 
u.getmethodname()
Jul 28 09:22:03 debian openxcap[11488]:   File 
"/usr/lib/python2.5/xmlrpclib.py", line 787, in close
Jul 28 09:22:03 debian openxcap[11488]:     raise Fault(**self._stack[0])
Jul 28 09:22:03 debian openxcap[11488]: xmlrpclib.Fault: <Fault -506: 
'Requested command (pua_publish) is not available!'>
Jul 28 09:22:04 debian openxcap[11488]: Stopping factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x887c64c>
Jul 28 09:22:04 debian openxcap[11488]: Starting factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x891b88c>
Jul 28 09:22:05 debian /usr/local/sbin/opensips[11560]: 
INFO:db_mysql:db_mysql_submit_query: disconect event for 0x819b560
Jul 28 09:22:05 debian /usr/local/sbin/opensips[11560]: 
INFO:db_mysql:reset_all_statements: reseting all statements on 
connection: (0x819e908) 0x819b560
Jul 28 09:22:05 debian /usr/local/sbin/opensips[11560]: 
INFO:db_mysql:db_mysql_submit_query: re-connected successful for 0x819b560
Jul 28 09:22:05 debian openxcap[11488]: Starting factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x891c52c>
Jul 28 09:22:05 debian /usr/local/sbin/opensips[11561]: 
ERROR:mi_xmlrpc:default_method: command pua_publish is not available!
Jul 28 09:22:05 debian openxcap[11488]: error: Unhandled error in Deferred:
Jul 28 09:22:05 debian openxcap[11488]: Traceback (most recent call last):
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/protocols/basic.py", 
line 239, in dataReceived
Jul 28 09:22:05 debian openxcap[11488]:     return 
self.rawDataReceived(data)
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/http.py", 
line 466, in rawDataReceived
Jul 28 09:22:05 debian openxcap[11488]:     self.handleResponseEnd()
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/http.py", 
line 430, in handleResponseEnd
Jul 28 09:22:05 debian openxcap[11488]:     self.handleResponse(b)
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/xmlrpc.py", 
line 279, in handleResponse
Jul 28 09:22:05 debian openxcap[11488]:     
self.factory.parseResponse(contents)
Jul 28 09:22:05 debian openxcap[11488]: --- <exception caught here> ---
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/xmlrpc.py", 
line 307, in parseResponse
Jul 28 09:22:05 debian openxcap[11488]:     response = 
xmlrpclib.loads(contents)
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/xmlrpclib.py", line 1132, in loads
Jul 28 09:22:05 debian openxcap[11488]:     return u.close(), 
u.getmethodname()
Jul 28 09:22:05 debian openxcap[11488]:   File 
"/usr/lib/python2.5/xmlrpclib.py", line 787, in close
Jul 28 09:22:05 debian openxcap[11488]:     raise Fault(**self._stack[0])
Jul 28 09:22:05 debian openxcap[11488]: xmlrpclib.Fault: <Fault -506: 
'Requested command (pua_publish) is not available!'>
Jul 28 09:22:05 debian openxcap[11488]: Stopping factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x891c52c>
Jul 28 09:22:05 debian openxcap[11488]: Stopping factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x891b88c>

And if I load the 'pua_mi.so', the problem is:


Jul 28 09:25:59 debian /usr/local/sbin/opensips[11683]: 
ERROR:presence:handle_publish: Missing or unsupported event header field 
value
Jul 28 09:25:59 debian /usr/local/sbin/opensips[11683]: 
ERROR:presence:handle_publish: ^Ievent=[xcap-diff]
Jul 28 09:26:00 debian openxcap[11488]: error: Unhandled error in Deferred:
Jul 28 09:26:00 debian openxcap[11488]: Traceback (most recent call last):
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/xmlrpc.py", 
line 279, in handleResponse
Jul 28 09:26:00 debian openxcap[11488]:     
self.factory.parseResponse(contents)
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/web/xmlrpc.py", 
line 313, in parseResponse
Jul 28 09:26:00 debian openxcap[11488]:     
deferred.callback(response[0][0])
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/internet/defer.py", 
line 243, in callback
Jul 28 09:26:00 debian openxcap[11488]:     self._startRunCallbacks(result)
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/internet/defer.py", 
line 312, in _startRunCallbacks
Jul 28 09:26:00 debian openxcap[11488]:     self._runCallbacks()
Jul 28 09:26:00 debian openxcap[11488]: --- <exception caught here> ---
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-i686.egg/twisted/internet/defer.py", 
line 328, in _runCallbacks
Jul 28 09:26:00 debian openxcap[11488]:     self.result = 
callback(self.result, *args, **kw)
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/xcap/interfaces/opensips.py", line 83, 
in update_etag
Jul 28 09:26:00 debian openxcap[11488]:     x = Result(x)
Jul 28 09:26:00 debian openxcap[11488]:   File 
"/usr/lib/python2.5/site-packages/xcap/interfaces/opensips.py", line 29, 
in __init__
Jul 28 09:26:00 debian openxcap[11488]:     lines = data.split('\n')
Jul 28 09:26:00 debian openxcap[11488]: exceptions.AttributeError: 
'list' object has no attribute 'split'
Jul 28 09:26:00 debian openxcap[11488]: Stopping factory 
<twisted.web.xmlrpc._QueryFactory instance at 0x891b9cc>

Thanks!
-Thiago Rondon

Luci Stanescu escreveu:
> Hi Thiago,
>
> I fixed the problem in the "trunk" version of OpenXCAP. You are probably
> getting on error when OpenXCAP tries to communicate with OpenSIPS via
> XMLRPC, but the error you are seeing hides the real one. You should now
> be able to see that one.
>
> Please take OpenXCAP from the darcs repository as exaplained in:
> http://openxcap.org/wiki/Installation#Downloadingfromtheversioncontrolrepository
>
>   




More information about the Users mailing list