bzr update, error: list index out of range

Bug #245788 reported by Bernd Hirschler
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

Used Version:
Bazaar (bzr) 1.3.1
  Python interpreter: /usr/bin/python 2.5.2.final.0
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/maniac/.bazaar
  Bazaar log file: /home/maniac/.bzr.log

If i work with pure svn (not svn overt bzr) everything is alright.

Normal working with version from gutsy is possible, error occurs in hardy heron, did not update the backports in gutsy.

Output after the command:
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1081, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 2172, in update
    old_tip = self.branch.update(possible_transports)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1802, in update
    self.pull(master, overwrite=True)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1714, in pull
    run_hooks=run_hooks)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1513, in pull
    self.update_revisions(source, stop_revision, overwrite=overwrite)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1465, in update_revisions
    self.fetch(other, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 266, in fetch
    pb=nested_pb)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 949, in fetch
    return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 704, in fetch
    self._fetch_switch(needed, pb, lhs_parent)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 661, in _fetch_switch
    reporter.finish_report(pool)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 117, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/transport.py", line 280, in finish_report
    self._baton, pool)
  File "/var/lib/python-support/python2.5/libsvn/ra.py", line 740, in svn_ra_reporter2_invoke_finish_report
    return apply(_ra.svn_ra_reporter2_invoke_finish_report, args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 385, in close_file
    ie.symlink_target = lines[0][len("link "):]
IndexError: list index out of range

bzr 1.3.1 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'update']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.9]
*** 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.

Attachment includes the bzr.log file.

Related branches

Revision history for this message
Bernd Hirschler (bhirschler) wrote :
description: updated
Revision history for this message
John A Meinel (jameinel) wrote :

It looks like bzr-svn is getting an empty list of lines, when it is expecting an entry containing the symlink target.

Revision history for this message
Bernd Hirschler (bhirschler) wrote : Re: [Bug 245788] Re: bzr update, error: list index out of range

Can i do anything to help you determine the error?

--

MfG Bernd Hirschler

:x!

On Sat, Jul 5, 2008 at 16:29, John A Meinel <email address hidden> wrote:
> It looks like bzr-svn is getting an empty list of lines, when it is
> expecting an entry containing the symlink target.
>
>
> ** Changed in: bzr-svn
> Product: Bazaar => Bazaar Subversion Plugin
>
> --
> bzr update, error: list index out of range
> https://bugs.launchpad.net/bugs/245788
> You received this bug notification because you are a direct subscriber
> of the bug.
>

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

What URL did this error occur on?

Revision history for this message
Bernd Hirschler (bhirschler) wrote :

My connection from home to our company server via a vpn connection:
svn+ssh://username@server/a/svnroot/project_name

And locally it is in the following folder:
/home/user/work/project/

No special character or whitespaces used, only one _ in the
projectname, as mentioned before, the normal svn client is able to
sync. I encounted the problem after installing hardy, i have no
version from gutsy installed at home to confirm that it was the update
to the new version. I don't feel like upgrading on my company computer
to the latest backport in gutsy because i could lose my connection
also and would only be able to use svn.

--

MfG Bernd Hirschler

:x!

On Sun, Jul 6, 2008 at 03:01, Jelmer Vernooij <email address hidden> wrote:
> What URL did this error occur on?
>
> --
> bzr update, error: list index out of range
> https://bugs.launchpad.net/bugs/245788
> You received this bug notification because you are a direct subscriber
> of the bug.
>

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

Any chance you can run this command with BZR_PDB=1 and once you enter the debugger, run:

print ie.kind
print ie.name
print lines

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Bernd Hirschler (bhirschler) wrote :

(Pdb) print ie.kind
symlink
(Pdb) print ie.name
cdd7aee7.0
(Pdb) print lines
[]
(Pdb)

I did an update on one of our computer where i work and there are no
problems. Either there is a problem with updates over vpn or some of
my config is mixed up (although at home i have a clean install). I
also tried to make a new checkout. And got the same output:
(Pdb) print ie.kind
symlink
(Pdb) print ie.name
cdd7aee7.0
(Pdb) print lines
[]
(Pdb)

--

MfG Bernd Hirschler

:x!

On Tue, Jul 8, 2008 at 17:18, Jelmer Vernooij <email address hidden> wrote:
> Any chance you can run this command with BZR_PDB=1 and once you enter
> the debugger, run:
>
> print ie.kind
> print ie.name
> print lines
>
> ** Changed in: bzr-svn
> Status: New => Incomplete
>
> --
> bzr update, error: list index out of range
> https://bugs.launchpad.net/bugs/245788
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
milestone: none → 0.4.11
status: Incomplete → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.