bzr crashed with NoSuchRevision in get_branch_revnum(): <bzrlib.plugins.svn.cache.tdbcache.RevisionIdMapCache object at 0x2cf9490> has no revision <email address hidden>

Bug #805583 reported by Luca Pireddu
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-svn (Ubuntu)
New
Medium
Unassigned

Bug Description

I'm trying to push revisions to a centralized SVN repository. bzr crashes with the reported error, although it seems to have already pushed the revisions.

Removing ~/.bazaar/svn-cache had no effect (the cache was recreated under ~/.cache but bzr crashed just the same).

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.1-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-30.54-generic 2.6.35.13
Uname: Linux 2.6.35-30-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.3.1
CommandLine: ['/usr/bin/bzr', 'push', 'http://svn.crs4.it/bl/apps/seal/trunk']
CrashDb: bzr
Date: Mon Jul 4 18:41:30 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
InterpreterPath: /usr/bin/python2.7
Locale: en_US.utf8
PackageArchitecture: all
Platform: Linux-2.6.35-30-generic-x86_64-with-Ubuntu-11.04-natty
ProcCmdline: /usr/bin/python /usr/bin/bzr push http://svn.crs4.it/bl/apps/seal/trunk
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.utf8
 LANGUAGE=en_US
PythonVersion: 2.7.1
SourcePackage: bzr
Title: bzr crashed with NoSuchRevision in get_branch_revnum(): <bzrlib.plugins.svn.cache.tdbcache.RevisionIdMapCache object at 0x2cf9490> has no revision <email address hidden>
UpgradeStatus: Upgraded to natty on 2011-07-04 (0 days ago)
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout fuse lpadmin plugdev sambashare vboxusers x2gousers

Revision history for this message
Luca Pireddu (pireddu) wrote :
tags: removed: need-duplicate-check
Luca Pireddu (pireddu)
visibility: private → public
Revision history for this message
Luca Pireddu (pireddu) wrote :
Download full text (5.0 KiB)

I can no longer checkout the SVN repository with bzr

bzr co http://svn.crs4.it/bl/apps/seal/trunk seal
HTTP svn.crs4.it, Realm: 'Subversion repository bl' username: simleo
HTTP <email address hidden>, Realm: 'Subversion repository bl' password:
Initialising Subversion metadata cache in
/home/simleo/.cache/bazaar/svn/0cdf8b0b-c6e5-4d59-8f63-774bc065f136.
Upgrade server to svn 1.5 or higher for faster retrieving of revision
properties.
Recorded left hand side parent
<email address hidden> for revision
<email address hidden> does not match actual
left hand side parent
svn-v4:0cdf8b0b-c6e5-4d59-8f63-774bc065f136:apps/seal/trunk:941.
bzr: ERROR: bzrlib.errors.NoSuchRevision:
CHKInventoryRepository('file:///home/simleo/bzr/seal/.bzr/repository/')
has no revision ('<email address hidden>',)

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 912,
in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1112,
in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 690,
in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 705,
in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135,
in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165,
in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/builtins.py", line 1342,
in run
    accelerator_tree, hardlink)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/branch.py",
line 376, in create_checkout
    hardlink=hardlink)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/branch.py",
line 321, in _create_heavyweight_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/usr/lib/python2.7/site-packages/bzrlib/branch.py", line 1068,
in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/branch.py",
line 817, in pull
    stop_revision, overwrite, limit=limit)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/branch.py",
line 749, in _update_revisions
    project=self.source.project, mapping=self.source.mapping)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/fetch.py",
line 1525, in fetch
    pack_hint = self._fetch_revisions(needed, pb)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/fetch.py",
line 1452, in _fetch_revisions
    use_replay=self._use_replay)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/fetch.py",
line 1414, in _fetch_revisions_nochunks
    editor = self._get_editor(revmeta, mapping)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/fetch.py",
line 1319, in _get_editor
    bzr_parent_trees = self._get_parent_trees(revmeta, mapping)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/svn/fetch.py",
line 1304, i...

Read more...

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This host appears to be down, which makes it hard to reproduce the issue.

Revision history for this message
Luca Pireddu (pireddu) wrote : Re: [Bug 805583] Re: bzr crashed with NoSuchRevision in get_branch_revnum(): <bzrlib.plugins.svn.cache.tdbcache.RevisionIdMapCache object at 0x2cf9490> has no revision username@crs4.it-20110509102021-of29dnlx8czvznlt

That address is for our internal SVN server. There's no public
access. Is there something specific you'd like to me try to help you
diagnose the problem?

On 30 July 2011 14:37, Jelmer Vernooij <email address hidden> wrote:
> This host appears to be down, which makes it hard to reproduce the
> issue.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/805583
>
> Title:
>  bzr crashed with NoSuchRevision in get_branch_revnum():
>  <bzrlib.plugins.svn.cache.tdbcache.RevisionIdMapCache object at
>  0x2cf9490> has no revision
>  <email address hidden>
>
> Status in “bzr-svn” package in Ubuntu:
>  New
>
> Bug description:
>  I'm trying to push revisions to a centralized SVN repository.  bzr
>  crashes with the reported error, although it seems to have already
>  pushed the revisions.
>
>  Removing ~/.bazaar/svn-cache had no effect (the cache was recreated
>  under ~/.cache but bzr crashed just the same).
>
>  ProblemType: Crash
>  DistroRelease: Ubuntu 11.04
>  Package: bzr 2.3.1-1ubuntu1
>  ProcVersionSignature: Ubuntu 2.6.35-30.54-generic 2.6.35.13
>  Uname: Linux 2.6.35-30-generic x86_64
>  NonfreeKernelModules: nvidia
>  Architecture: amd64
>  BzrDebugFlags: set()
>  BzrVersion: 2.3.1
>  CommandLine: ['/usr/bin/bzr', 'push', 'http://svn.crs4.it/bl/apps/seal/trunk']
>  CrashDb: bzr
>  Date: Mon Jul  4 18:41:30 2011
>  ExecutablePath: /usr/bin/bzr
>  FileSystemEncoding: UTF-8
>  InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
>  InterpreterPath: /usr/bin/python2.7
>  Locale: en_US.utf8
>  PackageArchitecture: all
>  Platform: Linux-2.6.35-30-generic-x86_64-with-Ubuntu-11.04-natty
>  ProcCmdline: /usr/bin/python /usr/bin/bzr push http://svn.crs4.it/bl/apps/seal/trunk
>  ProcEnviron:
>   SHELL=/bin/bash
>   PATH=(custom, user)
>   LANG=en_US.utf8
>   LANGUAGE=en_US
>  PythonVersion: 2.7.1
>  SourcePackage: bzr
>  Title: bzr crashed with NoSuchRevision in get_branch_revnum(): <bzrlib.plugins.svn.cache.tdbcache.RevisionIdMapCache object at 0x2cf9490> has no revision <email address hidden>
>  UpgradeStatus: Upgraded to natty on 2011-07-04 (0 days ago)
>  UserEncoding: UTF-8
>  UserGroups: adm admin cdrom dialout fuse lpadmin plugdev sambashare vboxusers x2gousers
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/bzr-svn/+bug/805583/+subscriptions
>

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Can you perhaps try with a newer version of bzr-svn?

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It might also be useful to try again after removing the ~/.cache/bazaar/svn directory.

Changed in bzr-svn (Ubuntu):
importance: Undecided → Medium
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.