Cannot acquire lock on Windows 7 when configuring my details

Bug #1172533 reported by Amir Eldor
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

I've just installed the Bazaar Explorer on my Windows 7, tried to setup my configuration details such as my name and email and once I clicked 'ok' it hung up and gave me a nice error dialog that wanted me to post the error on Launchpad. So here it is!

The traceback:

bzr: ERROR: Could not acquire lock "(local)": file:///C:/Users/Amir%20Eldor/AppData/Roaming/bazaar/2.0/lock

Must be something with the space (%20) in my Windows username.

Revision history for this message
Amir Eldor (amireldor) wrote :

Hmm, well it DID set up my changes to the name, name and editor despite the crash.

The editor path I used is: C:/Program Files (x86)/Notepad++/notepad++.exe

summary: - Cannot acquire lock on Windows 7 when configuring mydetails
+ Cannot acquire lock on Windows 7 when configuring my details
Revision history for this message
Alexander Belchenko (bialix) wrote :

That looks like a problem in bzr core for me.

affects: qbzr → bzr
Revision history for this message
Stephane Tremblay (stephane-tremblay-2) wrote :

I also have this problem, even though there are no spaces or %20 in my user name.

I can't get bazaar to work correctly in Windows 7 for the life of me. I keep getting errors saying that it "Could not acquire lock "(local)": file:///c:/..."

Any GUI tools freeze up and crash for the exact same reason as yours.

Could not acquire lock "(local)": file:///c:/Users/s.../AppData/Roaming/bazaar/2.0/lock

I need this to work because that's what we use at my job and so far I can't collaborate my work unless I use cygwin which doesn't have all the fancy GUI tools.

Revision history for this message
Martin Packman (gz) wrote :

Can one of you attach the full traceback please? The gui tools will give it to you if you hit the expander, and then you can copy/paste those details here.

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Amir Eldor (amireldor) wrote :

These are the full details of the error. It also happens to me under cygwin and cmd.exe in addition to the GUI tools.

Revision history for this message
Samuel Findlay (sfindlay) wrote :

I think I have the same problem. It only started recently, but now I cannot commit at all.
Win7 x64, have tried 2.5.1 and 2.6b1

Thu 2014-02-13 14:42:40 +1100
0.084 bazaar version: 2.5.1
0.084 bzr arguments: [u'cism', u'v0.8 Added *.sdr files, LAN Updater']
0.085 looking for plugins in C:/Users/Sam/AppData/Roaming/bazaar/2.0/plugins
0.085 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
0.143 encoding stdout as sys.stdout encoding 'cp850'
0.204 opening working tree 'C:/Users/Sam/Documents/IT Support/AHK Dev/Projects/Check SDR33/source'
29.337 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
29.337 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 920, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1131, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 695, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 3678, in run
  File "bzrlib\decorators.pyo", line 216, in write_locked
  File "bzrlib\workingtree_4.pyo", line 646, in lock_write
  File "bzrlib\branch.pyo", line 2529, in lock_write
  File "bzrlib\lockable_files.pyo", line 164, in lock_write
  File "bzrlib\lockdir.pyo", line 674, in lock_write
  File "bzrlib\lockdir.pyo", line 642, in wait_lock
LockContention: Could not acquire lock "(local)": file:///C:/Users/Sam/Documents/IT%20Support/AHK%20Dev/Projects/Check%20SDR33/source/

Revision history for this message
Ravi Wallau (raviaw) wrote :

Removing the "held" directory under the lock folder presented in the error message fixed the problem for me.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.