bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps missing chk node(s) for parent_id_basename_to_file_id maps

Bug #1226897 reported by tiansiyuan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps
missing chk node(s) for parent_id_basename_to_file_id maps

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1131, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 695, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1489, in run
    to_repo.fetch(br_from.repository, revision_id=revision_id)
  File "/Library/Python/2.6/site-packages/bzrlib/vf_repository.py", line 1267, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/vf_repository.py", line 2584, in fetch
    find_ghosts=find_ghosts)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 77, in __init__
    self.__fetch()
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 104, in __fetch
    self._fetch_everything_for_search(search_result)
  File "/Library/Python/2.6/site-packages/bzrlib/fetch.py", line 132, in _fetch_everything_for_search
    stream, from_format, [])
  File "/Library/Python/2.6/site-packages/bzrlib/vf_repository.py", line 2050, in insert_stream
    hint = self.target_repo.commit_write_group()
  File "/Library/Python/2.6/site-packages/bzrlib/repository.py", line 633, in commit_write_group
    result = self._commit_write_group()
  File "/Library/Python/2.6/site-packages/bzrlib/repofmt/pack_repo.py", line 1727, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/Library/Python/2.6/site-packages/bzrlib/repofmt/pack_repo.py", line 1607, in _commit_write_group
    "Cannot add revision(s) to repository: " + problems_summary)
BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps
missing chk node(s) for parent_id_basename_to_file_id maps

bzr 2.5.0 on python 2.6.7 (Darwin-11.4.2-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'branch', 'lp:maria', 'trunk']
plugins: bash_completion[2.5.0], bzrtools[2.5.0], changelog_merge[2.5.0],
    colo[0.4.0], email[unknown], explorer[1.2.2], fastimport[0.14.0dev],
    git[0.6.7], keychain[0.1.0], launchpad[2.5.0], loom[2.2.1dev],
    netrc_credential_store[2.5.0], news_merge[2.5.0], pipeline[1.4.0],
    po_merge[2.5.0], qbzr[0.22.1], rewrite[0.6.4dev], svn[1.2.1],
    upload[1.0.1dev], weave_fmt[2.5.0], xmloutput[0.8.8]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'zh_CN.UTF-8'

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Download full text (4.0 KiB)

Steps to reproduce:

$ mkdir -p ~/packages/systemd/bzr
$ cd ~/packages/systemd/bzr
$ bzr init-repo .
$ bzr branch lp:ubuntu/systemd
Most recent Ubuntu version: 219-4ubuntu5
Packaging branch version: 204-10ubuntu1
Packaging branch status: OUT-OF-DATE
bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps
missing chk node(s) for parent_id_basename_to_file_id maps

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1507, in run
    source_branch=br_from)
  File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 367, in sprout
    create_tree_if_local=create_tree_if_local)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 417, in _sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1268, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 2585, in fetch
    find_ghosts=find_ghosts)
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 77, in __init__
    self.__fetch()
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 104, in __fetch
    self._fetch_everything_for_search(search_result)
  File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 132, in _fetch_everything_for_search
    stream, from_format, [])
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 2051, in insert_stream
    hint = self.target_repo.commit_write_group()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 633, in commit_write_group
    result = self._commit_write_group()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/pack_repo.py", line 1727, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/pack_repo.py", line 1607, in _commit_write_group
    "Can...

Read more...

Revision history for this message
You-Sheng Yang (vicamo) wrote :

This affects multiple versions inclusive of that in Debian:

bzr 2.7.0dev1 on python 2.7.9 (Linux-3.16.0-4-amd64-x86_64-with-Ubuntu-15.04-vivid)
bzr 2.7.0dev1 on python 2.7.9 (Linux-3.16.0-4-amd64-armv7l-with-Ubuntu-15.04-vivid)
bzr 2.7.0dev1 on python 2.7.9 (Linux-3.16.0-4-amd64-x86_64-with-debian-8.0)

Revision history for this message
Alex Tu (alextu) wrote :

hi,
I just try to fork that repository in my side (Ubuntu Trusty), it works.

This is my steps for your reference:

$ bzr branch lp:ubuntu/systemd
Most recent Ubuntu version: 219-4ubuntu8
Packaging branch version: 204-10ubuntu1
Packaging branch status: OUT-OF-DATE
 18363kB 1071kB/s | Fetching revisions:Inserting stream:Estimate 17143/17145
Branched 74 revisions.

$ bzr --version
Bazaar (bzr) 2.7.0dev1
  Python interpreter: /usr/bin/python 2.7.6
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.13.0-46-generic-x86_64-with-Ubuntu-14.04-trusty
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/alextu/.bazaar
  Bazaar log file: /home/alextu/.bzr.log

$ dpkg -l | grep bzr
ii bzr 2.6.0+bzr6593-1ubuntu1.1 all easy to use distributed version control system
ii bzr-builddeb 2.8.7ubuntu1 all bzr plugin for Debian package management
ii bzr-explorer 1.3.0-2 all GUI application for using Bazaar
ii bzrtools 2.6.0-1 all Collection of tools for bzr
ii golang-gocheck-dev 0.0~bzr20131118+85-2 all Richer testing framework for Go libraries and applications to use
ii python-bzrlib 2.6.0+bzr6593-1ubuntu1.1 amd64 distributed version control system - python library
ii qbzr 0.23.1-1 all Graphical interface for Bazaar using the Qt toolkit
ii sessioninstaller 0.20+bzr141-0ubuntu4 all APT based installer using PackageKit's session DBus API
ii systemd-shim 6-2bzr1 amd64 shim for systemd

Copyright 2005-2012 Canonical Ltd.
http://bazaar.canonical.com/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

The one in utopic doesn't work, either.

$ bzr --version
Bazaar (bzr) 2.7.0dev1
  Python interpreter: /usr/bin/python 2.7.8
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.16.0-4-amd64-x86_64-with-Ubuntu-14.10-utopic
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/vicamo/.bazaar
  Bazaar log file: /home/vicamo/.bzr.log

Copyright 2005-2012 Canonical Ltd.
http://bazaar.canonical.com/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

$ apt-cache policy bzr
bzr:
  Installed: 2.6.0+bzr6595-1ubuntu1
  Candidate: 2.6.0+bzr6595-1ubuntu1
  Version table:
 *** 2.6.0+bzr6595-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Ok, this should only be reproducible when shared repository is used (`bzr init-repo .`). That is, following commands failed with the error messages reported:

  $ bzr init-repo .
  $ bzr branch lp:ubuntu/systemd

while following one succeeds:

  $ bzr branch lp:ubuntu/systemd

Verified on utopic/trusty/vivid/sid.

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.