[Buildd-tools-devel] Bug#489116: Bug#489116: schroot: possible race condition during chroot setup?

Roger Leigh rleigh at whinlatter.ukfsn.org
Thu Jul 3 19:13:00 UTC 2008


Lucas Nussbaum <lucas at lucas-nussbaum.net> writes:

> I run several instances of sbuild+schroot in parallel. Sometimes, I run
> into the following error message:
> Build started at 20080703-0045
> ******************************************************************************
> Cannot create link /etc/mtab~
> Perhaps there is a stale lock file?
>
> E: lsid32-ba72d12e-d721-4f01-aa83-78ce46e9691c: Chroot setup failed: stage=setup-start
> Chroot setup failed
> Error creating schroot session: skipping zope-ldapmultiplugins
> ******************************************************************************
>
> Could this be caused by a race condition in schroot or sbuild ? I
> never ran into this when I was running only one instance at a time.

While it is possible that a race condition exists, I can't find any
reference to "Cannot create link" or /etc/mtab in either the schroot
or sbuild sources.  I don't know where that message is coming from.

Which chroot type are you using with sbuild/schroot?  The locking can
vary between the different types, and some (e.g. plain, directory)
shouldn't be used if you are running sbuild in parallel, though sbuild
itself should do its own locking in this case and catch the problem.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20080703/a2ebaa7b/attachment.pgp 


More information about the Buildd-tools-devel mailing list