bzr+ssh on Win32 dies in paramiko with EOFError when authentication failed

Bug #193779 reported by Ken Basye
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Low
Alexander Belchenko
paramiko
Fix Released
Medium
Robey Pointer

Bug Description

Summary of problem: on Windows running inside VMWare on Mac there is problem with paramiko: if user supplied wrong login name authentication failed with EOFError in ``File "paramiko\auth_handler.pyc", line 163, in wait_for_response``. Windows standalone installer uses paramiko v.1.7 (zubat) with ctypes modification (by Alexander Belchenko).

Original report:

Hi,
  I see some similar looking bug reports having to do with EOFError, but involving timeouts. I'm not seeing any sign of timeouts and I'm
getting these errors immediately. Below are three tracebacks from pull, missing, and branch commands. I have no problems dealing with
this server/archive from my Mac, but on Win32 I don't seem to be able to do anything without getting this error. For what it's worth, my Win32
machine is really a vmware instance running on a MacBookPro, but in general network access works fine from this "machine"; for example,
I'm filing this bug from Win32 Firefox running on the vmware instance.

C:\kbasye\work\code>bzr pull --remember bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/
code/
Connected (version 2.0, client OpenSSH_4.5)
SSH Ken <email address hidden> password:
bzr: ERROR: exceptions.EOFError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 790, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 628, in run
  File "bzrlib\branch.pyc", line 134, in open_from_transport
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 2402, in probe_transport
  File "bzrlib\smart\protocol.pyc", line 589, in query_version
  File "bzrlib\smart\protocol.pyc", line 477, in call
  File "bzrlib\smart\protocol.pyc", line 601, in _write_args
  File "bzrlib\smart\medium.pyc", line 270, in accept_bytes
  File "bzrlib\smart\medium.pyc", line 601, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 476, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 499, in _ensure_connection
  File "bzrlib\transport\ssh.pyc", line 319, in connect_ssh
  File "bzrlib\transport\ssh.pyc", line 307, in _connect
  File "bzrlib\transport\ssh.pyc", line 506, in _paramiko_auth
  File "paramiko\transport.pyc", line 1107, in auth_password
  File "paramiko\auth_handler.pyc", line 163, in wait_for_response
EOFError

bzr 1.2.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'pull', '--remember', 'bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bz
r/code/']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\la
unchpad [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.

C:\kbasye\work\code>bzr missing bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/code/
Connected (version 2.0, client OpenSSH_4.5)
SSH Ken <email address hidden> password:
bzr: ERROR: exceptions.EOFError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 790, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\commands.pyc", line 800, in ignore_pipe
  File "bzrlib\builtins.pyc", line 3276, in run
  File "bzrlib\branch.pyc", line 128, in open
  File "bzrlib\bzrdir.pyc", line 651, in open
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 2402, in probe_transport
  File "bzrlib\smart\protocol.pyc", line 589, in query_version
  File "bzrlib\smart\protocol.pyc", line 477, in call
  File "bzrlib\smart\protocol.pyc", line 601, in _write_args
  File "bzrlib\smart\medium.pyc", line 270, in accept_bytes
  File "bzrlib\smart\medium.pyc", line 601, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 476, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 499, in _ensure_connection
  File "bzrlib\transport\ssh.pyc", line 319, in connect_ssh
  File "bzrlib\transport\ssh.pyc", line 307, in _connect
  File "bzrlib\transport\ssh.pyc", line 506, in _paramiko_auth
  File "paramiko\transport.pyc", line 1107, in auth_password
  File "paramiko\auth_handler.pyc", line 163, in wait_for_response
EOFError

bzr 1.2.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'missing', 'bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/code/']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\la
unchpad [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.

C:\kbasye\work>bzr branch bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/code/ code_new

Connected (version 2.0, client OpenSSH_4.5)
SSH Ken <email address hidden> password:
bzr: ERROR: exceptions.EOFError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 790, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 879, in run
  File "bzrlib\bzrdir.pyc", line 773, in open_tree_or_branch
  File "bzrlib\bzrdir.pyc", line 651, in open
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\lazy_import.pyc", line 125, in __call__
  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 2402, in probe_transport
  File "bzrlib\smart\protocol.pyc", line 589, in query_version
  File "bzrlib\smart\protocol.pyc", line 477, in call
  File "bzrlib\smart\protocol.pyc", line 601, in _write_args
  File "bzrlib\smart\medium.pyc", line 270, in accept_bytes
  File "bzrlib\smart\medium.pyc", line 601, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 476, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 499, in _ensure_connection
  File "bzrlib\transport\ssh.pyc", line 319, in connect_ssh
  File "bzrlib\transport\ssh.pyc", line 307, in _connect
  File "bzrlib\transport\ssh.pyc", line 506, in _paramiko_auth
  File "paramiko\transport.pyc", line 1107, in auth_password
  File "paramiko\auth_handler.pyc", line 163, in wait_for_response
EOFError

bzr 1.2.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'branch', 'bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/code/', 'c
ode_new']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\la
unchpad [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.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 193779] [NEW] bzr+ssh on Win32 dies in paramiko with EOFError

Ken Basye пишет:
> Public bug reported:
>
> Hi,
> I see some similar looking bug reports having to do with EOFError, but involving timeouts. I'm not seeing any sign of timeouts and I'm
> getting these errors immediately. Below are three tracebacks from pull, missing, and branch commands. I have no problems dealing with
> this server/archive from my Mac, but on Win32 I don't seem to be able to do anything without getting this error. For what it's worth, my Win32
> machine is really a vmware instance running on a MacBookPro, but in general network access works fine from this "machine"; for example,
> I'm filing this bug from Win32 Firefox running on the vmware instance.
>
>
> C:\kbasye\work\code>bzr pull --remember bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/
> code/
> Connected (version 2.0, client OpenSSH_4.5)
> SSH Ken <email address hidden> password:
> bzr: ERROR: exceptions.EOFError:

Is it possible for you to open plain SSH session with Putty to that server and ensure
that SSH channel actually working without bzr?

Revision history for this message
Ken Basye (basye) wrote :
Download full text (8.7 KiB)

Hi,
  I installed Putty and used it to connect to the server with an
ssh session. I didn't see any problems.
   Thanks,
       Ken

Quoting Alexander Belchenko <email address hidden>:

> Ken Basye пишет:
> > Public bug reported:
> >
> > Hi,
> > I see some similar looking bug reports having to do with EOFError, but
> involving timeouts. I'm not seeing any sign of timeouts and I'm
> > getting these errors immediately. Below are three tracebacks from pull,
> missing, and branch commands. I have no problems dealing with
> > this server/archive from my Mac, but on Win32 I don't seem to be able to do
> anything without getting this error. For what it's worth, my Win32
> > machine is really a vmware instance running on a MacBookPro, but in general
> network access works fine from this "machine"; for example,
> > I'm filing this bug from Win32 Firefox running on the vmware instance.
> >
> >
> > C:\kbasye\work\code>bzr pull --remember
> bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/
> > code/
> > Connected (version 2.0, client OpenSSH_4.5)
> > SSH Ken <email address hidden> password:
> > bzr: ERROR: exceptions.EOFError:
>
> Is it possible for you to open plain SSH session with Putty to that server
> and ensure
> that SSH channel actually working without bzr?
>
> --
> bzr+ssh on Win32 dies in paramiko with EOFError
> https://bugs.launchpad.net/bugs/193779
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: New
>
> Bug description:
> Hi,
> I see some similar looking bug reports having to do with EOFError, but
> involving timeouts. I'm not seeing any sign of timeouts and I'm
> getting these errors immediately. Below are three tracebacks from pull,
> missing, and branch commands. I have no problems dealing with
> this server/archive from my Mac, but on Win32 I don't seem to be able to do
> anything without getting this error. For what it's worth, my Win32
> machine is really a vmware instance running on a MacBookPro, but in general
> network access works fine from this "machine"; for example,
> I'm filing this bug from Win32 Firefox running on the vmware instance.
>
>
>
>
> C:\kbasye\work\code>bzr pull --remember
> bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/
> code/
> Connected (version 2.0, client OpenSSH_4.5)
> SSH Ken <email address hidden> password:
> bzr: ERROR: exceptions.EOFError:
>
> Traceback (most recent call last):
> File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
> File "bzrlib\commands.pyc", line 790, in run_bzr
> File "bzrlib\commands.pyc", line 492, in run_argv_aliases
> File "bzrlib\builtins.pyc", line 628, in run
> File "bzrlib\branch.pyc", line 134, in open_from_transport
> File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
> File "bzrlib\transport\__init__.pyc", line 1662, in
> do_catching_redirections
> File "bzrlib\bzrdir.pyc", line 665, in find_format
> File "bzrlib\bzrdir.pyc", line 1417, in find_format
> File "bzrlib\bzrdir.pyc", line 2402, in probe_transport
> File "bzrlib\smart\protocol.pyc", line 589, in query_version
> File "bzrlib\smart\protocol.pyc", line 477, in call
> File "bzrlib\sma...

Read more...

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ken Basye пишет:
> Hi,
> I installed Putty and used it to connect to the server with an
> ssh session. I didn't see any problems.

Ok. Can you test some more to help us understand this situation?

Can you run command again with -Dhpss flag and show us relevant part
of .bzr.log? I.e. command will looks like:

C:\kbasye\work\code>bzr -Dhpss pull --remember bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/

Can you try with sftp protocol and say is it work?

C:\kbasye\work\code>bzr pull --remember sftp://gpsrv4.hltcoe.jhu.edu/srv/bzr/

Revision history for this message
Ken Basye (basye) wrote :
Download full text (12.7 KiB)

Hi,
  I did the tests. I didn't see any log file from running with -Dhpss.
When running with sftp, I got a different traceback, but the error looks like
the same one. Was I looking in the wrong place for the log file or ???
   Ken

C:\kbasye\work\code>bzr -Dhpss pull --remember bzr+ssh://gpsrv4.hltcoe.jhu.edu/

srv/bzr/code/

Connected (version 2.0, client OpenSSH_4.5)

SSH Ken <email address hidden> password:

bzr: ERROR: exceptions.EOFError:

Traceback (most recent call last):

  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors

  File "bzrlib\commands.pyc", line 790, in run_bzr

  File "bzrlib\commands.pyc", line 492, in run_argv_aliases

  File "bzrlib\builtins.pyc", line 628, in run

  File "bzrlib\branch.pyc", line 134, in open_from_transport

  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport

  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections

  File "bzrlib\bzrdir.pyc", line 665, in find_format

  File "bzrlib\bzrdir.pyc", line 1417, in find_format

  File "bzrlib\bzrdir.pyc", line 2402, in probe_transport

  File "bzrlib\smart\protocol.pyc", line 589, in query_version

  File "bzrlib\smart\protocol.pyc", line 477, in call

  File "bzrlib\smart\protocol.pyc", line 601, in _write_args

  File "bzrlib\smart\medium.pyc", line 270, in accept_bytes

  File "bzrlib\smart\medium.pyc", line 601, in _accept_bytes

  File "bzrlib\smart\medium.pyc", line 476, in _accept_bytes

  File "bzrlib\smart\medium.pyc", line 499, in _ensure_connection

  File "bzrlib\transport\ssh.pyc", line 319, in connect_ssh

  File "bzrlib\transport\ssh.pyc", line 307, in _connect

  File "bzrlib\transport\ssh.pyc", line 506, in _paramiko_auth

  File "paramiko\transport.pyc", line 1107, in auth_password

  File "paramiko\auth_handler.pyc", line 163, in wait_for_response

EOFError

bzr 1.2.0 on python 2.5.1.final.0 (win32)

arguments: ['bzr', '-Dhpss', 'pull', '--remember', 'bzr+ssh://gpsrv4.hltcoe.jhu.

edu/srv/bzr/code/']

encoding: 'cp1252', fsenc: 'mbcs', lang: None

plugins:

  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\la

unchpad [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.

C:\kbasye\work\code>ls

.bzr bzr_bug.txt readme site_scons

.bzrignore cpp README.txt templates

.sconsign.dblite monkey.au sandbox tmp

abnf monkey.wav scons trainer

bin projects SConscript yggdrasil

build py SConstruct

C:\kbasye\work\code>ls .bzr

branch branch-lock README

branch-format checkout repository

C:\kbasye\work\code>

C:\kbasye\work\code>bzr pull --remember sftp://gpsrv4.hltcoe.jhu.edu/srv/bzr/co

de/

Connected (version 2.0, client OpenSSH_4.5)

SSH Ken <email address hidden> password:

bzr: ERROR: exceptions.EOFError:

Traceback (most recent call last):

  File "bzrlib...

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ken Basye пишет:
> Hi,
> I did the tests. I didn't see any log file from running with -Dhpss.
> When running with sftp, I got a different traceback, but the error looks like
> the same one. Was I looking in the wrong place for the log file or ???

Usually log file resides in My Documents folder with the name .bzr.log.
Exact location is shown in the output of `bzr version`.

Revision history for this message
Ken Basye (basye) wrote :
Download full text (10.3 KiB)

OK, here are the log file contents for the tests you asked for:

6.968 return code 4

0.156 encoding stdout as sys.stdout encoding 'cp437'
0.156 bzr arguments: [u'-Dhpss', u'missing',
u'bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/code/']
0.156 looking for plugins in C:/Documents and Settings/Ken Basye/Application
Data/bazaar/2.0/plugins
0.156 looking for plugins in C:/Program Files/Bazaar/plugins
0.156 looking for plugins in C:\Program
Files\Bazaar\lib\library.zip\bzrlib\plugins
0.156 Looking for plugins in 'C:\\Program
Files\\Bazaar\\lib\\library.zip\\bzrlib\\plugins'
0.172 Names in archive: ['__init__.pyc', 'launchpad/__init__.pyc',
'launchpad/account.pyc', 'launchpad/lp_indirect.pyc',
'launchpad/lp_registration.pyc', 'launchpad/test_account.pyc',
'launchpad/test_lp_indirect.pyc', 'launchpad/test_lp_service.pyc',
'launchpad/test_register.pyc']
0.203 Load plugin launchpad from zip 'C:\\Program
Files\\Bazaar\\lib\\library.zip\\bzrlib\\plugins'
0.235 encoding stdout as sys.stdout encoding 'cp437'
1.953 hpss: Built a new medium: SmartSSHClientMedium
1.953 hpss call: 'hello',
1.953 falling back to default implementation
1.953 failed to load system host keys: [Errno 2] No such file or directory:
'C:\\Documents and Settings\\Ken Basye/.ssh/known_hosts'
[ 3096] 2008-02-21 10:43:08.290 INFO: Connected (version 2.0, client
OpenSSH_4.5)
3.594 encoding stdout as sys.stdout encoding 'cp437'
8.875 Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 790, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\commands.pyc", line 800, in ignore_pipe
  File "bzrlib\builtins.pyc", line 3276, in run
  File "bzrlib\branch.pyc", line 128, in open
  File "bzrlib\bzrdir.pyc", line 651, in open
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 2402, in probe_transport
  File "bzrlib\smart\protocol.pyc", line 589, in query_version
  File "bzrlib\smart\protocol.pyc", line 477, in call
  File "bzrlib\smart\protocol.pyc", line 601, in _write_args
  File "bzrlib\smart\medium.pyc", line 270, in accept_bytes
  File "bzrlib\smart\medium.pyc", line 601, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 476, in _accept_bytes
  File "bzrlib\smart\medium.pyc", line 499, in _ensure_connection
  File "bzrlib\transport\ssh.pyc", line 319, in connect_ssh
  File "bzrlib\transport\ssh.pyc", line 307, in _connect
  File "bzrlib\transport\ssh.pyc", line 506, in _paramiko_auth
  File "paramiko\transport.pyc", line 1107, in auth_password
  File "paramiko\auth_handler.pyc", line 163, in wait_for_response
EOFError

8.938 return code 4

0.156 encoding stdout as sys.stdout encoding 'cp437'
0.156 bzr arguments: [u'-Dhpss', u'pull', u'--remember',
u'bzr+ssh://gpsrv4.hltcoe.jhu.edu/srv/bzr/code/']
0.156 looking for plugins in C:/Documents and Settings/Ken Basye/Application
Data/bazaar/2.0/plugins
0.156 looking for plugins in C:/Pro...

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ken Basye пишет:
> OK, here are the log file contents for the tests you asked for:

Thank you. I'm not sure but it seems like authentication fails for you.
I don't know for sure, may be it's because there is space in your login.

You have another option for using bzr+ssh in your situation.
If you say that Putty works OK, then you could try to use plink.exe
instead of paramiko. But bzr+plink does not support entering password
in the console, so you need to use pageant as well and server
should have your public SSH key in ~/.ssh/authorized_keys.

To enable plink you need place this executable in the folder listed in $PATH
and add environment variable BZR_SSH=plink

Revision history for this message
Ken Basye (basye) wrote :
Download full text (11.1 KiB)

Hi,
   Thanks! I had completely forgotten that my Win32 install has this strange
login. On the server (and most of my other machines), I have a different
login.
When I went to the Win32 machine and used bzr+ssh://<my-real-login>@<server>
everything worked fine.

   So I think there are two problems. The first problem is user stupidity
caused by poor memory performance :->. The second problem is that paramiko
authentication failure throws this error. Just now, I tried
bzr+ssh://foo@<server> (there is no foo login on our server :->) and I got the
same error, so it's not really about the space in the login, I think.

   At this point I'm working again, which is great for me. I'll be happy to
help with more testing if you like; apparently the error is easy for me
to reproduce.

Umm...one more thing. I also just tried using the correct login (kbasye1) and
then giving a bad password. I got the error below. I can update the bug or
file a new one if you think that's necessary.
  Thanks again for catching my mistake,
     Ken

C:\kbasye\work\code>bzr pull --remember bzr+ssh://<email address hidden>/
srv/bzr/code
Connected (version 2.0, client OpenSSH_4.5)
SSH <email address hidden> password:
Authentication (password) failed.
bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium '<bzrlib.smart.m
edium.SmartSSHClientMedium object at 0x00AB0E30>' has reached its concurrent req
uest limit. Be sure to finish_writing and finish_reading on the currently open r
equest.

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 790, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 628, in run
  File "bzrlib\branch.pyc", line 134, in open_from_transport
  File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
  File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
  File "bzrlib\bzrdir.pyc", line 665, in find_format
  File "bzrlib\bzrdir.pyc", line 1417, in find_format
  File "bzrlib\bzrdir.pyc", line 2400, in probe_transport
  File "bzrlib\smart\medium.pyc", line 417, in get_request
  File "bzrlib\smart\medium.pyc", line 592, in __init__
TooManyConcurrentRequests: The medium '<bzrlib.smart.medium.SmartSSHClientMedium
 object at 0x00AB0E30>' has reached its concurrent request limit. Be sure to fin
ish_writing and finish_reading on the currently open request.

bzr 1.2.0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', 'pull', '--remember', 'bzr+ssh://<email address hidden>
u/srv/bzr/code']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\la
unchpad [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.

Quoting Alexander Belchenko <email address hidden>:

> Ken Basye пишет:
> > OK, here are the log file contents for the tests you asked for:
>
> Thank you. I'm not sure but it seems like authentication fails fo...

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ken Basye пишет:
> Umm...one more thing. I also just tried using the correct login (kbasye1) and
> then giving a bad password. I got the error below. I can update the bug or
> file a new one if you think that's necessary.

It should be another bug report.
I wonder if it is not already reported.

Andrew, are you aware about this problem?

> C:\kbasye\work\code>bzr pull --remember bzr+ssh://<email address hidden>/
> srv/bzr/code
> Connected (version 2.0, client OpenSSH_4.5)
> SSH <email address hidden> password:
> Authentication (password) failed.
> bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium '<bzrlib.smart.m
> edium.SmartSSHClientMedium object at 0x00AB0E30>' has reached its concurrent req
> uest limit. Be sure to finish_writing and finish_reading on the currently open r
> equest.
>
> Traceback (most recent call last):
> File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
> File "bzrlib\commands.pyc", line 790, in run_bzr
> File "bzrlib\commands.pyc", line 492, in run_argv_aliases
> File "bzrlib\builtins.pyc", line 628, in run
> File "bzrlib\branch.pyc", line 134, in open_from_transport
> File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
> File "bzrlib\transport\__init__.pyc", line 1662, in do_catching_redirections
> File "bzrlib\bzrdir.pyc", line 665, in find_format
> File "bzrlib\bzrdir.pyc", line 1417, in find_format
> File "bzrlib\bzrdir.pyc", line 2400, in probe_transport
> File "bzrlib\smart\medium.pyc", line 417, in get_request
> File "bzrlib\smart\medium.pyc", line 592, in __init__
> TooManyConcurrentRequests: The medium '<bzrlib.smart.medium.SmartSSHClientMedium
> object at 0x00AB0E30>' has reached its concurrent request limit. Be sure to fin
> ish_writing and finish_reading on the currently open request.
>
> bzr 1.2.0 on python 2.5.1.final.0 (win32)
> arguments: ['bzr', 'pull', '--remember', 'bzr+ssh://<email address hidden>
> u/srv/bzr/code']
> encoding: 'cp1252', fsenc: 'mbcs', lang: None
> plugins:
> launchpad C:\Program Files\Bazaar\lib\library.zip\bzrlib\plugins\la
> unchpad [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.

description: updated
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Ken Basye (basye) wrote : Re: [Bug 193779] Re: bzr+ssh on Win32 dies in paramiko with EOFError when authentication failed
Download full text (18.6 KiB)

Hi,
  I see Bug #125784, first reported on 2007-07-13, which looks like
the same report, so I won't file a new bug.
  Ken

Quoting Alexander Belchenko <email address hidden>:

> Ken Basye пишет:
> > Umm...one more thing. I also just tried using the correct login (kbasye1)
> and
> > then giving a bad password. I got the error below. I can update the bug
> or
> > file a new one if you think that's necessary.
>
> It should be another bug report.
> I wonder if it is not already reported.
>
> Andrew, are you aware about this problem?
>
> > C:\kbasye\work\code>bzr pull --remember
> bzr+ssh://<email address hidden>/
> > srv/bzr/code
> > Connected (version 2.0, client OpenSSH_4.5)
> > SSH <email address hidden> password:
> > Authentication (password) failed.
> > bzr: ERROR: bzrlib.errors.TooManyConcurrentRequests: The medium
> '<bzrlib.smart.m
> > edium.SmartSSHClientMedium object at 0x00AB0E30>' has reached its
> concurrent req
> > uest limit. Be sure to finish_writing and finish_reading on the currently
> open r
> > equest.
> >
> > Traceback (most recent call last):
> > File "bzrlib\commands.pyc", line 834, in run_bzr_catch_errors
> > File "bzrlib\commands.pyc", line 790, in run_bzr
> > File "bzrlib\commands.pyc", line 492, in run_argv_aliases
> > File "bzrlib\builtins.pyc", line 628, in run
> > File "bzrlib\branch.pyc", line 134, in open_from_transport
> > File "bzrlib\bzrdir.pyc", line 688, in open_from_transport
> > File "bzrlib\transport\__init__.pyc", line 1662, in
> do_catching_redirections
> > File "bzrlib\bzrdir.pyc", line 665, in find_format
> > File "bzrlib\bzrdir.pyc", line 1417, in find_format
> > File "bzrlib\bzrdir.pyc", line 2400, in probe_transport
> > File "bzrlib\smart\medium.pyc", line 417, in get_request
> > File "bzrlib\smart\medium.pyc", line 592, in __init__
> > TooManyConcurrentRequests: The medium
> '<bzrlib.smart.medium.SmartSSHClientMedium
> > object at 0x00AB0E30>' has reached its concurrent request limit. Be sure
> to fin
> > ish_writing and finish_reading on the currently open request.
> >
> > bzr 1.2.0 on python 2.5.1.final.0 (win32)
> > arguments: ['bzr', 'pull', '--remember',
> 'bzr+ssh://<email address hidden>
> > u/srv/bzr/code']
> > encoding: 'cp1252', fsenc: 'mbcs', lang: None
> > plugins:
> > launchpad C:\Program
> Files\Bazaar\lib\library.zip\bzrlib\plugins\la
> > unchpad [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.
>
> ** Summary changed:
>
> - bzr+ssh on Win32 dies in paramiko with EOFError
> + bzr+ssh on Win32 dies in paramiko with EOFError when authentication failed
>
> ** Description changed:
>
> + Summary of problem: on Windows running inside VMWare on Mac there is
> + problem with paramiko: if user supplied wrong login name authentication
> + failed with EOFError in ``File "paramiko\auth_handler.pyc", line 163,
> + in wait_for_response``. Windows standalone installer uses paramiko v.1.7
> + (zubat) with ctypes modification (by Alexander Belchenko).
> +...

Revision history for this message
Robey Pointer (robey) wrote :

reproduced. paramiko should not be raising EOFError here. it should be translated into an AuthException.

Changed in paramiko:
assignee: nobody → robey
importance: Undecided → Medium
milestone: none → 1.7.3
status: New → Confirmed
Revision history for this message
Robey Pointer (robey) wrote :

fixed @483 for paramiko 1.7.3.

Changed in paramiko:
status: Confirmed → Fix Committed
Robey Pointer (robey)
Changed in paramiko:
status: Fix Committed → Fix Released
Revision history for this message
Alexander Belchenko (bialix) wrote :

Standalone version of bzr (bzr.exe) v.1.4+ should bundle paramiko v.1.7.3 with required bugfix.

Changed in bzr:
assignee: nobody → bialix
milestone: none → 1.4
status: Confirmed → Triaged
Revision history for this message
Alexander Belchenko (bialix) wrote :

bzr.exe 1.4rc1 with paramiko 1.7.3 inside available for downloading.

Changed in bzr:
status: Triaged → Fix Released
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.