Bzr gives ugly error error message when server requires non-existant ssh keys

Bug #148731 reported by Andrew Hunter
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Permission denied (publickey).
bzr: ERROR: exceptions.AssertionError: end of file reading from server.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 817, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 779, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 477, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 718, in run
    dir_to = bzrdir.BzrDir.open_from_transport(to_transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 568, in open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1505, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 545, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1249, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 2218, in probe_transport
    server_version = smart_protocol.query_version()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 409, in query_version
    resp = self.read_response_tuple()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 357, in read_response_tuple
    result = self._recv_tuple()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 394, in _recv_tuple
    return _decode_tuple(self._recv_line())
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 403, in _recv_line
    assert new_char != '', "end of file reading from server."
AssertionError: end of file reading from server.

bzr 0.90.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push', 'bzr+ssh://<email address hidden>/~rexbron/genpo/ubuntu']

** please send this report to <email address hidden>

Revision history for this message
Andrew Hunter (rexbron) wrote :

This is the output of the same command but with sftp:// instead:

bzr push sftp://<email address hidden>/~rexbron/genpo/ubuntu
Permission denied (publickey).
bzr: ERROR: Unable to connect to SSH host bazaar.launchpad.net; EOF during negotiation

Perhaps in both cases, the error message should be more helpful.

Revision history for this message
Martin Pool (mbp) wrote :

In this case, like the other, the ssh client is exiting early and we don't handle it well.

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.