When trying to connect to my XenServer, I got the following error message :
Unexpected error: (<class 'httplib.responsenotready'="">, ResponseNotReady(), <traceback object="" at="" 0xae72d93c="">)
Traceback (most recent call last):
File "/home/seb/tmp/openxenmanager/oxcSERVER.py", line 1814, in event_next
eventn = self.connection.event.next(self.session_uuid)
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in call
return self.send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(self.__args, *self.__kwargs)
File "/home/seb/tmp/openxenmanager/oxcSERVER_addserver.py", line 287, in fill_tree_with_vms
self.wine.finish_progressconnect()
File "/home/seb/tmp/openxenmanager/window_addserver.py", line 85, in finish_progressconnect
self.xc_servers[self.selected_host].fill_alerts(self.listalerts)
File "/home/seb/tmp/openxenmanager/oxcSERVER_addserver.py", line 46, in fill_alerts
self.session_uuid)['Value']
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1289, in single_request
self.send_request(h, handler, request_body)
File "/usr/lib/python2.7/xmlrpclib.py", line 1391, in send_request
connection.putrequest("POST", handler, skip_accept_encoding=True)
File "/usr/lib/python2.7/httplib.py", line 860, in putrequest
raise CannotSendRequest()
CannotSendRequest</traceback></class>
File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
response = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1022, in getresponse
raise ResponseNotReady()
ResponseNotReady
None
I'm running Debian Wheezy and installed first :
sudo apt-get install subversion python-glade2 python-gtk-vnc
I checked on my XenServer are incoming management interface is enable. Also on Windows I can connect to my server when using XenCenter.
I had a similar problem running the latest XenServer version on Ubuntu 13. After doing some debugging with the source code I discovered the problem was caused by the "alerts" list which gets populated as the application starts up. I haven't isolated the exact cause yet, however if you don't mind having the alerts completely disabled you can circumvent the problem by putting a 'return' statement as the very first line in the 'fill_alerts' method of the 'oxcSERVERaddserver' class, which is found in the 'oxcSERVER_addserver.py' file.