bzr crashed with NoSuchRevision in _iter_inventories(): CHKInventoryRepository('file:///home/username/dspace/repo/.bzr/repository/') has no revision ('<email address hidden>',)

Bug #918658 reported by Àlex Magaz
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Undecided
Unassigned
bzr (Ubuntu)
New
Medium
Unassigned

Bug Description

It happens when running 'bzr check' on a branch that seems to be corrupted after a power cut (I think) in the middle of a commit or soon thereafter.

I was trying to solve a problem with Bazaar Explorer which was showing this error:

bzr: ERROR: bzrlib.plugins.qbzr.lib.loggraphviz.GhostRevisionError: {<email address hidden>} is a ghost.
[...]

Also from command line:

$ bzr update
bzr: ERROR: Revisions have no common ancestor: <email address hidden> <email address hidden>

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: bzr 2.4.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-15.25-generic-pae 3.0.13
Uname: Linux 3.0.0-15-generic-pae i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
BzrDebugFlags: set()
BzrVersion: 2.4.2
CommandLine: ['/usr/bin/bzr', 'check']
CrashDb: bzr
Date: Thu Jan 19 13:11:45 2012
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
InterpreterPath: /usr/bin/python2.7
Locale: ca_ES.UTF-8
PackageArchitecture: all
Platform: Linux-3.0.0-15-generic-pae-i686-with-Ubuntu-11.10-oneiric
ProcCmdline: /usr/bin/python /usr/bin/bzr check
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=ca_ES.UTF-8
 LANGUAGE=
PythonVersion: 2.7.2
SourcePackage: bzr
Title: bzr crashed with NoSuchRevision in _iter_inventories(): CHKInventoryRepository('file:///home/username/dspace/repo/.bzr/repository/') has no revision ('<email address hidden>',)
UpgradeStatus: Upgraded to oneiric on 2011-11-04 (76 days ago)
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Revision history for this message
Àlex Magaz (rivaldi8) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Àlex Magaz (rivaldi8) wrote :

I've just noticed what may be the cause of the problem. It says:

[...] CHKInventoryRepository('file:///home/username/dspace/repo/.bzr/repository/') [...]

Instead of '/home/username', it should say '/home/alexm'.

visibility: private → public
Changed in bzr (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Vincent Ladeuil (vila) wrote :

> Instead of '/home/username', it should say '/home/alexm'.

If that's the case, bzr finds it in .bzr/branch/branch.conf or some other config file (locations.conf).

'bzr info' and/or 'bzr config' in your directory branch should help you find where.

Most probably the layout on disk changed and you're still referring to a previously valid value that bzr memorized.

Changed in bzr:
status: New → Incomplete
Revision history for this message
Àlex Magaz (rivaldi8) wrote :

Sorry for the late response.

Somehow I managed to solve the problem, but I made the mistake of not keeping the problematic branch around, so I can't reproduce the problem any more. Also, I can't find any full path stored in any Bazaar configuration file.

I can't assure you but I'd say I already looked for the path in the different configuration files. At the time it seemed to me as if the path was constructed somewhere but without replacing 'username' with its value.

Sorry I can't give you more information. Please, tell me if you still think I can run some test or give some additional information to help to fix the bug.

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.