bzrlib.errors.ReadingCompleted Internal error

Bug #246650 reported by thava
6
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Undecided
Unassigned
bzr (Debian)
Fix Released
Unknown

Bug Description

bzr pull/branch is failing. I tried from different machines with working configurations for other users.
Only I am hitting the issue. Creating new repository and fresh checkout is also failing with same problem--
so the problem is not specific to parent workspace.

These are the traces:

~/mysql/repo/mysql-6.0 $ bzr pull
Using saved location: bzr+ssh://myusername@hostname/bzrroot/server/mysql-6.0/
bzr: ERROR: bzrlib.errors.ReadingCompleted: The MediumRequest '<bzrlib.smart.medium.SmartClientStreamMediumRequest object at 0xb78ae6ac>' has already had finish_reading called upon it - the request has been completed and no more data may be read.

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 646, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.4/site-packages/bzrlib/branch.py", line 107, in open
    possible_transports=possible_transports)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 667, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 704, in open_from_transport
    redirected)
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/__init__.py", line 1616, in do_catching_redirections return action(transport)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 680, in find_format
    return transport, BzrDirFormat.find_format(
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1440, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1450, in probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/remote.py", line 189, in get
    return StringIO(self.get_bytes(relpath))
  File "/usr/lib/python2.4/site-packages/bzrlib/transport/remote.py", line 200, in get_bytes
    return smart_protocol.read_body_bytes()
  File "/usr/lib/python2.4/site-packages/bzrlib/smart/protocol.py", line 590, in read_body_bytes
    bytes = self._request.read_bytes(bytes_wanted)
  File "/usr/lib/python2.4/site-packages/bzrlib/smart/medium.py", line 370, in read_bytes
    raise errors.ReadingCompleted(self)
ReadingCompleted: The MediumRequest '<bzrlib.smart.medium.SmartClientStreamMediumRequest object at 0xb78ae6ac>' has already had finish_reading called upon it - the request has been completed and no more data may be read.
bzr 1.5 on python 2.4.3 (linux2)
arguments: ['/usr/bin/bzr', 'pull']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.5.0]
  difftools /usr/lib/python2.4/site-packages/bzrlib/plugins/difftools [0.91.0]
  extmerge /usr/lib/python2.4/site-packages/bzrlib/plugins/extmerge [unknown]
  gtk /usr/lib/python2.4/site-packages/bzrlib/plugins/gtk [0.94.0]
  launchpad /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [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
thava (thavamuni-alagu) wrote :

It turned out to be the source of the problem is ssh communication. I had .ssh keys setup to avoid prompting of passwords for ssh. I could have not suspected ssh first, because ssh over my destination machine was just working fine. However I noticed the problem when scp was not working (but ssh was ok!). After I removed my .ssh directory, the problem disappeared.

However, this bug needs to be fixed to give proper error message when ssh communication does not work properly.

Revision history for this message
Roman Erzhukov (romaerzhuk) wrote :
Download full text (3.3 KiB)

I have same bug only running a Bazaar server from inetd.
Dedicated server was worked ok.

These are the traces:

bzr branch bzr://localhost/repo
bzr: ERROR: bzrlib.errors.ReadingCompleted: The MediumRequest '<bzrlib.smart.medium.SmartClientStreamMediumRequest object at 0xb6c29dec>' has already had finish_reading called upon it - the request has been completed and no more data may be read.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 916, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 789, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 667, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 704, in open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1616, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 681, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1440, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1450, in probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/remote.py", line 189, in get
    return StringIO(self.get_bytes(relpath))
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/remote.py", line 200, in get_bytes
    return smart_protocol.read_body_bytes()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 590, in read_body_bytes
    bytes = self._request.read_bytes(bytes_wanted)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 370, in read_bytes
    raise errors.ReadingCompleted(self)
ReadingCompleted: The MediumRequest '<bzrlib.smart.medium.SmartClientStreamMediumRequest object at 0xb6c29dec>' has already had finish_reading called upon it - the request has been completed and no more data may be read.

bzr 1.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'bzr://localhost/repo']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'ru_RU.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plu...

Read more...

Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Confirmed
Changed in bzr:
status: Unknown → New
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Andrew, do you perhaps know whether this bug has been fixed since 1.5 ?

Changed in bzr (Debian):
status: New → Fix Released
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.