Repository corruption issue
Andreas Rottmann
a.rottmann at gmx.at
Mon Oct 19 19:56:07 BST 2009
Hi!
I've a corruption issue with a repository initially imported from
Arch. This repository used to work fine, but fails with newer bzr:s. I
assume it was borked from the beginning (the Arch import was about 3
years ago), but bzr started to notice just recently.
The borked repository is available via
bzr branch lp:~rotty/g-wrap/dev.
Branch the repository works fine, but "bzr check" and e.g. "bzr log"
fail afterwards. I first asked on IRC, and was advised to "bzr
reconcile", which said "revision history ok." and "Inventory ok.", but
failed with a similiar-looking error after that. Anyway, here is the
output from "bzr check" using bzr 2.0.1:
ormat <RepositoryFormatKnit1> for file:///home/rotty/src/g-wrap/dev/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
Checking working tree at '/home/rotty/src/g-wrap/dev'.
Checking branch at 'file:///home/rotty/src/g-wrap/dev/'.
Checking repository at 'file:///home/rotty/src/g-wrap/dev/'.
bzr: ERROR: bzrlib.errors.SHA1KnitCorrupt: Knit <bzrlib.knit._VFContentMapGenerator object at 0x2150e90> corrupt: sha-1 of reconstructed text does not match expected sha-1. key ('Arch-1:lcourtes at laas.fr--2004-libre%g-wrap--devo--1.9.6--patch-1',) expected sha a0f6d700dd6d071b7bf3892740bc67496e623f81 actual sha 249ce6b7d9d68f1498befebe01632eaf226a6a53
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 842, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1037, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 654, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 3138, in run
check_dwim(path, verbose, do_branch=branch, do_repo=repo, do_tree=tree)
File "/usr/lib/python2.5/site-packages/bzrlib/check.py", line 456, in check_dwim
check_repo=do_repo)
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 2766, in check
check_repo=check_repo)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 2770, in _check
result.check(callback_refs)
File "/usr/lib/python2.5/site-packages/bzrlib/check.py", line 102, in check
self.repository._check_inventories(self)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1171, in _check_inventories
self._do_check_inventories(checker, bar)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1203, in _do_check_inventories
current_keys[('inventories',) + record.key])
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1237, in _check_record
record.get_bytes_as('fulltext'))
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 358, in get_bytes_as
chunks = self._generator._get_one_work(self.key).text()
File "/usr/lib/python2.5/site-packages/bzrlib/knit.py", line 2135, in _get_one_work
raise SHA1KnitCorrupt(self, actual_sha, digest, key, text)
SHA1KnitCorrupt: Knit <bzrlib.knit._VFContentMapGenerator object at 0x2150e90> corrupt: sha-1 of reconstructed text does not match expected sha-1. key ('Arch-1:lcourtes at laas.fr--2004-libre%g-wrap--devo--1.9.6--patch-1',) expected sha a0f6d700dd6d071b7bf3892740bc67496e623f81 actual sha 249ce6b7d9d68f1498befebe01632eaf226a6a53
bzr 2.0.1 on python 2.5.4 (Linux-2.6.30-2-amd64-x86_64-with-debian-squeeze-sid)
arguments: ['/usr/bin/bzr', 'check']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'C'
plugins:
bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [2.0.1]
dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [0.1.0dev]
fastimport /home/rotty/.bazaar/plugins/fastimport [0.9.0dev]
launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [2.0.1]
netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [2.0.1]
*** 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.
Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>
More information about the bazaar
mailing list