bzr server error: "file exists" while taking lock

Bug #720403 reported by Timmie on 2011-02-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Critical
Unassigned

Bug Description

OOPS-1872BZR15591 leads to users seeing:
bzr: ERROR: Server sent an unexpected error: ('error', "Cannot lock LockDir(lp-71140304:///~grass/grass/grass64_release_debian/.bzr/branchlock): File exists: u'/srv/bazaar.launchpad.net/mirrors/00/05/c2/84/.bzr/branch/lock': [Errno 17] File exists: '/srv/bazaar.launchpad.net/mirrors/00/05/c2/84/.bzr/branch/lock'")

Martin Pool (mbp) on 2011-02-16
tags: added: code-hosting
summary: - file not exists
+ bzr server error: "file exists" while taking lock
Changed in launchpad:
status: New → Confirmed
importance: Undecided → High
Martin Pool (mbp) wrote :

Can you reproduce the problem if you try again? What command were you running?

Changed in launchpad:
status: Confirmed → Incomplete
tags: added: oops
Changed in launchpad:
status: Incomplete → Triaged
importance: High → Critical
description: updated
Martin Pool (mbp) wrote :

The directory in question contains

codehost@crowberry:~$ ls -lR /srv/bazaar.launchpad.net/mirrors/00/05/c2/84/.bzr/branch/
/srv/bazaar.launchpad.net/mirrors/00/05/c2/84/.bzr/branch/:
total 16
-rw-r--r-- 1 codehost codehost 49 2010-10-20 17:12 branch.conf
-rw-r--r-- 1 codehost codehost 39 2010-09-28 20:57 format
-rw-r--r-- 1 codehost codehost 62 2010-10-25 21:40 last-revision
drwxr-xr-x 2 codehost codehost 4096 2010-10-25 21:40 lock
-rw-r--r-- 1 codehost codehost 0 2010-09-28 20:57 tags

/srv/bazaar.launchpad.net/mirrors/00/05/c2/84/.bzr/branch/lock:
total 0

Martin Pool (mbp) wrote :

I wonder if this could have happened through two people racing to initialize the same branch at the same time.

  Traceback (most recent call last):
  Module bzrlib.smart.request, line 355, in _call_converting_errors
    return callable(*args, **kwargs)
  Module bzrlib.smart.request, line 140, in execute
    return self.do(*args)
  Module bzrlib.smart.bzrdir, line 188, in do
    result = format.initialize(bzrdir)
  Module bzrlib.branch, line 2212, in initialize
    return self._initialize_helper(a_bzrdir, utf8_files, name)
  Module bzrlib.branch, line 1646, in _initialize_helper
    control_files.create_lock()
  Module bzrlib.lockable_files, line 110, in create_lock
    self._lock.create(mode=self._dir_mode)
  Module bzrlib.lockdir, line 204, in create
    raise LockFailed(self, e)
LockFailed: Cannot lock LockDir(lp-83932112:///~ubuntu-nl-website/ubuntu-nl-website/voting/.bzr/branchlock): File exists: u'/srv/bazaar.launchpad.net/mirrors/00/06/77/4a/.bzr/branch/lock': [Errno 17] File exists: '/srv/bazaar.launchpad.net/mirrors/00/06/77/4a/.bzr/branch/lock'

William Grant (wgrant) on 2012-10-19
tags: added: codehosting-ssh
removed: code-hosting
William Grant (wgrant) on 2012-10-22
tags: added: bzr
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers