"bzr up" crashes

Bug #827041 reported by James Newell
This bug report is a duplicate of:  Bug #413430: ShortReadvError on index file. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

This problem occurs on "bzr up" to group's Launchpad repo from behind the uni proxy. It used to update fine.

-----

bzr: ERROR: bzrlib.errors.ShortReadvError: readv() read 0 bytes rather than 224 bytes at 0 for "6d9e438bf3c0810670d6f7754182c385.rix"

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 924, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1124, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 711, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1413, in run
    old_tip = branch.update(possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 2803, in update
    self.pull(master, overwrite=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1089, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3492, in pull
    merge_tags_to_master=not source_is_master)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3602, in _pull
    overwrite=overwrite, graph=graph)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1038, in update_revisions
    overwrite, graph)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3435, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 687, in fetch
    pb=pb)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 1777, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 3433, in fetch
    find_ghosts=find_ghosts)
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 72, in __init__
    self.__fetch()
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 94, in __fetch
    search = self._revids_to_fetch()
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 160, in _revids_to_fetch
    find_ghosts=self.find_ghosts)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 1604, in search_missing_revision_ids
    revision_id, find_ghosts)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 3499, in search_missing_revision_ids
    return self._walk_to_common_revisions([revision_id])
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 3468, in _walk_to_common_revisions
    have_revs = set(target_graph.get_parent_map(revs_to_get))
  File "/usr/lib/python2.7/dist-packages/bzrlib/graph.py", line 167, in get_parent_map
    parent_map = self._get_parent_map(needed_revisions)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 2689, in get_parent_map
    self.revisions.get_parent_map(query_keys).iteritems():
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 1332, in get_parent_map
    return self._get_parent_map_with_sources(keys)[0]
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 1351, in _get_parent_map_with_sources
    new_result = source.get_parent_map(missing)
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 2047, in get_parent_map
    for node in nodes:
  File "/usr/lib/python2.7/dist-packages/bzrlib/groupcompress.py", line 2019, in _get_entries
    for node in self._graph_index.iter_entries(keys):
  File "/usr/lib/python2.7/dist-packages/bzrlib/index.py", line 1360, in iter_entries
    for node in index.iter_entries(keys):
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 1162, in iter_entries
    if not self.key_count():
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 1443, in key_count
    self._get_root_node()
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 940, in _get_root_node
    self._get_internal_nodes([0])
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 965, in _get_internal_nodes
    return self._get_nodes(self._internal_node_cache, node_indexes)
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 957, in _get_nodes
    found.update(self._get_and_cache_nodes(needed))
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 734, in _get_and_cache_nodes
    for node_pos, node in self._read_nodes(sorted(nodes)):
  File "/usr/lib/python2.7/dist-packages/bzrlib/btree_index.py", line 1557, in _read_nodes
    for offset, data in data_ranges:
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/__init__.py", line 704, in _seek_and_read
    c_offset.length, actual=len(data))
ShortReadvError: readv() read 0 bytes rather than 224 bytes at 0 for "6d9e438bf3c0810670d6f7754182c385.rix"

bzr 2.3.4 on python 2.7.1 (Linux-2.6.38-10-generic-i686-with-
    Ubuntu-11.04-natty)
arguments: ['/usr/bin/bzr', 'up']
plugins: bash_completion[2.3.4], bzrtools[2.3.1], launchpad[2.3.4],
    netrc_credential_store[2.3.4], news_merge[2.3.4]
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** 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.

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

Hi, James,

This means the index file is truncated (bug 413340), either on your local disk or on Launchpad or as it as seen through the proxy.

Have a look for that file in your local .bzr/ directory; if it has size zero then I recommend you get a fresh checkout.

Otherwise, I would recommend you get a checkout over ssh which should avoid problems with the ssh proxy.

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.