SSHException: lost ssh-agent in paramiko.agent on win7

Bug #644995 reported by rhfan
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

D:\ok>bzr branch lp:financisto
Connected (version 2.0, client Twisted)
bzr: ERROR: paramiko.SSHException: lost ssh-agent

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 911, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1111, in run_bzr
  File "bzrlib\commands.pyo", line 689, in run_argv_aliases
  File "bzrlib\commands.pyo", line 704, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1209, in run
  File "bzrlib\bzrdir.pyo", line 1032, in open_tree_or_branch
  File "bzrlib\bzrdir.pyo", line 911, in open
  File "bzrlib\bzrdir.pyo", line 946, in open_from_transport
  File "bzrlib\bzrdir.pyo", line 2216, in open
  File "bzrlib\bzrdir.pyo", line 3468, in _open
  File "bzrlib\remote.pyo", line 118, in __init__
  File "bzrlib\remote.pyo", line 130, in _probe_bzrdir
  File "bzrlib\remote.pyo", line 137, in _rpc_open_2_1
  File "bzrlib\remote.pyo", line 55, 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 63, in _send_request
  File "bzrlib\smart\protocol.pyo", line 1309, in call
  File "bzrlib\smart\protocol.pyo", line 1133, in _write_end
  File "bzrlib\smart\protocol.pyo", line 1099, in flush
  File "bzrlib\smart\medium.pyo", line 396, in accept_bytes
  File "bzrlib\smart\medium.pyo", line 978, in _accept_bytes
  File "bzrlib\smart\medium.pyo", line 794, in _accept_bytes
  File "bzrlib\smart\medium.pyo", line 818, in _ensure_connection
  File "bzrlib\transport\ssh.pyo", line 329, in connect_ssh
  File "bzrlib\transport\ssh.pyo", line 317, in _connect
  File "bzrlib\transport\ssh.pyo", line 486, in _paramiko_auth
  File "paramiko\agent.pyo", line 77, in __init__
  File "paramiko\agent.pyo", line 108, in _send_message
  File "paramiko\agent.pyo", line 116, in _read_all
SSHException: lost ssh-agent

bzr 2.2.0 on python 2.6.4 (Windows-post2008Server-6.1.7600)
arguments: ['bzr', 'branch', 'lp:financisto']
encoding: 'cp950', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
  colo C:\Program Files\Bazaar\plugins\colo [0.1.0]
  explorer C:\Program Files\Bazaar\plugins\explorer [1.1b1]
  fastimport C:\Program Files\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.2.0]
  loom C:\Program Files\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store
[2.2.0]
  news_merge C:\Program Files\Bazaar\plugins\news_merge [2.2.0]
  pipeline C:\Program Files\Bazaar\plugins\pipeline [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.19.0]
  rewrite C:\Program Files\Bazaar\plugins\rewrite [0.6.0]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.3]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\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.

rhfan (rhfan0725)
security vulnerability: yes → no
visibility: private → public
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 644995] [NEW] bzr branch lp:financisto fail on win7

rhfan пишет:
> Public bug reported:
>
> D:\ok>bzr branch lp:financisto
> Connected (version 2.0, client Twisted)
> bzr: ERROR: paramiko.SSHException: lost ssh-agent

What ssh-agent you are using?

Revision history for this message
rhfan (rhfan0725) wrote : Re: [Bug 644995] [NEW] bzr branch lp:financisto fail on win7
Download full text (4.4 KiB)

Dear Alexander Belchenko:

Nice to meet you.
I use bzr-2.2.0-setup.exe , download from Bazaar Web Site.
http://wiki.bazaar.canonical.com/Download
Do you have any solution ?
thanks for your help.

2010/9/22 Alexander Belchenko <email address hidden>

> rhfan пишет:
> > Public bug reported:
> >
> > D:\ok>bzr branch lp:financisto
> > Connected (version 2.0, client Twisted)
> > bzr: ERROR: paramiko.SSHException: lost ssh-agent
>
> What ssh-agent you are using?
>
> --
> bzr branch lp:financisto fail on win7
> https://bugs.launchpad.net/bugs/644995
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: New
>
> Bug description:
> D:\ok>bzr branch lp:financisto
> Connected (version 2.0, client Twisted)
> bzr: ERROR: paramiko.SSHException: lost ssh-agent
>
> Traceback (most recent call last):
> File "bzrlib\commands.pyo", line 911, in exception_to_return_code
> File "bzrlib\commands.pyo", line 1111, in run_bzr
> File "bzrlib\commands.pyo", line 689, in run_argv_aliases
> File "bzrlib\commands.pyo", line 704, in run
> File "bzrlib\cleanup.pyo", line 135, in run_simple
> File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
> File "bzrlib\builtins.pyo", line 1209, in run
> File "bzrlib\bzrdir.pyo", line 1032, in open_tree_or_branch
> File "bzrlib\bzrdir.pyo", line 911, in open
> File "bzrlib\bzrdir.pyo", line 946, in open_from_transport
> File "bzrlib\bzrdir.pyo", line 2216, in open
> File "bzrlib\bzrdir.pyo", line 3468, in _open
> File "bzrlib\remote.pyo", line 118, in __init__
> File "bzrlib\remote.pyo", line 130, in _probe_bzrdir
> File "bzrlib\remote.pyo", line 137, in _rpc_open_2_1
> File "bzrlib\remote.pyo", line 55, 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 63, in _send_request
> File "bzrlib\smart\protocol.pyo", line 1309, in call
> File "bzrlib\smart\protocol.pyo", line 1133, in _write_end
> File "bzrlib\smart\protocol.pyo", line 1099, in flush
> File "bzrlib\smart\medium.pyo", line 396, in accept_bytes
> File "bzrlib\smart\medium.pyo", line 978, in _accept_bytes
> File "bzrlib\smart\medium.pyo", line 794, in _accept_bytes
> File "bzrlib\smart\medium.pyo", line 818, in _ensure_connection
> File "bzrlib\transport\ssh.pyo", line 329, in connect_ssh
> File "bzrlib\transport\ssh.pyo", line 317, in _connect
> File "bzrlib\transport\ssh.pyo", line 486, in _paramiko_auth
> File "paramiko\agent.pyo", line 77, in __init__
> File "paramiko\agent.pyo", line 108, in _send_message
> File "paramiko\agent.pyo", line 116, in _read_all
> SSHException: lost ssh-agent
>
>
> bzr 2.2.0 on python 2.6.4 (Windows-post2008Server-6.1.7600)
> arguments: ['bzr', 'branch', 'lp:financisto']
> encoding: 'cp950', fsenc: 'mbcs', lang: None
> plugins:
> bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
> colo C:\Program Files\Bazaar\plugins\colo [0.1.0]
> explorer C:\Program Files\Bazaar\plugins\explorer [1.1b1]
> fastimport ...

Read more...

Revision history for this message
Andrew Bennetts (spiv) wrote : Re: bzr branch lp:financisto fail on win7

One bug here is that we probably shouldn't give a traceback when paramiko.SSHException is raised.

Martin Pool (mbp)
summary: - bzr branch lp:financisto fail on win7
+ SSHException: lost ssh-agent in paramiko.agent on win7
Revision history for this message
Martin Pool (mbp) wrote :

@rhfan, the question is, are you using putty or any other ssh-related software?

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 644995] [NEW] bzr branch lp:financisto fail on win7

rhfan пишет:
> Dear Alexander Belchenko:
>
> Nice to meet you.
> I use bzr-2.2.0-setup.exe , download from Bazaar Web Site.
> http://wiki.bazaar.canonical.com/Download
> Do you have any solution ?
> thanks for your help.

Do you have pageant?

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Der_Meister (der-heavysoft) wrote :

Hello!

I have similar problem. With-out pageant a have one response:
bzr: ERROR: Connection error: Unable to authenticate to SSH host as
  <email address hidden>

If I run pageant then I get:

Run command: bzr branch lp:jukebox/trunk T:\Devel\2011_Bzr\der\trunk
Connected (version 2.0, client Twisted)
bzr: ERROR: paramiko.SSHException: lost ssh-agent

bzr 2.2.1 on python 2.6.4 (Windows-post2008Server-6.1.7600)
arguments: ['C:\\Program Files (x86)\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l6:branch16:lp:jukebox/trunk27:T:\\Devel\\2011_Bzr\\der\\trunke']
encoding: 'cp1251', fsenc: 'mbcs', lang: None

Revision history for this message
Der_Meister (der-heavysoft) wrote :

Reproduced on x64 machine. Other workstation has no problems on Windows 7 x86.

Martin Pool (mbp)
Changed in bzr:
status: Incomplete → Opinion
status: Opinion → Confirmed
Revision history for this message
Der_Meister (der-heavysoft) wrote :

The problem is reproduced when pageant.exe is executed by Administrator account.

If I run pageant.exe by myself everything is ok.

Jelmer Vernooij (jelmer)
tags: added: paramiko ssh
Revision history for this message
Jon Dye (jon-pecorous) wrote :

Is this related to bug #736955?

Revision history for this message
Martin Packman (gz) wrote :

Well detected Jon, that does seem to be the root cause. Unfortunately upstream paramiko is pretty dead, so we may have to carry patches for the Bazaar win64 install to get fixed.

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.