TooManyConcurrentRequests when trying to commit to a network repo with no network connection

Bug #571064 reported by Stuart P. Bentley
84
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Triaged
High
Unassigned

Bug Description

This happens when I try to commit to Launchpad on my laptop with no internet connection.

bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(bzr+ssh://<email address hidden>/)' 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 "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "D:\bzr\bzr-windows-installers\build-win32\release\bzr.2.1.0\bzrlib\plugins\qbzr\lib\commands.py", line 788, in run
  File "D:\bzr\bzr-windows-installers\build-win32\release\bzr.2.1.0\bzrlib\plugins\qbzr\lib\subprocess.py", line 786, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 3138, in run
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\workingtree_4.pyo", line 197, in commit
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\mutabletree.pyo", line 225, in commit
  File "bzrlib\commit.pyo", line 257, in commit
  File "bzrlib\cleanup.pyo", line 118, in run
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\commit.pyo", line 332, in _commit
  File "bzrlib\commit.pyo", line 473, in _check_bound_branch
  File "bzrlib\decorators.pyo", line 140, in read_locked
  File "bzrlib\branch.pyo", line 2381, in get_master_branch
  File "bzrlib\branch.pyo", line 169, in open
  File "bzrlib\bzrdir.pyo", line 843, in open
  File "bzrlib\bzrdir.pyo", line 878, in open_from_transport
  File "bzrlib\bzrdir.pyo", line 2088, in open
  File "bzrlib\bzrdir.pyo", line 3327, in _open
  File "bzrlib\remote.pyo", line 115, in __init__
  File "bzrlib\remote.pyo", line 127, in _probe_bzrdir
  File "bzrlib\remote.pyo", line 134, in _rpc_open_2_1
  File "bzrlib\remote.pyo", line 52, in _call
  File "bzrlib\smart\client.pyo", line 132, in call
  File "bzrlib\smart\client.pyo", line 145, in call_expecting_body
  File "bzrlib\smart\client.pyo", line 90, in _call_and_read_response
  File "bzrlib\smart\client.pyo", line 45, in _send_request
  File "bzrlib\smart\client.pyo", line 115, in _construct_protocol
  File "bzrlib\smart\medium.pyo", line 707, in get_request
  File "bzrlib\smart\medium.pyo", line 916, in __init__
TooManyConcurrentRequests: The medium 'SmartSSHClientMedium(bzr+ssh://<email address hidden>/)' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request.

bzr 2.1.0 on python 2.5.4 (Windows-Vista-6.1.7600)
arguments: ['C:\\Program Files (x86)\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l6:commit2:-m13:not even real9:--exclude63:C:/Users/Stuart/Documents/bzr/addon/gamecorner/goldeen/revealed11:--unchangede']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [2.1.0]
  explorer C:\Program Files (x86)\Bazaar\plugins\explorer [1.0.1]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [2.1.0]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [2.1.0]
  news_merge C:\Program Files (x86)\Bazaar\plugins\news_merge [2.1.0]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.18.3]
  rebase C:\Program Files (x86)\Bazaar\plugins\rebase [0.5.5]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [1.0.2]
  upload C:\Program Files (x86)\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files (x86)\Bazaar\plugins\xmloutput [0.8.6]

*** 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.

Tags: hpss
Revision history for this message
Stuart P. Bentley (stuart) wrote :

While this scenario should trigger an error, it should be a clean error stating there's no network connection and suggesting --local.

Revision history for this message
Andrew Bennetts (spiv) wrote :

Hmm! This was supposed to be fixed in 2.1, but apparently isn't, or at least not completely. I wonder what's going on...

Hopefully it should be straightforward to reproduce: I think the situation is a checkout whose master branch is on a smart server, but the smart server is inaccessible.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
tags: added: hpss
Martin Pool (mbp)
Changed in bzr:
importance: Medium → High
Revision history for this message
Marc Schumann (wurblzap) wrote :

For the record, this just happened to me with 2.0rc2, too, when trying to commit via ssh while not having my private key unlocked in the authentication agent.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → High
tags: removed: 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.