Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
purushothamc opened this issue Feb 27, 2019 · 0 comments

Comments

@purushothamc
Copy link

purushothamc commented Feb 27, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant