Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

socket.error: (104, 'Connection reset by peer')

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


r.g.babukarthik at gmail

Jul 30, 2011, 5:30 PM

Post #1 of 2 (1630 views)
Permalink
socket.error: (104, 'Connection reset by peer')

can anyone pls tell me how to solve this error , i has
been trying to solve for past 1 week, please help me
i need to create session to start a vm



import XenAPI

session =XenAPI. Session('http://localhost.localdomain:443/')
session.login_with_password('root', 'karthik','XenServer SDK 5.6.100')
session.xenapi.VM.start('5eb3dc54-3164-baad-012f-ac8428d93a25')


[root [at] localhos python]# python ss.py
Traceback (most recent call last):

File "ss.py", line 4, in ?
session.login_with_password('root', 'karthik','XenServer SDK 5.6.100')
File "/usr/lib/python2.4/site-packages/XenAPI.py", line 182, in <lambda>
return lambda *params: self._login(name, params)
File "/usr/lib/python2.4/site-packages/XenAPI.py", line 148, in _login
result = _parse_result(getattr(self, 'session.%s' % method)(*params))
File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib/python2.4/xmlrpclib.py", line 1131, in request
errcode, errmsg, headers = h.getreply()
File "/usr/lib/python2.4/httplib.py", line 1143, in getreply
response = self._conn.getresponse()
File "/usr/lib/python2.4/httplib.py", line 872, in getresponse
response.begin()
File "/usr/lib/python2.4/httplib.py", line 336, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.4/httplib.py", line 294, in _read_status
line = self.fp.readline()
File "/usr/lib/python2.4/socket.py", line 325, in readline
data = recv(1)
socket.error: (104, 'Connection reset by peer')
[root [at] localhos python]#

--
R.G.BABUKARTHIK


george.shuklin at gmail

Jul 30, 2011, 6:03 PM

Post #2 of 2 (1560 views)
Permalink
Re: socket.error: (104, 'Connection reset by peer') [In reply to]

If you are using localhost connection to XCP (means you running
application on same host with pool master) using an file socket is
better, I think.

If you are trying to connect to XCP host from other host, 'localhost'
seems be wrong, you must use IP/DNS name to access XCP pool master.

On 31.07.2011 04:30, babu karthik wrote:
> can anyone pls tell me how to solve this error , i has
> been trying to solve for past 1 week, please help me
> i need to create session to start a vm
>
>
>
> import XenAPI
>
> session =XenAPI. Session('http://localhost.localdomain:443/')
> session.login_with_password('root', 'karthik','XenServer SDK 5.6.100')
> session.xenapi.VM.start('5eb3dc54-3164-baad-012f-ac8428d93a25')
>
>
> [root [at] localhos python]# python ss.py
> Traceback (most recent call last):
>
> File "ss.py", line 4, in ?
> session.login_with_password('root', 'karthik','XenServer SDK 5.6.100')
> File "/usr/lib/python2.4/site-packages/XenAPI.py", line 182, in <lambda>
> return lambda *params: self._login(name, params)
> File "/usr/lib/python2.4/site-packages/XenAPI.py", line 148, in _login
> result = _parse_result(getattr(self, 'session.%s' % method)(*params))
> File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
> verbose=self.__verbose
> File "/usr/lib/python2.4/xmlrpclib.py", line 1131, in request
> errcode, errmsg, headers = h.getreply()
> File "/usr/lib/python2.4/httplib.py", line 1143, in getreply
> response = self._conn.getresponse()
> File "/usr/lib/python2.4/httplib.py", line 872, in getresponse
> response.begin()
> File "/usr/lib/python2.4/httplib.py", line 336, in begin
> version, status, reason = self._read_status()
> File "/usr/lib/python2.4/httplib.py", line 294, in _read_status
> line = self.fp.readline()
> File "/usr/lib/python2.4/socket.py", line 325, in readline
> data = recv(1)
> socket.error: (104, 'Connection reset by peer')
> [root [at] localhos python]#
>
> --
> R.G.BABUKARTHIK
>
>
> _______________________________________________
> xen-api mailing list
> xen-api [at] lists
> http://lists.xensource.com/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.