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

[Xen-bugs] [Bug 670] New: xend fails to start on Ubuntu Dapper due to missing directories



http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=670

           Summary: xend fails to start on Ubuntu Dapper due to missing
                    directories
           Product: Xen
           Version: 3.0-testing
          Platform: All
        OS/Version: Linux-2.4
            Status: NEW
          Severity: major
          Priority: P2
         Component: Unspecified
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: berni@xxxxxxxxxxxxx


The latest Ubuntu version (6.06 LTS aka Dapper) has /var/run and /var/lock on
tmpfs. This breaks "xend start" because it cannot write its files due to
missing subdirectories after reboot.

Console:
touch: cannot touch `/var/lock/subsys/xendomains': No such file or directory
Starting auto Xen domains: vs01Error: Error connecting to xend: No such file or
directory.  Is xend running?
Error: (2, 'No such file or directory')
! vs02Error: Error connecting to xend: No such file or directory.  Is xend
running?
Error: (2, 'No such file or directory')
! vs03Error: Error connecting to xend: No such file or directory.  Is xend
running?
Error: (2, 'No such file or directory')
!

/var/log/xend.log
[2006-06-11 15:12:51 xend] INFO (SrvDaemon:278) Xend Daemon started
[2006-06-11 15:12:51 xend] INFO (SrvDaemon:282) Xend changeset: Fri Jun  9
16:06:09 2006 9732:d4312b52c3f88ff4dc4d872f9f0f1c7b5.
[2006-06-11 15:12:51 xend] ERROR (SrvDaemon:292) Exception starting xend ((2,
'No such file or directory'))
Traceback (most recent call last):
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/server/SrvDaemon.py",
line 286, in run
    servers = SrvServer.create()
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/server/SrvServer.py",
line 108, in create
    root.putChild('xend', SrvRoot())
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/server/SrvRoot.py",
line 40, in __init__
    self.get(name)
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/web/SrvDir.py",
line 82, in get
    val = val.getobj()
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/web/SrvDir.py",
line 52, in getobj
    self.obj = klassobj()
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/server/SrvDomainDir.py",
line 39, in __init__
    self.xd = XendDomain.instance()
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomain.py",
line 582, in instance
    inst.init()
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomain.py",
line 70, in init
    xstransact.Mkdir(VMROOT)
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/xenstore/xstransact.py",
line 317, in Mkdir
    complete(path, lambda t: t.mkdir(*args))
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/xenstore/xstransact.py",
line 323, in complete
    t = xstransact(path)
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/xenstore/xstransact.py",
line 20, in __init__
    self.transaction = xshandle().transaction_start()
  File
"/home/berni/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/xenstore/xsutil.py",
line 18, in xshandle
    xs_handle = xen.lowlevel.xs.xs()
RuntimeError: (2, 'No such file or directory')


adding

mkdir -p /var/run/xenstored
mkdir -p /var/lock/subsys

to the init-script (right before "xend start") fixes the problem.


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


 


Rackspace

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