[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xend does not start



 Well, I should open my eyes... there is segfault of xenstored in syslog :

If I launch that : strace /usr/lib/xen-default/bin/xenstored --no-fork

fcntl(7, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=19284, len=1}) = 0
fcntl(7, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=4796, len=1}) = 0
lseek(7, 4800, SEEK_SET)                = 4800
read(7, "\0\0\0\0", 4)                  = 4
fcntl(7, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=4796, len=1}) = 0
gettimeofday({1282077106, 242539}, NULL) = 0
sendto(8, "<11>Aug 17 22:31:46 xenstored: c"..., 129, MSG_NOSIGNAL, NULL, 0) = 
129
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Erreur de segmentation

I continue to search the cause of the problem...

Olivier

Le 17/08/2010 22:02, Olivier B. a écrit :
 re,

when I do a "xend trace_start", I obtain that (I removed the "MainThread" 
lines) :

# grep -v MainThread xend.trace
Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1138, in 
instance
    inst
NameError: global name 'inst' is not defined

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 79, in __init__
    self.other_config = eval(host['other_config'])
TypeError: eval() arg 1 must be a string or code object

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 854, in 
list_to_rangepairs
    if ((cmap[y+1] - cmap[i]) > 1):
IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1879, in 
instance
    inst
NameError: global name 'inst' is not defined

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1141, in 
instance
    inst.save()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvNode.py", line 30, in 
__init__
    self.xn = XendNode.instance()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1141, in 
instance
    inst.save()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvRoot.py", line 40, in 
__init__
    self.get(name)
  File "/usr/lib/xen-4.0/lib/python/xen/web/SrvDir.py", line 84, in get
    val = val.getobj()
  File "/usr/lib/xen-4.0/lib/python/xen/web/SrvDir.py", line 52, in getobj
    self.obj = klassobj()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvNode.py", line 30, in 
__init__
    self.xn = XendNode.instance()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1141, in 
instance
    inst.save()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line 341, in 
run
    servers = SrvServer.create()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvServer.py", line 251, in 
create
    root.putChild('xend', SrvRoot())
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvRoot.py", line 40, in 
__init__
    self.get(name)
  File "/usr/lib/xen-4.0/lib/python/xen/web/SrvDir.py", line 84, in get
    val = val.getobj()
  File "/usr/lib/xen-4.0/lib/python/xen/web/SrvDir.py", line 52, in getobj
    self.obj = klassobj()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvNode.py", line 30, in 
__init__
    self.xn = XendNode.instance()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1141, in 
instance
    inst.save()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
Error: (111, 'Connection refused')

Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line 353, in 
run
    sys.exit(1)
SystemExit: 1







Le 17/08/2010 19:42, Olivier B. a écrit :
 Hi,

I have a Xen server which doesn't work anymore (xend refuse to start), 
apparently without any modification in configuration.
Since it was an "old" Debian testing with Xen 3.4, I upgrade to the last debian 
testing packages, with Xen 4.0.

But I obtain the same problem : xend does not start.
I verified that Xen is running (with a pvops kernel from Debian, or 2.6.32.16 
and 2.6.32.19 from Jeremy's Git), and xenfs (/proc/xen) is mounted.

In logs I have this errors :
[2010-08-17 19:04:16 2339] INFO (SrvDaemon:220) Xend exited with status 1.
[2010-08-17 19:07:57 5348] INFO (SrvDaemon:332) Xend Daemon started
[2010-08-17 19:07:57 5348] INFO (SrvDaemon:336) Xend changeset: unavailable.
[2010-08-17 19:07:59 5348] ERROR (SrvDaemon:349) Exception starting xend ((111, 
'Connection refused'))
Traceback (most recent call last):
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line 341, in 
run
    servers = SrvServer.create()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvServer.py", line 251, in 
create
    root.putChild('xend', SrvRoot())
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvRoot.py", line 40, in 
__init__
    self.get(name)
  File "/usr/lib/xen-4.0/lib/python/xen/web/SrvDir.py", line 84, in get
    val = val.getobj()
  File "/usr/lib/xen-4.0/lib/python/xen/web/SrvDir.py", line 52, in getobj
    self.obj = klassobj()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvNode.py", line 30, in 
__init__
    self.xn = XendNode.instance()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1141, in 
instance
    inst.save()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 578, in save
    self.save_networks()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 594, in 
save_networks
    for network_uuid in XendNetwork.get_all()])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBase.py", line 101, in 
get_record
    for key in keys])
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNetwork.py", line 196, in 
get_VIFs
    vms = XendDomain.instance().get_all_vms()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 1882, in 
instance
    inst.init()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 114, in init
    xstransact.Mkdir(XS_VMROOT)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 355, 
in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 361, 
in complete
    t = xstransact(path)
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xstransact.py", line 29, 
in __init__
    self.transaction = xshandle().transaction_start()
  File "/usr/lib/xen-4.0/lib/python/xen/xend/xenstore/xsutil.py", line 18, in 
xshandle
    xs_handle = xen.lowlevel.xs.xs()
Error: (111, 'Connection refused')
[2010-08-17 19:07:59 5347] INFO (SrvDaemon:220) Xend exited with status 1.

How can I debug that ?

Thanks,
Olivier






_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.