WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] socket.error: (104, 'Connection reset by peer')

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] socket.error: (104, 'Connection reset by peer')
From: George Shuklin <george.shuklin@xxxxxxxxx>
Date: Sun, 31 Jul 2011 05:03:27 +0400
Delivery-date: Sat, 30 Jul 2011 18:02:42 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=uOlNLo+2PAd/FwpG2zA3ZfEf+hxsIO0bl9TctknMrY0=; b=EP/WoRhKmOx5Btc/2ZXyRiTuIU4kZ31Vgp4y0haoAhriNAzp3AixQa0v3GuG3h8rXx 8ULuyWka7S6an3Y3M1tO8u2PPMiyIUEzGj7EYQ4vVxMtgNyS2BwydVeiTlIAPdqyk+QH II09Qc7e30+wrBi59iejXewYvd9ddRfcEJqRk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CANRMsc=36bxjK_Rh+oZZiy_X6BinZMAqbLCVTifg8db0rwPJDA@xxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <CANRMsc=36bxjK_Rh+oZZiy_X6BinZMAqbLCVTifg8db0rwPJDA@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11
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@localhost 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 = ""> socket.error: (104, 'Connection reset by peer')
[root@localhost python]#

--
R.G.BABUKARTHIK

_______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-api
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>