Comment 5 for bug 122001

Revision history for this message
Wouter van Heyst (larstiq) wrote :

The error message bzr itself gives is very vague though, I just ran into this problem with resolve:

>> bzr resolved NEWS
bzr: ERROR: Could not acquire lock [Errno 11] Resource temporarily unavailable

Running with -Derror gives some more info:

>> bzr resolved NEWS -Derror
bzr: ERROR: bzrlib.errors.LockContention: Could not acquire lock [Errno 11] Resource temporarily unavailable

Traceback (most recent call last):
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/commands.py", line 729, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/commands.py", line 691, in run_bzr
    ret = run(*run_argv)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/commands.py", line 389, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/conflicts.py", line 117, in run
    resolve(tree, file_list)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/conflicts.py", line 121, in resolve
    tree.lock_tree_write()
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/workingtree_4.py", line 616, in lock_tree_write
    self._lock_self_write()
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/workingtree_4.py", line 600, in _lock_self_write
    state.lock_write()
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/dirstate.py", line 2350, in lock_write
    self._lock_token = lock.WriteLock(self._filename)
  File "/home/larstiq/src/bzr/bzr.dev/bzrlib/lock.py", line 146, in __init__
    raise errors.LockContention(e)
LockContention: Could not acquire lock [Errno 11] Resource temporarily unavailable