'bzr check' returns an internal error

Asked by Paul Malherbe

When doing a 'bzr check' the following is displayed:

Format <RepositoryFormatKnit1> for file:///home/paul/Tartan-3/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
Checking working tree at 'file:///home/paul/Tartan-3/'.
Checking repository at 'file:///home/paul/Tartan-3/'.
bzr: ERROR: exceptions.KeyError: ('wgc310.jpg-20050729071740-412f90b3e2949fbb', '<email address hidden>')

Traceback (most recent call last):
  File "//usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "//usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "//usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "//usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2513, 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 302, in check_dwim
    result = repo.check()
  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 1889, in check
    return self._check(revision_ids)
  File "//usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1893, in _check
    result.check()
  File "//usr/lib/python2.5/site-packages/bzrlib/check.py", line 84, in check
    self.check_one_rev(rev_id)
  File "//usr/lib/python2.5/site-packages/bzrlib/check.py", line 195, in check_one_rev
    self._check_revision_tree(rev_id)
  File "//usr/lib/python2.5/site-packages/bzrlib/check.py", line 234, in _check_revision_tree
    ie.check(self, rev_id, inv, tree)
  File "//usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 282, in check
    self._check(checker, rev_id, tree)
  File "//usr/lib/python2.5/site-packages/bzrlib/inventory.py", line 494, in _check
    if (self.text_sha1 != tree._repository.texts.get_sha1s([key])[key]):
KeyError: ('wgc310.jpg-20050729071740-412f90b3e2949fbb', '<email address hidden>')

bzr 1.10 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'check']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: None
plugins:
  launchpad /usr/lib/python2.5/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.

Question information

Language:
English Edit question
Status:
Expired
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #316275.

Revision history for this message
Martin Pool (mbp) said :
#1

It looks like you have some referenced data missing from your repository. You may be able to recover from this situation by running 'bzr reconcile' on the repository. We apologise for the trouble. Please let us know if that fixes it or not.

Revision history for this message
Paul Malherbe (paul-tartan) said :
#2

No, it did not fix it as it too bombs out with:

.......
  File "//usr/lib/python2.5/site-packages/bzrlib/repository.py", line 3367, in check_file_version_parents
    knit_parents = parent_map[key]
KeyError: ('ctlins_idx.csv-20050729071741-f14b12e301c28479', '<email address hidden>')

bzr 1.10 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'reconcile']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: None
plugins:
  launchpad /usr/lib/python2.5/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
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.