missing inventory - ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository

Bug #346895 reported by thom
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned

Bug Description

Hello,

I am getting the following error:

thom@thom-desktop:~/dev/rpg/rpg3$ bzr upload ftp://<email address hidden>/private/temp
FTP <email address hidden> password:
bzr: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository('file:///home/thom/dev/rpg/rpg3/.bzr/repository/') has no revision ('thom@thom-desktop-20090321152445-9xye1pjxpc8xcgnn',)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/upload/__init__.py", line 123, in run
    self.upload_tree()
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/upload/__init__.py", line 259, in upload_tree
    from_tree = self.branch.repository.revision_tree(rev_id)
  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 1663, in revision_tree
    inv = self.get_revision_inventory(revision_id)
  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 1627, in get_revision_inventory
    return self.get_inventory(revision_id)
  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 1520, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1538, in _iter_inventories
    for text, revision_id in self._iter_inventory_xmls(revision_ids):
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1549, in _iter_inventory_xmls
    raise errors.NoSuchRevision(self, record.key)
NoSuchRevision: KnitPackRepository('file:///home/thom/dev/rpg/rpg3/.bzr/repository/') has no revision ('thom@thom-desktop-20090321152445-9xye1pjxpc8xcgnn',)

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'upload', 'ftp://<email address hidden>/private/temp']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'nl_NL.UTF-8'
plugins:
  avahi /usr/lib/python2.5/site-packages/bzrlib/plugins/avahi [0.3.0dev0]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  email /usr/lib/python2.5/site-packages/bzrlib/plugins/email [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  pqm /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.0.0dev0]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.13]
  upload /usr/lib/python2.5/site-packages/bzrlib/plugins/upload [0.1.0]
*** 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.
thom@thom-desktop:~/dev/rpg/rpg3$

It worked before...

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 346895] [NEW] ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository

On Sun, 2009-03-22 at 18:52 +0000, thom wrote:
> Public bug reported:
>
> Hello,
>
> I am getting the following error:
>
> thom@thom-desktop:~/dev/rpg/rpg3$ bzr upload ftp://<email address hidden>/private/temp

> FTP <email address hidden> password:
> bzr: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository('file:///home/thom/dev/rpg/rpg3/.bzr/repository/') has no revision ('thom@thom-desktop-20090321152445-9xye1pjxpc8xcgnn',)

Can you run 'bzr check' please.

Revision history for this message
flickerfly (josiah-ritchie) wrote : Re: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository
Download full text (4.6 KiB)

I believe I'm having the same problem with one of my branches. I'm includig the bzr check as requested by Robert Collins.

$ bzr upload
Using saved location: sftp://<email address hidden>/home/josiah/public_html/sites/ptsic.domain.com/
bzr: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository('file:///Users/Josiah/htdocs/drupal-6.10/sites/ptsic.localhost/.bzr/repository/') has no revision ('<email address hidden>',)

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 896, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 842, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 542, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/Josiah/.bazaar/plugins/upload/__init__.py", line 420, in run
    uploader.upload_tree()
  File "/Users/Josiah/.bazaar/plugins/upload/__init__.py", line 267, in upload_tree
    from_tree = self.branch.repository.revision_tree(rev_id)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line 1809, in revision_tree
    inv = self.get_revision_inventory(revision_id)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line 1772, in get_revision_inventory
    return self.get_inventory(revision_id)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line 1663, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line 1681, in _iter_inventories
    for text, revision_id in self._iter_inventory_xmls(revision_ids):
  File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line 1692, in _iter_inventory_xmls
    raise errors.NoSuchRevision(self, record.key)
NoSuchRevision: KnitPackRepository('file:///Users/Josiah/htdocs/drupal-6.10/sites/ptsic.localhost/.bzr/repository/') has no revision ('<email address hidden>',)

bzr 1.12 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'upload']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  automv /Users/Josiah/.bazaar/plugins/automv [unknown]
  bzr_push_and_update /Users/Josiah/.bazaar/plugins/bzr_push_and_update [0.2dev]
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.12]
  difftools /Users/Josiah/.bazaar/plugins/difftools [0.91]
  email /Library/Python/2.5/site-packages/bzrlib/plugins/email [unknown]
  extmerge /Library/Python/2.5/site-packages/bzrlib/plugins/extmerge [unknown]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  loom /Library/Python/2...

Read more...

Revision history for this message
Robert Collins (lifeless) wrote :

You're definitely missing an inventory. The question is why. please run bzr plugins (so we can see what plugins you have), and 'bzr log --show-ids' to let us get some historical data. Feel free to mask out the commit messages if this is a private branch, but please don't alter/mask the revision ids.

summary: - ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository
+ missing inventory - ERROR: bzrlib.errors.NoSuchRevision:
+ KnitPackRepository
Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
flickerfly (josiah-ritchie) wrote :
Download full text (11.6 KiB)

Here's the information on plugins I have installed. The upload is the only plugin I'm really interested it.

$ bzr plugins
automv
    Automatically detect renames/moves in the working tree.

bzr_push_and_update 0.2dev
    A plugin for pushing and updating a remote repository.

bzrtools 1.12
    Various useful commands for working with bzr.

difftools 0.91
    External diff tools plugin for Bazaar

email
    Sending emails upon commit with information about the commit.

extmerge
    external merge plugin for bzr

launchpad
    Launchpad.net integration plugin for Bazaar.

loom 1.4dev
    Loom is a bzr plugin which adds new commands to manage a loom of patches.

netrc_credential_store
    Use ~/.netrc as a credential store for authentication.conf.

qbzr 0.9.8
    QBzr - Qt-based frontend for Bazaar

rebase 0.4dev
    Rebase support.

search 1.7dev
    search is a bzr plugin for searching bzr content.

svn 0.5.2
    Support for Subversion branches

upload 1.0dev
    Upload a working tree, incrementally.

##################################################

$ bzr log --show-ids
------------------------------------------------------------
revno: 28
revision-id: <email address hidden>
parent: <email address hidden>
committer: Josiah something <email address hidden>
branch nick: Company.localhost
timestamp: Mon 2009-06-15 15:35:10 -0400
message:
  final touch-ups on Miriam's fixes to the theme
------------------------------------------------------------
revno: 27
revision-id: <email address hidden>
parent: <email address hidden>
committer: Josiah something <email address hidden>
branch nick: Company.localhost
timestamp: Thu 2009-06-11 16:28:58 -0400
message:
  Applying Miriam's changes to the theme
------------------------------------------------------------
revno: 26
revision-id: <email address hidden>
parent: <email address hidden>
committer: Josiah something <email address hidden>
branch nick: Company.localhost
timestamp: Mon 2009-06-08 23:06:45 -0400
message:
  minor theme tweaks for the admin area
------------------------------------------------------------
revno: 25
revision-id: <email address hidden>
parent: <email address hidden>
committer: Josiah something <email address hidden>
branch nick: Company.localhost
timestamp: Mon 2009-06-08 22:05:45 -0400
message:
  minor theme tweaks for the add/edit form to provide some clarity visually
------------------------------------------------------------
revno: 24
revision-id: <email address hidden>
parent: <email address hidden>
committer: Josiah something <email address hidden>
branch nick: Company.localhost
timestamp: Mon 2009-06-08 21:46:20 -0400
message:
  minor theme tweaks to clean some things up
------------------------------------------------------------
revno: 23
revision-id: <email address hidden>...

Jelmer Vernooij (jelmer)
tags: added: missing-inventory
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Strangely enough the problematic revision id doesn't actually appear in the history.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: 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.