Maybe locking is a bzr thing....

Bruce Korb bruce.korb at gmail.com
Mon Oct 15 14:25:39 BST 2007


On 10/14/07, Alexander Belchenko <bialix at ukr.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bruce Korb пишет:
> > $ bzr get http://cdd.alioth.debian.org/bzr/simple-cdd/releases/simple-cdd-0.3.5/
> > bzr: ERROR: Could not acquire lock [Errno 37] No locks available
>
> "No locks available": because your files on /share I assume it's NFS or samba disk,
> right? So problem here that bzr wants to have some file-locking mechanism
> for your files on that disk. I don't know much about Linux, but probably
> you need setup and run some locking support for shared disks.

??  That has been integrated into UNIX-y systems since forever (OK, since
a couple of decades ago).

> As a ugly workaround you don't need to upgrade your working trees to latest
> format, but use knits format instead. This format does not require file locks
> and should just works.

Thank you.  I'll go figure out what this means and use "knits format".

> > /usr/lib/python2.4/site-packages/bzrlib/lock.py:79: UserWarning: lock
> > on <open file u'/share/st/devbk/simple-cdd-0.3.5/.bzr/checkout/dirstate',
> > mode 'wb+' at 0xb7ad7e78> not released
> >   warn("lock on %r not released" % self.f)
> > /usr/lib/python2.4/site-packages/bzrlib/lockable_files.py:110:
> > UserWarning: file group
> > LockableFiles(<bzrlib.transport.local.LocalTransport
> > url=file:///share/st/devbk/simple-cdd-0.3.5/.bzr/checkout/>) was not
> > explicitly unlocked
> >   warn("file group %r was not explicitly unlocked" % self)
>
> 2Martin, Robert, John: file locks must die. I will say it again and again.

And again :) ---

$ bzr break-lock /share/st/devbk/simple-cdd-0.3.5
/usr/lib/python2.4/site-packages/bzrlib/lock.py:79: UserWarning: lock
on <open file u'/share/st/devbk/simple-cdd-0.3.5/.bzr/checkout/dirstate',
mode 'rb+' at 0xb7cc86e0> not released
  warn("lock on %r not released" % self.f)
bzr: ERROR: The lock for '/share/st/devbk/simple-cdd-0.3.5' is in use
and cannot be broken.

:-(  And, yes, this is an NFS mounted file system.


More information about the bazaar mailing list