TooManyConcurrentRequests when pulling from lp in a lp bound branch

Bug #419732 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

bzr info
Repository checkout (format: unnamed)
Location:
  repository checkout root: .
        checkout of branch: bzr+ssh://bazaar.launchpad.net/~vila/bzr/2.0-integration/
         shared repository: /net/bigmamac.local/Volumes/home/vila/src/bzr

Related branches:
  public branch: http://bazaar.launchpad.net/~vila/bzr/2.0-integration/
    push branch: bzr+ssh://bazaar.launchpad.net/~vila/bzr/2.0-integration/
  parent branch: bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/2.0/
  submit branch: bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/2.0/

bzr pull -v

results in:

Using saved parent location: bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/2.0/
bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(connected=True, username=u'vila', host='bazaar.launchpad.net', port=None)' 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 "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/builtins.py", line 1017, in run
    possible_transports=possible_transports, local=local)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/workingtree.py", line 1606, in pull
    local=local)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/branch.py", line 948, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/branch.py", line 3197, in pull
    master_branch.unlock()
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/remote.py", line 2374, in unlock
    self._unlock(branch_token, repo_token)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/remote.py", line 2342, in _unlock
    repo_token or '', **err_context)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/remote.py", line 52, in _call
    return self._client.call(method, *args)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/client.py", line 129, in call
    result, protocol = self.call_expecting_body(method, *args)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/client.py", line 142, in call_expecting_body
    method, args, expect_response_body=True)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/client.py", line 76, in _call_and_read_response
    readv_body=readv_body, body_stream=body_stream)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/client.py", line 42, in _send_request
    protocol_version)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/client.py", line 112, in _construct_protocol
    request = self._medium.get_request()
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/medium.py", line 699, in get_request
    return SmartClientStreamMediumRequest(self)
  File "/net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/smart/medium.py", line 904, in __init__
    raise errors.TooManyConcurrentRequests(self._medium)
TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(connected=True, username=u'vila', host='bazaar.launchpad.net', port=None)' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.

bzr 2.0dev on python 2.6.2 (Linux-2.6.28-15-generic-i686-with-Ubuntu-9.04-jaunty)
arguments: ['/home/vila/bin/bzr', 'pull', '-v']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  bookmarks /home/vila/.bazaar/plugins/bookmarks [unknown]
  bzrtools /home/vila/.bazaar/plugins/bzrtools [1.18]
  defaultToUrllib /home/vila/.bazaar/plugins/defaultToUrllib [unknown]
  email /home/vila/.bazaar/plugins/email [unknown]
  explorer /home/vila/.bazaar/plugins/explorer [0.5dev]
  fastimport /home/vila/.bazaar/plugins/fastimport [unknown]
  fix277537 /home/vila/.bazaar/plugins/fix277537 [unknown]
  gtk /home/vila/.bazaar/plugins/gtk [0.97.0.dev.1]
  launchpad /net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/plugins/launchpad [2.0dev]
  local_test_server /home/vila/.bazaar/plugins/local_test_server [unknown]
  loom /home/vila/.bazaar/plugins/loom [1.4dev]
  netrc_credential_store /net/bigmamac.local/Volumes/home/vila/src/bzr/trunk/bzrlib/plugins/netrc_credential_store [2.0dev]
  pqm /home/vila/.bazaar/plugins/pqm [1.4dev]
  qbzr /home/vila/.bazaar/plugins/qbzr [0.14dev]
  removable /home/vila/.bazaar/plugins/removable [unknown]
  stats /home/vila/.bazaar/plugins/stats [unknown]
  transportstats /home/vila/.bazaar/plugins/transportstats [unknown]
  upload /home/vila/.bazaar/plugins/upload [1.0dev]
  webdav /home/vila/.bazaar/plugins/webdav [1.12.1]
  whitespace /home/vila/.bazaar/plugins/whitespace [0.0.1.dev.1]
  xmloutput /home/vila/.bazaar/plugins/xmloutput [0.8.3]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
HPSS calls: 52 (18 vfs) SmartSSHClientMedium(connected=False, username=u'vila', host='bazaar.launchpad.net', port=None)

The work around is to unbind, pull, push, bind.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Correction, the workaround is:
bzr unbind
bzr pull
bzr break-lock :push
bzr push
bzr bind

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.