bzr crashes after a redirect, but also possibly to a missing component

Bug #671165 reported by herrold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

[herrold@centos-5 buildbot-config]$ ./README
http://bzr.linux-foundation.org/unofficial/buildbot-config is permanently redirected to http://bzr.linux-foundation.org/loggerhead/unofficial/buildbot-config
http://bzr.linux-foundation.org/loggerhead/unofficial/buildbot-config is permanently redirected to /loggerhead/unofficial/buildbot-config/changes
bzr: ERROR: exceptions.AttributeError: 'Inter1and2Helper' object has no attribute 'source_repo'

Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 826, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 1027, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 638, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.4/site-packages/bzrlib/builtins.py", line 1027, in run
    possible_transports=possible_transports, local=local)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/workingtree.py", line 1614, in pull
    local=local)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 962, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 3206, in pull
    _override_hook_target=_override_hook_target)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 3083, in pull
    overwrite=overwrite, graph=graph)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 910, in update_revisions
    overwrite, graph)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 3026, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 593, in fetch
    pb=pb)
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 1705, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 3424, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 83, in __init__
    self.__fetch()
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 109, in __fetch
    self._fetch_everything_for_search(search)
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 136, in _fetch_everything_for_search
    resume_tokens, missing_keys = self.sink.insert_stream(
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 4260, in insert_stream
    return self._locked_insert_stream(stream, src_format, is_resume)
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 4289, in _locked_insert_stream
    for substream_type, substream in stream:
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 4496, in get_stream
    for _ in self._generate_root_texts(revs):
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 4464, in _generate_root_texts
    return _mod_fetch.Inter1and2Helper(
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 257, in generate_root_texts
    graph = _get_rich_root_heads_graph(self.source_repo, revs)
AttributeError: 'Inter1and2Helper' object has no attribute 'source_repo'

bzr 2.1.0b4 on python 2.4.3 (Linux-2.6.18-194.17.1.el5xen-x86_64-with-redhat-5.5-Final)
arguments: ['/usr/bin/bzr', 'pull', 'http://bzr.linux-foundation.org/unofficial/buildbot-config/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib64/python2.4/site-packages/bzrlib/plugins/launchpad [2.1.0b4]
  netrc_credential_store /usr/lib64/python2.4/site-packages/bzrlib/plugins/netrc_credential_store [2.1.0b4]

*** 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.
[herrold@centos-5 buildbot-config]$

reproducing harness
[herrold@centos-5 buildbot-config]$ date
Thu Nov 4 17:05:20 EDT 2010
[herrold@centos-5 buildbot-config]$ cat README
#!/bin/sh
#
# LF buildbot-config
#
# comment to: <email address hidden>
# GPL v3+ license
#
# external lives at: ftp://ftp.owlriver.com/pub/local/ORC/lf_buildbot-config
#
# buildbot-config
# http://bzr.linux-foundation.org/unofficial/buildbot-config/
#
export PATH='/usr/bin:/bin:/usr/X11R6/bin'
#
export PROJ=`echo "buildbot-config"`
export YMD=`date +%Y%m%d`
#
[ ! -e ~/vcs/git/${PROJ}/RCS ] && mkdir -p ~/vcs/git/${PROJ}/RCS
cd ~
cd vcs
HAVEGIT=`which bzr `
[ "x${HAVEGIT}" = "x" ] && {
        echo "error: no bzr seen... really, we need it -- bailing" 2>&1
        exit 1
}
[ ! -d bzr/ ] && mkdir bzr
cd bzr
[ ! -d ${PROJ} ] && mkdir ${PROJ}
cd ${PROJ}
#
export URL="http://bzr.linux-foundation.org/unofficial/buildbot-config/"
[ ! -e ./.bzr/ ] && bzr init
[ ! -e ${PROJ} ] && {
        bzr clone ${URL}
# bzr branch lp:${PROJ}
# https://code.launchpad.net/~drizzle-developers/drizzle/development
        }
bzr pull ${URL}
cd ${PROJ}
#
exit 1

[herrold@centos-5 buildbot-config]$ rpm -q bzr
bzr-2.1.0-0.4.b4orc

Revision history for this message
herrold (herrold) wrote :
Download full text (4.7 KiB)

per the LF folks, I removed a hyphen in the $URL, but then still die thus:

[herrold@centos-5 buildbot-config]$ ./README
Branched 135 revision(s).
http://bzr.linuxfoundation.org/unofficial/buildbot-config is permanently redirected to http://bzr.linuxfoundation.org/loggerhead/unofficial/buildbot-config
http://bzr.linuxfoundation.org/loggerhead/unofficial/buildbot-config is permanently redirected to /loggerhead/unofficial/buildbot-config/changes
bzr: ERROR: exceptions.AttributeError: 'Inter1and2Helper' object has no attribute 'source_repo'

Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 826, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 1027, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.4/site-packages/bzrlib/commands.py", line 638, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib64/python2.4/site-packages/bzrlib/builtins.py", line 1027, in run
    possible_transports=possible_transports, local=local)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/workingtree.py", line 1614, in pull
    local=local)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 962, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 3206, in pull
    _override_hook_target=_override_hook_target)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 3083, in pull
    overwrite=overwrite, graph=graph)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 910, in update_revisions
    overwrite, graph)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 3026, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/branch.py", line 593, in fetch
    pb=pb)
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 1705, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib64/python2.4/site-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/bzrlib/repository.py", line 3424, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 83, in __init__
    self.__fetch()
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 109, in __fetch
    self._fetch_everything_for_search(search)
  File "/usr/lib64/python2.4/site-packages/bzrlib/fetch.py", line 136, in _fetch_ev...

Read more...

herrold (herrold)
summary: - bzr creashes after a redirect, but also possibly to a mising component
+ bzr crashes after a redirect, but also possibly to a missing component
Revision history for this message
Andrew Bennetts (spiv) wrote :

You're using a beta version of bzr 2.1. This was fixed in the final release of 2.1.0, so upgrade your bzr to a newer version.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 671165] Re: bzr creashes after a redirect, but also possibly to a mising component

This is a dupe of bug 636930.

Revision history for this message
herrold (herrold) wrote :

I confirm an update solved the reported matter for me

[herrold@centos-5 pw]$ rpm -q bzr
bzr-2.3-0.1.b2orc

I am all-right with a close of this bug as it seems the underlying matter is understood

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.