Restart of RPC server works but causes unhandled exception
when the rpc_main.py process is killed, the analyses can be restored afterwords, but an unhandled exception is thrown:
[13/Jun/2012:12:52:18] ENGINE Error in ‘rpc_get’ listener _get of > Traceback (most recent call last):
File “/home/bretz/local/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/process/wspbus.py”, line 197, in publish
output.append(listener(args,*kwargs))
File “/home/bretz/vispaweb/vispa-web/vispa/plugins/rpc.py”, line 138, in rpc_get
uid = int(cherrypy.session[“user_id”])
File “/home/bretz/local/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/init.py”, line 229, in getitem
child = getattr(serving, self.attrname)
AttributeError: ‘_Serving’ object has no attribute ‘session’Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.6/threading.py”, line 532, in __bootstrap_inner
self.run()
File “/home/bretz/vispaweb/vispa-web/extensions/designer/analysis.py”, line 197, in run
if analysis.getStatus()[0] != Analysis.IDLE:
File “/usr/lib/python2.6/xmlrpclib.py”, line 1199, in call
return self._*send(self.*_name, args)
File “/usr/lib/python2.6/xmlrpclib.py”, line 1489, in __request
verbose=self.__verbose
File “/usr/lib/python2.6/xmlrpclib.py”, line 1235, in request
self.send_content(h, request_body)
File “/usr/lib/python2.6/xmlrpclib.py”, line 1349, in send_content
connection.endheaders()
File “/usr/lib/python2.6/httplib.py”, line 904, in endheaders
self._send_output()
File “/usr/lib/python2.6/httplib.py”, line 776, in _send_output
self.send(msg)
File “/usr/lib/python2.6/httplib.py”, line 735, in send
self.connect()
File “/usr/lib/python2.6/httplib.py”, line 716, in connect
self.timeout)
File “/usr/lib/python2.6/socket.py”, line 514, in create_connection
raise error, msg
error: [Errno 111] Connection refused
(from redmine: issue id 1053, created on 2012-06-13 by root, closed on 2012-11-13)