bzr: ERROR: bzrlib.errors.ShortReadvError: readv()

Bug #475134 reported by Taylor "Ripps" LeMasurier-Wren
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
Incomplete
Undecided
Unassigned

Bug Description

I get this error everytime I run my daily.sh ppa-bot:
bzr: ERROR: bzrlib.errors.ShortReadvError: readv() read 0 bytes rather than 228 bytes at 0 for "cedac2085c8e02d840192e1b110df078.rix"

It leaves a crash for me to file, but apport says that package associated with it is no longer installed.

Revision history for this message
Taylor "Ripps" LeMasurier-Wren (ripps818) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

Hi,

Sorry for the delay in responding.

This looks like the index file has been truncated on disk. This sometimes happens because of a machine crash while bzr is running. Is this in a launchpad branch?

   File "/usr/lib/python2.6/dist-packages/bzrlib/index.py", line 1290, in iter_entries
     for node in index.iter_entries(keys):
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 1101, in iter_entries
     if not self.key_count():
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 1383, in key_count
     self._get_root_node()
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 879, in _get_root_node
     self._get_internal_nodes([0])
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 904, in _get_internal_nodes
     return self._get_nodes(self._internal_node_cache, node_indexes)
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 896, in _get_nodes
     found.update(self._get_and_cache_nodes(needed))
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 686, in _get_and_cache_nodes
     for node_pos, node in self._read_nodes(sorted(nodes)):
   File "/usr/lib/python2.6/dist-packages/bzrlib/btree_index.py", line 1494, in _read_nodes
     for offset, data in data_ranges:
   File "/usr/lib/python2.6/dist-packages/bzrlib/transport/__init__.py", line 701, in _seek_and_read
     c_offset.length, actual=len(data))
 ShortReadvError: readv() read 0 bytes rather than 228 bytes at 0 for "cedac2085c8e02d840192e1b110df078.rix"

If you're not yet unblocked on that branch, you probably need to restore it from backup or it may be possible to cut that file out of the repository.

Changed in bzr:
status: New → Incomplete
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.