"Unable to find old fileid" error with bzr log -v

Bug #886176 reported by Francis Devereux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

francis@murr svn $ bzr log -v -r-1 svn+ssh://saltdean/home/svn/repos-mirror/Websites/asset-bank
bzr: ERROR: exceptions.AssertionError: Unable to find old fileid for WEB-INF/src/com/bright/assetbank/request/action/ViewAssignFulfillerAction.java in ('d7573739-1e13-0410-9734-d04ebce522bf', 'Websites/asset-bank', 23357)

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 1165, in ignore_pipe
    result = func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/builtins.py", line 2545, in run
    Logger(b, rqst).show(lf)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/log.py", line 369, in show
    self._show_body(lf)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/log.py", line 395, in _show_body
    for lr in generator.iter_log_revisions():
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/log.py", line 434, in iter_log_revisions
    for revs in revision_iterator:
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/log.py", line 929, in _generate_deltas
    for rev, delta in izip(revs, deltas):
  File "/Users/francis/.bazaar/plugins/svn/repository.py", line 636, in get_deltas_for_revisions
    yield self.get_delta_for_revision(revision)
  File "/Users/francis/.bazaar/plugins/svn/repository.py", line 653, in get_delta_for_revision
    revision.mapping)
  File "/Users/francis/.bazaar/plugins/svn/repository.py", line 795, in get_fileid_map
    return self.fileid_map.get_map(revmeta.metarev.get_foreign_revid(), mapping)
  File "/Users/francis/.bazaar/plugins/svn/fileids.py", line 441, in get_map
    self.actual.update_idmap(map, revmeta, mapping)
  File "/Users/francis/.bazaar/plugins/svn/fileids.py", line 302, in update_idmap
    mapping, revmeta.metarev.get_foreign_revid())
  File "/Users/francis/.bazaar/plugins/svn/fileids.py", line 243, in apply_delta
    "in %r" % (x, foreign_revid))
AssertionError: Unable to find old fileid for WEB-INF/src/com/bright/assetbank/request/action/ViewAssignFulfillerAction.java in ('d7573739-1e13-0410-9734-d04ebce522bf', 'Websites/asset-bank', 23357)

bzr 2.4.2 on python 2.7.2 (Darwin-11.2.0-x86_64-i386-64bit)
arguments: ['/opt/local/bin/bzr', 'log', '-v', '-r-1',
    'svn+ssh://saltdean/home/svn/repos-mirror/Websites/asset-bank']
plugins: bash_completion[2.4.2], bisect[1.1.0dev], bzrtools[2.4.1],
    changelog_merge[2.4.2], diffstat[0.2.0], explorer[1.2.1], grep[0.5.0dev],
    launchpad[2.4.2], netrc_credential_store[2.4.2], news_merge[2.4.2],
    qbzr[0.21.1], rewrite[0.6.2], search[1.7.0dev], svn[1.1.0],
    weave_fmt[2.4.2], xmloutput[0.8.7]
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

I am using bzr-svn-1.1.0 with bzr 2.4.2

I don't get this error if I don't specify -v

Revision history for this message
Francis Devereux (frankoid) wrote :

Further info: the file mentioned in the error message (WEB-INF/src/com/bright/assetbank/request/action/ViewAssignFulfillerAction.java) was recently created, modified and then deleted again. It doesn't exist in the latest subversion revison.

Revision history for this message
Francis Devereux (frankoid) wrote :

Also happens with bzr-svn-1.1.1 and bzr-svn r4100.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 886176] Re: "Unable to find old fileid" error with bzr log -v

On 11/04/2011 04:54 PM, Francis Devereux wrote:
> Also happens with bzr-svn-1.1.1 and bzr-svn r4100.
can you still reproduce this after removing the cache for this
repository (should live in ~/.cache/bazaar/svn/<uuid> or
~/.bazaar/svn-cache/<uuid>) ?

Cheers,

Jelmer

Revision history for this message
Francis Devereux (frankoid) wrote :

Thanks, I'll give that a try. It may take a while because the svn repository is quite large (~20K revisions).

Revision history for this message
Francis Devereux (frankoid) wrote :
Download full text (6.0 KiB)

After deleting the cache in ~/.bazaar/svn-cache/ the command bzr log -v -r-1 svn+ssh://saltdean/home/svn/repos-mirror/Websites/asset-bank succeeds :-)

I am now trying "bzr log -v svn+ssh://saltdean/home/svn/repos-mirror/Websites/asset-bank 2>&1 | less" (i.e. without the revision number argument). It is taking a long time (hasn't completed or produced any output after a few minutes). Python is consuming some CPU - sometimes a whole core and sometimes less.

It looks like deleting the cache has caused another problem though - I now can't push to the master svn repository.
svn+ssh://saltdean/home/svn/repos-mirror is a svn mirror on my company's LAN, maintained with svnsync. When I try to push to the master repository (which has the same uuid, so bzr-svn will be using the same cache) I get this error:
francis@murr test-project $ bzr push --remember :parent
bzr: ERROR: exceptions.AssertionError: Empty parent 'Websites' added, but child 'Websites/stewart-jms/branches/b2009-05-15_pre-phase2' wasn't added !?

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/builtins.py", line 1204, in run
    use_existing_dir=use_existing_dir, no_tree=no_tree)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/push.py", line 142, in _show_push_branch
    remember, create_prefix)
  File "/Users/francis/.bazaar/plugins/svn/remote.py", line 535, in push_branch
    overwrite=overwrite)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bzrlib/branch.py", line 1118, in push
    lossy, *args, **kwargs)
  File "/Users/francis/.bazaar/plugins/svn/branch.py", line 1149, in push
    lossy=lossy, fetch_non_mainline=fetch_non_mainline))
  File "/Users/francis/.bazaar/plugins/svn/branch.py", line 1128, in _basic_push
    lossy=lossy, fetch_non_mainline=fetch_non_mainline)
  File "/Users/francis/.bazaar/plugins/svn/branch.py", line 1085, in _update_revisions
    stop_revision, overwrite=overwr...

Read more...

Revision history for this message
Francis Devereux (frankoid) wrote :

I've been doing some investigation into the "Empty parent 'Websites' added" error on push.
Websites/stewart-jms/ was converted from svn using cvs2svn, so it might have odd history...

Revision history for this message
Francis Devereux (frankoid) wrote :

I've worked around the "Empty parent" error on push by changing my "branch" setting in ~/.bazaar/subversion.conf so that it doesn't match Websites/stewart-jms/branches/*. I don't need to access that project using bzr-svn.

I think that the original "Unable to find old fileid" error is not a bug in the current versions of bzr or bzr-svn, because it was caused by an out of date bzr-svn cache.

I think that the "Empty parent" error may be a bug but I suppose it would be better to address it in a new bug report? I personally have a workaround that I'm content with but I'd be happy to provide more information about it if you'd like me to.

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

Let's use this bug report for the new error.

Could it perhaps be that you don't have access to some parts of the repository, or that the mirror created with svnsync only contains parts of the repository?

Revision history for this message
Francis Devereux (frankoid) wrote :

On 7 Nov 2011, at 17:25, Jelmer Vernooij wrote:

> Let's use this bug report for the new error.

OK.

> Could it perhaps be that you don't have access to some parts of the
> repository

I'm 99% sure that I have access to the whole repository. We don't have any complicated access control, we just control who has ssh shell access to the svn servers and is in the svn group. So you either have access to none of the repository or all of it (at least that's the intention!).

> , or that the mirror created with svnsync only contains parts
> of the repository?

I don't think so, svnsync should be mirroring the whole repository. I double checked the path that the error mentions and it seems to be present both in the mirror and the master copy.

Mirror:
francis@murr ~ $ svn ls svn+ssh://saltdean/home/svn/repos-mirror/Websites/stewart-jms/
branches/
tags/
trunk/
francis@murr ~ $ svn ls svn+ssh://saltdean/home/svn/repos-mirror/Websites/stewart-jms/branches
b2009-05-15_pre-phase2/
francis@murr ~ $

Master:
francis@murr ~ $ svn ls svn+ssh://ringmer.bright-server.net/home/svn/repos/Websites/stewart-jms/
branches/
tags/
trunk/
francis@murr ~ $ svn ls svn+ssh://ringmer.bright-server.net/home/svn/repos/Websites/stewart-jms/branches
b2009-05-15_pre-phase2/

Revision history for this message
Francis Devereux (frankoid) wrote :

We have some other projects in the same svn repository but they don't seem to be causing the same problem. That led me to dig into the history of the stewart-jms project and it looks like it has had an "interesting" history. I think that the following things happened to it:
 - it was imported into a svn repository on a different machine, orange, using cvs2svn
 - it was initially imported into the root of the svn repository on orange and then moved into stewart-jms
 - it was then exported from the svn repository on orange and imported into our main svn repository on ringmer (probably using "svnadmin dump" and "svnadmin load", perhaps with an svndumpfilter in the middle)

r13993 | steve | 2010-12-29 17:24:23 +0000 (Wed, 29 Dec 2010) | 1 line
Changed paths:
   A /Websites/stewart-jms (from /stewart-jms:13992)
   D /stewart-jms

Imported Stewart JMS repository from Orange
------------------------------------------------------------------------
r13992 | Steve | 2010-12-29 16:56:08 +0000 (Wed, 29 Dec 2010) | 1 line
Changed paths:
   A /stewart-jms/trunk (from /trunk:13991)
   D /trunk

------------------------------------------------------------------------
r13991 | Steve | 2010-12-29 16:55:51 +0000 (Wed, 29 Dec 2010) | 1 line
Changed paths:
   A /stewart-jms/tags (from /tags:13990)
   D /tags

------------------------------------------------------------------------
r13990 | Steve | 2010-12-29 16:54:59 +0000 (Wed, 29 Dec 2010) | 1 line
Changed paths:
   D /branches
   A /stewart-jms/branches (from /branches:13989)

------------------------------------------------------------------------
r13989 | Steve | 2010-12-29 16:49:21 +0000 (Wed, 29 Dec 2010) | 1 line
Changed paths:
   A /stewart-jms

Revision history for this message
Francis Devereux (frankoid) wrote :

First sentence of previous comment should have been "We have some other projects in the same svn repository *that were imported using cvs2svn* but they don't seem to be causing the same problem."

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.