unable to obtain lock after push failure

Bug #210280 reported by Bill Filler
4
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned

Bug Description

I tried to push to bzr and got the error [1] below. Try to push again and get error [2]. Is there a way to clear out the lock so I can push?

error [1]:
bfiller@bfiller-ironhorse:~/src/hildon-1$ bzr push bzr+ssh://<email address hidden>/~ubuntu-mobile/hildon-1/ubuntu
bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium '<bzrlib.smart.medium.SmartSSHClientMedium object at 0x8781e0c>' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 824, in run
    push_result = br_from.push(br_to, overwrite)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1571, in push
    target.unlock()
  File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1168, in unlock
    self._unlock(branch_token, repo_token)
  File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1134, in _unlock
    repo_token or '')
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 33, in call
    result, protocol = self.call_expecting_body(method, *args)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/client.py", line 45, in call_expecting_body
    request = self.get_smart_medium().get_request()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 410, in get_request
    return SmartClientStreamMediumRequest(self)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 578, in __init__
    raise errors.TooManyConcurrentRequests(self._medium)
TooManyConcurrentRequests: The medium '<bzrlib.smart.medium.SmartSSHClientMedium object at 0x8781e0c>' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.

bzr 1.0.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push', 'bzr+ssh://<email address hidden>/~ubuntu-mobile/hildon-1/ubuntu']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

error [2]:
bfiller@bfiller-ironhorse:~/src/hildon-1$ bzr push bzr+ssh://<email address hidden>/~ubuntu-mobile/hildon-1/ubuntu
Unable to obtain lock lp--1228046164:///lock
held by <email address hidden> on host vostok [process #12523]
locked 8 minutes, 9 seconds ago
Will continue to try until 15:39:48

bzr version info (running on gutsy)
 bzr --version
Bazaar (bzr) 1.0.0
  Python interpreter: /usr/bin/python 2.5.1.final.0
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/bfiller/.bazaar
  Bazaar log file: /home/bfiller/.bzr.log

Revision history for this message
Martin Albisetti (beuno) wrote :

To break the lock, you have to run: bzr break-lock bzr+ssh://<email address hidden>/~ubuntu-mobile/hildon-1/ubuntu

You may have to run it multiple times.

I'm marking this as invalid, although I believe you shouldn't be getting a traceback.

Feel free to open it up again if you think this doesn't resolve it.

Changed in bzr:
status: New → Invalid
Revision history for this message
Bill Filler (bfiller) wrote :

thanks, that did the trick. Don't know why I got the initial failure w/traceback though. It's the first time I've seen that error..

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.