ldtp / ldtp2

Linux Desktop Testing Project
GNU Lesser General Public License v2.1
108 stars 49 forks source link

LDTP2 engine is crashing and ldtp client is reporting connection refused 111 error #53

Open purushothamc opened 5 years ago

purushothamc commented 5 years ago

Hi,

We're running LDTP in a python script in ubuntu 16.04 These scripts are invoked from RobotFramework to find active prompts on Ubuntu machine.

We're running ldtp script using python subprocess module. But we're getting following exception when we run above. ` from ldtp import * File "/usr/local/lib/python2.7/dist-packages/ldtp/init.py", line 593, in _populateNamespace(globals()) File "/usr/local/lib/python2.7/dist-packages/ldtp/init.py", line 255, in _populateNamespace d[local_name].doc = client._client.system.methodHelp(method) File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in call return self.send(self.name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in request verbose=self.verbose File "/usr/local/lib/python2.7/dist-packages/ldtp/client.py", line 154, in request response.reason, response.msg.headers) xmlrpclib.ProtocolError: <ProtocolError for localhost:4118/RPC2: 500 Internal Server Error> Unhandled Error Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 1408, in dataReceived finishCallback(data[contentLength:]) File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 1673, in _finishRequestBody self.allContentReceived() File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 1736, in allContentReceived req.requestReceived(command, path, version) File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 762, in requestReceived self.process() --- --- File "/usr/local/lib/python2.7/dist-packages/twisted/web/server.py", line 183, in process self.render(resrc) File "/usr/local/lib/python2.7/dist-packages/twisted/web/server.py", line 234, in render body = resrc.render(self) File "/usr/local/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render return m(request) File "/usr/local/lib/python2.7/dist-packages/ldtpd/xmlrpc_daemon.py", line 120, in render_POST print(debug_st) exceptions.IOError: [Errno 32] Broken pipe

Traceback (most recent call last): File "/opt/automation/DGAutomation/Libraries/PromptHandler/PFLinux.py", line 2, in from ldtp import * File "/usr/local/lib/python2.7/dist-packages/ldtp/init.py", line 593, in _populateNamespace(globals()) File "/usr/local/lib/python2.7/dist-packages/ldtp/init.py", line 255, in _populateNamespace d[local_name].doc = client._client.system.methodHelp(method) File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in call return self.send(self.name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in request verbose=self.verbose File "/usr/local/lib/python2.7/dist-packages/ldtp/client.py", line 154, in request response.reason, response.msg.headers) xmlrpclib.ProtocolError: <ProtocolError for localhost:4118/RPC2: 500 Internal Server Error> `

This is not observed when run from ldtp import * in python interactive prompt. We're using selenium to open Firefox browser, browser is getting opened.