smart server gives traceback on connection errors

Bug #82634 reported by Robert Collins
12
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Unassigned

Bug Description

 affects /products/bzr
$ bzr merge bzr+ssh://HOST/branch
ssh: connect to host HOST port 22: Connection timed out
ssh_exchange_identification: Connection closed by remote host
bzr: ERROR: exceptions.AssertionError: end of file reading from server.

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 650, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 612, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 304, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 2275, in run
    reader = bundle.read_bundle_from_url(branch)
  File "/usr/lib/python2.4/site-packages/bzrlib/bundle/__init__.py", line 46, in read_bundle_from_url
    f = t.get(filename)
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/smart.py", line 1046, in get
    return StringIO(self.get_bytes(relpath))
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/smart.py", line 1052, in get_bytes
    resp = protocol.read_response_tuple(True)
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/smart.py", line 1490, in read_response_tuple
    result = self._recv_tuple()
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/smart.py", line 1521, in _recv_tuple
    assert new_char != '', "end of file reading from server."
AssertionError: end of file reading from server.

bzr 0.14.0 on python 2.4.4.candidate.1 (linux2)
arguments: ['/usr/bin/bzr', 'merge', 'bzr+ssh://HOST/branch']
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 82634] smart server gives traceback on connection errors

Robert Collins пишет:
> Public bug reported:
>
> affects /products/bzr
> $ bzr merge bzr+ssh://HOST/branch
> ssh: connect to host HOST port 22: Connection timed out
> ssh_exchange_identification: Connection closed by remote host
> bzr: ERROR: exceptions.AssertionError: end of file reading from server.

BTW, too many smart server tests fails on windows with the same error.
I post the report after 0.14 release.

Andrew Bennetts (spiv)
Changed in bzr:
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Bubba Siggler (bud3) wrote :

I agree even I am running feisty. There is a lot of mail that has this trace back it starts out lines 650. 612 etc):

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 82634] Re: smart server gives traceback on connection errors

On 3/30/07, Bubba Siggler <email address hidden> wrote:
> I agree even I am running feisty. There is a lot of mail that has this
> trace back it starts out lines 650. 612 etc):

What mail is that?

--
Martin

Revision history for this message
Bubba Siggler (bud3) wrote :

I was Thinking of asking you Guys if setting up a win 2k sp4 : By the way I would like to apologize for any thing that it out of line. I am new but what you Guys & Gals are doing is leading the next generation move.

Revision history for this message
Bubba Siggler (bud3) wrote :

I have no idea what mail. I subscribed to bzr its mail collaboration learning for me What get sent to me it say me. I focus on that mail. I treat it as your mail archive to its self. Just like the mailman except he is way better that I.

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

This particular code is now gone, as we no longer have assertions.

If the connection is refused you now get a reasonable error with no traceback. I'm not sure about timeouts.

mbp@grace% bzr log bzr+ssh://launchpad.net/
ssh: connect to host launchpad.net port 22: Connection refused
bzr: ERROR: Connection closed: please check connectivity and permissions

Changed in bzr:
status: Confirmed → Fix Released
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/82634

tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.