TooManyConcurrentRequests when failing to start remote bzr

Bug #209450 reported by Rob Weir
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

When BZR_REMOTE_PATH is unset, using "bzr pull" gives a sensible error, but "bzr pull url", even when copy and pasted from the "info" output, produces a scary looking traceback.
Slightly contrived example::

rob@egads:~/bzr.dev$ bzr info
Standalone tree (format: pack-0.92)
Location:
  branch root: .

Related branches:
  parent branch: bzr+ssh://localhost/home/rob/bzr.dev/
rob@egads:~/bzr.dev$ bzr pull
Using saved location: bzr+ssh://localhost/home/rob/bzr.dev/
rob@localhost's password:
bash: bzr: command not found
bzr: ERROR: Connection closed: please check connectivity and permissions (and try -Dhpss if further diagnosis is required)
rob@egads:~/bzr.dev$ bzr pull bzr+ssh://localhost/home/rob/bzr.dev/
rob@localhost's password:
bash: bzr: command not found
bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium '<bzrlib.smart.medium.SmartSSHClientMedium object at 0xb762f0ac>' 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 "/home/rob/bzr.dev/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/rob/bzr.dev/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/home/rob/bzr.dev/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/rob/bzr.dev/bzrlib/builtins.py", line 657, in run
    possible_transports=possible_transports)
  File "/home/rob/bzr.dev/bzrlib/branch.py", line 110, in open
    possible_transports=possible_transports)
  File "/home/rob/bzr.dev/bzrlib/bzrdir.py", line 651, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/home/rob/bzr.dev/bzrlib/bzrdir.py", line 688, in open_from_transport
    redirected)
  File "/home/rob/bzr.dev/bzrlib/transport/__init__.py", line 1657, in do_catching_redirections
    return action(transport)
  File "/home/rob/bzr.dev/bzrlib/bzrdir.py", line 664, in find_format
    return transport, BzrDirFormat.find_format(
  File "/home/rob/bzr.dev/bzrlib/bzrdir.py", line 1422, in find_format
    return format.probe_transport(transport)
  File "/home/rob/bzr.dev/bzrlib/bzrdir.py", line 2406, in probe_transport
    server_version = medium.protocol_version()
  File "/home/rob/bzr.dev/bzrlib/smart/medium.py", line 383, in protocol_version
    medium_request = self.get_request()
  File "/home/rob/bzr.dev/bzrlib/smart/medium.py", line 442, in get_request
    return SmartClientStreamMediumRequest(self)
  File "/home/rob/bzr.dev/bzrlib/smart/medium.py", line 617, in __init__
    raise errors.TooManyConcurrentRequests(self._medium)
TooManyConcurrentRequests: The medium '<bzrlib.smart.medium.SmartSSHClientMedium object at 0xb762f0ac>' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.

bzr 1.4dev on python 2.4.4 (linux2)
arguments: ['/home/rob/bin/bzr', 'pull', 'bzr+ssh://localhost/home/rob/bzr.dev/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  launchpad /home/rob/bzr.dev/bzrlib/plugins/launchpad [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.

Tags: hpss
Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
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.