[Pkg-xen-devel] Error starting xend?

Bastian Blank waldi at debian.org
Sun Sep 17 15:30:24 CEST 2006


On Sun, Sep 17, 2006 at 11:17:45AM +0100, Steve Kemp wrote:
> 
>   After upgrading to xen unstable packages I'm seeing the following
>   problem:
> 
> skx at itchy:~$ sudo /etc/init.d/xend restart
> Restarting XEN control daemon: xendTraceback (most recent call last):
>   File "/usr/lib/xen-3.0-unstable-1/bin/xend", line 40, in ?
>     from xen.xend.server import SrvDaemon
>   File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 17, in ?
> ImportError: No module named xc
> Traceback (most recent call last):
>   File "/usr/lib/xen-3.0-unstable-1/bin/xend", line 40, in ?
>     from xen.xend.server import SrvDaemon
>   File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 17, in ?
> ImportError: No module named xc
> 
>    My packages appear to be correct:
> skx at itchy:~$ dpkg --list | grep xen  | awk '{print $2}'
> libc6-xen
> linux-image-2.6.17-2-xen-686
> linux-modules-2.6.17-2-xen-686
> xen-hypervisor-3.0-unstable-1-i386
> xen-ioemu-3.0-unstable
> xen-linux-system-2.6.17-2-xen-686
> xen-tools
> xen-utils-3.0-unstable-1
> xen-utils-common

Please do dpkg -l "*xen*" and show this. The output includes the state
of the whole bunch of packages. I think you have the old xen-utils-3.0
package in a removed but not purged state.

>   Lots of files in :/usr/lib/python2.4/site-packages/xen/xend/server are
>  symlinks to /usr/share/pycentral/xen-utils-3.0/site-packages/xen/xend/server/
>  which don't exist.  Is this the source of my problem?  Is there an obvious
>  fix here?

This files seems to be a leftover from xen-utils-3.0, I don't know why
they are not removed.

You may test the following. Replace the following line in
/usr/lib/xen-3.0-unstable-1/bin/xend
| sys.path.append('%s/../lib/python' % sys.path[0])
with
| sys.path[0] = '%s/../lib/python' % sys.path[0]

This always checks the correct path first.

>   I notice that I do have the file:
>     /usr/lib/xen-3.0-unstable-1/lib/python/xen/lowlevel/xc.so

Yes, this is the correct one.

Bastian

-- 
Lots of people drink from the wrong bottle sometimes.
		-- Edith Keeler, "The City on the Edge of Forever",
		   stardate unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20060917/1d37a4f7/attachment.pgp


More information about the Pkg-xen-devel mailing list