bzr unable to contact paramiko ssh agent when run as a different user

Bug #1225213 reported by sbspider
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

Hello
I was recently using Bazaar, on Windows, and had left the command line on Admin mode. When I ran a bzr pull command, i recieved the following trace:

bzr: ERROR: paramiko.SSHException: lost ssh-agent

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 930, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1141, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 697, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1189, in run
  File "bzrlib\bundle\__init__.pyo", line 46, in read_mergeable_from_url
  File "bzrlib\bundle\__init__.pyo", line 64, in read_mergeable_from_transport
  File "bzrlib\transport\__init__.pyo", line 1719, in do_catching_redirections
  File "bzrlib\bundle\__init__.pyo", line 52, in get_bundle
  File "bzrlib\transport\remote.pyo", line 225, in get_bytes
  File "bzrlib\smart\client.pyo", line 72, in call_expecting_body
  File "bzrlib\smart\client.pyo", line 55, in _call_and_read_response
  File "bzrlib\smart\client.pyo", line 155, in call_and_read_response
  File "bzrlib\smart\client.pyo", line 218, in _call_determining_protocol_version
  File "bzrlib\smart\client.pyo", line 189, in _call
  File "bzrlib\smart\client.pyo", line 267, in _send
  File "bzrlib\smart\client.pyo", line 315, in _send_no_retry
  File "bzrlib\smart\protocol.pyo", line 1308, in call
  File "bzrlib\smart\protocol.pyo", line 1131, in _write_end
  File "bzrlib\smart\protocol.pyo", line 1097, in flush
  File "bzrlib\smart\medium.pyo", line 545, in accept_bytes
  File "bzrlib\smart\medium.pyo", line 1176, in _accept_bytes
  File "bzrlib\smart\medium.pyo", line 988, in _accept_bytes
  File "bzrlib\smart\medium.pyo", line 1012, in _ensure_connection
  File "bzrlib\transport\ssh.pyo", line 334, in connect_ssh
  File "bzrlib\transport\ssh.pyo", line 322, in _connect
  File "bzrlib\transport\ssh.pyo", line 505, in _paramiko_auth
  File "paramiko\agent.pyo", line 78, in __init__
  File "paramiko\agent.pyo", line 110, in _send_message
  File "paramiko\agent.pyo", line 118, in _read_all
SSHException: lost ssh-agent

bzr 2.6b1 on python 2.6.6 (Windows-post2008Server-6.2.9200)
arguments: ['C:\\Program Files (x86)\\Bazaar\\bzr.exe', 'pull', 'lp:bzr']
plugins: bzrtools[2.5.0], changelog_merge[2.6b1], colo[0.4.0],
    explorer[1.3.0dev], fastimport[0.14.0dev], git[0.6.8dev],
    launchpad[2.6b1], loom[2.3.0dev], netrc_credential_store[2.6b1],
    news_merge[2.6b1], pipeline[1.4.0], qbzr[0.23.0dev], rewrite[0.6.4dev],
    svn[1.2.2dev], upload[1.2.0dev], xmloutput[0.8.8]
encoding: 'cp1252', fsenc: 'mbcs', lang: None

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

Again, this only occurs when I am on Admin mode.

Revision history for this message
John A Meinel (jameinel) wrote :

I've run into this in the past. It boils down to the fact that paramiko is using a named pipe for communication and doesn't allow another user access. Which is fine, and is probably correct for security purposes. Bazaar should probably be resilient here and just fall back to ssh-without-agent.

summary: - Error in bzr commands when run as Admin
+ bzr unable to contact paramiko ssh agent when run as a different user
Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: 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.