Subject: RuntimeError: (61, 'Connection refused')
To: None <port-xen@netbsd.org>
From: Marcin Jessa <yazzy@yazzy.org>
List: port-xen
Date: 07/04/2006 01:14:07
Hi guys.

Trying to start xend (XEN3) I get following errors:

[2006-07-04 01:11:30 xend] INFO (SrvDaemon:278) Xend Daemon started
[2006-07-04 01:11:30 xend] INFO (SrvDaemon:282) Xend changeset: Thu Apr 13 
15:18:37 2006 +0100 9617:5802713c159b.
[2006-07-04 01:11:31 xend] ERROR (SrvDaemon:292) Exception starting xend 
((61, 'Connection refused'))
Traceback (most recent call last):
  File "/usr/local/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", 
line 286, in run
    servers = SrvServer.create()
  File "/usr/local/lib/python2.3/site-packages/xen/xend/server/SrvServer.py", 
line 108, in create
    root.putChild('xend', SrvRoot())
  File "/usr/local/lib/python2.3/site-packages/xen/xend/server/SrvRoot.py", 
line 40, in __init__
    self.get(name)
  File "/usr/local/lib/python2.3/site-packages/xen/web/SrvDir.py", line 82, in 
get
    val = val.getobj()
  File "/usr/local/lib/python2.3/site-packages/xen/web/SrvDir.py", line 52, in 
getobj
    self.obj = klassobj()
  
File "/usr/local/lib/python2.3/site-packages/xen/xend/server/SrvDomainDir.py", 
line 39, in __init__
    self.xd = XendDomain.instance()
  File "/usr/local/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 
582, in instance
    inst.init()
  File "/usr/local/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 
70, in init
    xstransact.Mkdir(VMROOT)
  
File "/usr/local/lib/python2.3/site-packages/xen/xend/xenstore/xstransact.py", 
line 317, in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  
File "/usr/local/lib/python2.3/site-packages/xen/xend/xenstore/xstransact.py", 
line 323, in complete
    t = xstransact(path)
  
File "/usr/local/lib/python2.3/site-packages/xen/xend/xenstore/xstransact.py", 
line 20, in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/local/lib/python2.3/site-packages/xen/xend/xenstore/xsutil.py", 
line 18, in xshandle
    xs_handle = xen.lowlevel.xs.xs()
RuntimeError: (61, 'Connection refused')


# xm list gives me:
Error: Error connecting to xend: No such file or directory.  Is xend running?
and xend is running two processes:
root    25904  0.0  0.5  4640  2444 ?      I     1:11AM 
0:00.00 /usr/local/bin/python2.3 /usr/local/sbin/xend start
root    27199  0.0  0.9  4928  4856 ?      Ia    1:11AM 
0:00.03 /usr/local/bin/python2.3 /usr/local/sbin/xend start

Any ideas what may be causing this error ?
I read the XEN F.A.Q but could not figure this out.

Cheers,
Marcin.