svn.core.SubversionException while checking out from googlecode?

Asked by Parth Malwankar

Hello,

While checking out sources from googlecode (svn) I got svn.core.SubversionException. I wanted to report this just in case it was a bug. I am using bzr on debian (lenny).

    [parth:~]% bzr plugins
    bzrtools 1.5.0
        Various useful plugins for working with bzr.

    dbus
        D-Bus integration for bzr/bzrlib.

    diffstat 0.2.0
        diffstat - show stats about changes to the working tree

    gtk 0.94.0
        Graphical support for Bazaar using GTK.

    launchpad
        Launchpad.net integration plugin for Bazaar.

    loom 1.4.0dev0
        Loom is a bzr plugin which adds new commands to manage a loom of patches.

    rebase 0.3.0
        Rebase support.

    svn 0.4.10
        Support for Subversion branches

    [parth:~]% uname -a
    Linux parth 2.6.26-1-686 #1 SMP Wed Sep 10 16:46:13 UTC 2008 i686 GNU/Linux

I was trying to checkout two trunks in two xterms.
http://clojure.googlecode.com/svn/trunk/
and
http://clojure-contrib.googlecode.com/svn/trunk/

The first checkout (clojure) started out fine but the second (clojure-contrib) failed with the error below:

    [parth:src]% bzr checkout http://clojure-contrib.googlecode.com/svn/trunk/ clojure-contrib
    bzr: ERROR: svn.core.SubversionException: ("Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/bln/316'", 175002)

    Traceback (most recent call last):
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
        return run_bzr(argv)
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
        ret = run(*run_argv)
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
        return self.run(**all_cmd_args)
      File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1004, in run
        branch_location)
      File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 790, in open_tree_or_branch
        return bzrdir._get_tree_branch()
      File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 775, in _get_tree_branch
        branch = self.open_branch()
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/remote.py", line 180, in open_branch
        branch = SvnBranch(self.root_transport.base, repos, self.branch_path)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 77, in __init__
        revnum = self.get_revnum()
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 128, in get_revnum
        latest_revnum = self.repository.get_latest_revnum()
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/repository.py", line 244, in get_latest_revnum
        self._cached_revnum = self.transport.get_latest_revnum()
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/transport.py", line 560, in get_latest_revnum
        return conn.get_latest_revnum()
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 107, in convert
        raise convert_error(e)
    SubversionException: ("Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/bln/316'", 175002)

    bzr 1.5 on python 2.5.2 (linux2)
    arguments: ['/usr/bin/bzr', 'checkout', 'http://clojure-contrib.googlecode.com/svn/trunk/', 'clojure-contrib']
    encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_IN'
    plugins:
      bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
      dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
      diffstat /home/parth/.bazaar/plugins/diffstat [0.2.0]
      gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.94.0]
      launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
      loom /usr/lib/python2.5/site-packages/bzrlib/plugins/loom [1.4.0dev0]
      rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
      svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.10]
    *** 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.
    [parth:src]% bzr checkout http://clojure-contrib.googlecode.com/svn/trunk/ clojure-contrib

This (clojure-contrib checkout) worked fine the second time. However when I look at the first (clojure) window I observe that the clojure checkout has failed now, with the same error. Is bzr-svn not supposed to be used concurrently? I understand debian/lenny has an old version of bzr (1.5) - I tend to stick to apt. Is this something thats fixed in a new version?
If not running concurrently is a constraint, thats ok, but maybe the message can be better?

Below is the error I saw in the first window (clojure) once I started the checkout for clojure-contrib for the second time.

    [parth:src]% bzr checkout http://clojure.googlecode.com/svn/trunk/ clojure
    bzr: ERROR: svn.core.SubversionException: ("Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/vcc/default'", 175002)

    Traceback (most recent call last):
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
        return run_bzr(argv)
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
        ret = run(*run_argv)
      File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
        return self.run(**all_cmd_args)
      File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1024, in run
        accelerator_tree, hardlink)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 201, in create_checkout
        return self._create_heavyweight_checkout(to_location, revision_id, hardlink=hardlink)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 153, in _create_heavyweight_checkout
        checkout_branch.pull(self, stop_revision=revision_id)
      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 1766, 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 1569, 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 1520, 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 265, in fetch
        pb=nested_pb)
      File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 953, 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 703, in fetch
        self._fetch_switch(conn, needed, pb)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/fetch.py", line 659, in _fetch_switch
        reporter.finish_report(pool)
      File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/errors.py", line 107, in convert
        raise convert_error(e)
    SubversionException: ("Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/vcc/default'", 175002)

    bzr 1.5 on python 2.5.2 (linux2)
    arguments: ['/usr/bin/bzr', 'checkout', 'http://clojure.googlecode.com/svn/trunk/', 'clojure']
    encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_IN'
    plugins:
      bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
      dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
      diffstat /home/parth/.bazaar/plugins/diffstat [0.2.0]
      gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.94.0]
      launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
      loom /usr/lib/python2.5/site-packages/bzrlib/plugins/loom [1.4.0dev0]
      rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
      svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.10]
    *** 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.
    [parth:src]%

Thanks very much.
Parth

PS: Great job with bzr. I really like bzr, its usability and the focus of the dev team on correctness. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Parth Malwankar
Solved:
Last query:
Last reply:
Revision history for this message
Parth Malwankar (parthm) said :
#1

Just tried this again. This time without running two checkouts in parallel but saw the same issue. Not sure if this has anything to do with running them in parallel as I thought earlier.

svn co seems to be working fine.

Revision history for this message
Parth Malwankar (parthm) said :
#2

This does seem to be an intermittent error that does happen with with svn also. Doesn't look like this is bzr related.

[parth:src]% svn co http://clojure-contrib.googlecode.com/svn/trunk/ clojure-contrib
svn: Server sent unexpected return value (502 Bad Gateway) in response to PROPFIND request for '/svn/!svn/vcc/default'

Got the above error the second time I tried to do the checkout.
Sorry for the false alarm.

Another thought. Should the last few lines of the error message be changed in such cases to indicate that its not really a bzr error (if there is a way to be sure of that?)
    *** 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.
    [parth:src]%

Maybe an error message can be show followed by a clean exit.

Thanks again.

Revision history for this message
Vincent Ladeuil (vila) said :
#3

> Sorry for the false alarm.

No problem, but you may want to file a bug against bzr-svn or, may be better, again svn itself.

> Another thought. Should the last few lines of the error message be changed in such cases to indicate that its not really a bzr error (if there is a way to be sure of that?)

No real way to be sure, we can't even be sure that it's due a plugin...

Revision history for this message
Parth Malwankar (parthm) said :
#4
Revision history for this message
Parth Malwankar (parthm) said :
#5

Oops. Pasted the wrong link to issue. This is the correct issue.
https://bugs.launchpad.net/bzr/+bug/309759