cannot break dirstate lock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
I want to break a stale lock which was left by an interrupted uncommit:
sh-3.2$ bzr break-lock
bzr: ERROR: Could not acquire lock "LockDir(
Bzr didn't terminate after several minutes.
The branch is a checkout of a branch on a Samba share. That branch was created with bzr 0.17 on Linux. My Windows bzr 1.8 hints me at upgrading (but I don't because it should stay usable with bzr 0.17).
$ bzr --version
Bazaar (bzr) 1.8
Python interpreter: C:\Python25\
Python standard library: C:\Python25\lib
bzrlib: C:\Python25\
Bazaar configuration: C:\Dokumente und Einstellungen\
Bazaar log file: \\gvfile\
Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
$
The tracebacks look like this:
0.109 encoding stdout as osutils.
0.109 bzr arguments: [u'break-lock']
0.109 looking for plugins in C:/Dokumente und Einstellungen/
0.109 looking for plugins in C:\Python25\
0.109 Plugin name __init__ already loaded
0.109 Plugin name __init__ already loaded
0.531 encoding stdout as osutils.
0.718 opening working tree 'C:/home/
0.750 Traceback (most recent call last):
File "C:\Python25\
return run_bzr(argv)
File "C:\Python25\
ret = run(*run_argv)
File "C:\Python25\
return self.run(
File "C:\Python25\
control.
File "C:\Python25\
thing_
File "C:\Python25\
raise errors.
LockActive: The lock for 'C:/home/
0.750 return code 3
0.110 encoding stdout as osutils.
0.125 bzr arguments: [u'break-lock']
0.125 looking for plugins in C:/Dokumente und Einstellungen/
0.125 looking for plugins in C:\Python25\
0.125 Plugin name __init__ already loaded
0.125 Plugin name __init__ already loaded
0.547 encoding stdout as osutils.
0.719 opening working tree 'C:/home/
0.750 Traceback (most recent call last):
File "C:\Python25\
return run_bzr(argv)
File "C:\Python25\
ret = run(*run_argv)
File "C:\Python25\
return self.run(
File "C:\Python25\
control.
File "C:\Python25\
thing_
File "C:\Python25\
raise errors.
LockActive: The lock for 'C:/home/
0.766 return code 3
300.484 Traceback (most recent call last):
File "C:\Python25\
return run_bzr(argv)
File "C:\Python25\
ret = run(*run_argv)
File "C:\Python25\
return self.run(
File "C:\Python25\
tree.
File "C:\Python25\
self.
File "C:\Python25\
token = self.control_
File "C:\Python25\
token_from_lock = self._lock.
File "C:\Python25\
return self.wait_lock()
File "C:\Python25\
raise LockContention(
LockContention: Could not acquire lock "LockDir(
It's not possible for us to break the OS lock we use for the dirstate file at the moment - you need to find the bzr process that's still using it and quit or terminate it. Eventually we will fix that, as part of bug 98836.
It might be possible for us to break the lock on only the branch, not the dirstate, but that may cause trouble if the process is still running and expects the lock to exist.