authentication doesn't work

Bug #64816 reported by Scott Henson
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
High
Jelmer Vernooij

Bug Description

Authentication is failing with a confusing error.

scotth@wildfire:~/bar$ bzr branch svn+https://svn.lcsee.wvu.edu/loud/lcsee-lvs-director/trunk dev
bzr: ERROR: libsvn._core.SubversionException: ("'/home/scotth' is not a working copy", 155007)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 611, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 573, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 282, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 722, in run
    revision_id, basis_dir)
  File "/home/scotth/.bazaar/plugins/svn/format.py", line 76, in sprout
    result_repo = result.find_repository()
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 359, in find_repository
    found_bzrdir = BzrDir.open_containing_from_transport(
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 526, in open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 486, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 1131, in open
    return self._open(transport)
  File "/home/scotth/.bazaar/plugins/svn/checkout.py", line 550, in _open
    return SvnCheckout(transport, self)
  File "/home/scotth/.bazaar/plugins/svn/checkout.py", line 473, in __init__
    wc = svn.wc.adm_open3(None, self.local_path, False, 0, None)
  File "/usr/lib/python2.4/site-packages/libsvn/wc.py", line 45, in svn_wc_adm_open3
    return apply(_wc.svn_wc_adm_open3, args)
SubversionException: ("'/home/scotth' is not a working copy", 155007)

bzr 0.11.0 on python 2.4.4.candidate.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://svn.lcsee.wvu.edu/loud/lcsee-lvs-director/trunk', 'dev']

** please send this report to <email address hidden>

This is on edgy, which I understand has the latest python-subversion.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
importance: Undecided → High
status: Unconfirmed → Confirmed
Jelmer Vernooij (jelmer)
description: updated
Revision history for this message
Scott Henson (scotth) wrote :

The error message has changed. Here is what it says now on feisty.

scotth@wildfire:/tmp/tmp.aLTjhL8366$ bzr branch svn+https://svn.lcsee.wvu.edu/loud/lcsee-lvs-director/trunk dev
[=========== ] copying revision 2/13bzr: ERROR: exceptions.AttributeError: open_tmp_file

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 611, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 573, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 282, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 722, in run
    revision_id, basis_dir)
  File "/home/scotth/.bazaar/plugins/svn/format.py", line 80, in sprout
    result_repo = repo.clone(result, revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 301, in clone
    self.copy_content_into(result, revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 253, in copy_content_into
    return InterRepository.get(self, destination).copy_content(revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 51, in write_locked
    return unbound(self, *args, **kwargs)
  File "/home/scotth/.bazaar/plugins/svn/fetch.py", line 360, in copy_content
    edit, edit_baton, pool)
  File "/usr/lib/python2.4/site-packages/libsvn/ra.py", line 400, in svn_ra_do_update
    return apply(_ra.svn_ra_do_update, args)
AttributeError: open_tmp_file

bzr 0.11.0 on python 2.4.4.candidate.1 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+https://svn.lcsee.wvu.edu/loud/lcsee-lvs-director/trunk', 'dev']

** please send this report to <email address hidden>

Revision history for this message
Chris Halse Rogers (raof) wrote :

The Feisty error doesn't seem to be necessarily related to authentication. The same error occurs on an anonymous, non https, subversion checkout:

bzr branch svn+http://specto.googlecode.com/svn/trunk/ specto
bzr: ERROR: exceptions.AttributeError: open_tmp_file

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 611, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 573, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 282, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 722, in run
    revision_id, basis_dir)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 80, in sprout
    result_repo = repo.clone(result, revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 301, in clone
    self.copy_content_into(result, revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 253, in copy_content_into
    return InterRepository.get(self, destination).copy_content(revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 51, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 360, in copy_content
    edit, edit_baton, pool)
  File "/usr/lib/python2.4/site-packages/libsvn/ra.py", line 400, in svn_ra_do_update
    return apply(_ra.svn_ra_do_update, args)
AttributeError: open_tmp_file

bzr 0.11.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn+http://specto.googlecode.com/svn/trunk/', 'specto']

** please send this report to <email address hidden>

This is with latest Fiesty packages for everything:
bzr - Version: 0.11-0ubuntu1
bzr-svn - Version: 0.1-0ubuntu1
bzrtools - Version: 0.11.0-0ubuntu1
python-subversion - Version: 1.3.2-3ubuntu2

Additionally, exactly the same error is given attempting to branch from a local SVN checkout with "bzr branch trunk specto.bzr".

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

These branches aren't working yet, but that's caused by #56647. The open_tmp_file() problems no longer occur.

Changed in bzr-svn:
assignee: nobody → jelmer
status: Confirmed → Fix Committed
Revision history for this message
linuxball (linuxball) wrote :
Download full text (5.0 KiB)

I use Edgy with all updates:
bzr 0.11-0ubuntu1
bzr-svn 0.1-0ubuntu1
python 2.4.3-11ubuntu3
python-subversion 1.3.2-3ubuntu2

I get the same open_tmp_file problem when trying to import a SVN repository:

$ bzr import-svn https://mumble.svn.sourceforge.net/svnroot/mumble mumble
Importing branches:
tags/rel0_2
tags/rel_0_3_2
tags/rel_0_3_1
tags/rel_0_3_0
tags/rel_0_2_2
tags/rel_0_9_0
trunk
tags/rel_0_9_2

bzr: ERROR: exceptions.AttributeError: open_tmp_file

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 611, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 573, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 282, in run_argv_aliases$ bzr import-svn https://mumble.svn.sourceforge.net/svnroot/mumble mumble
Importing branches:
tags/rel0_2
tags/rel_0_3_2
tags/rel_0_3_1
tags/rel_0_3_0
tags/rel_0_2_2
tags/rel_0_9_0
trunk
tags/rel_0_9_2

bzr: ERROR: exceptions.AttributeError: open_tmp_file

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 611, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 573, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 282, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 583, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/__init__.py", line 82, in run
    trees)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/convert.py", line 72, in convert_repository
    source_branch.bzrdir.sprout(target_dir, source_branch.last_revision())
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/format.py", line 80, in sprout
    result_repo = repo.clone(result, revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 301, in clone
    self.copy_content_into(result, revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 253, in copy_content_into
    return InterRepository.get(self, destination).copy_content(revision_id, basis)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 51, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/fetch.py", line 360, in copy_content
    edit, edit_baton, pool)
  File "/usr/lib/python2.4/site-packages/libsvn/ra.py", line 400, in svn_ra_do_update
    return apply(_ra.svn_ra_do_update, args)
AttributeError: open_tmp_file

bzr 0.11.0 on python 2.4.4.candidate.1 (linux2)
arguments: ['/usr/bin/bzr', 'import-svn', 'https://mumble.svn.sourceforge.net/svnroot/mumble', 'mumble']

** please send this report to bazaar-ng@lis...

Read more...

Revision history for this message
linuxball (linuxball) wrote :

Sorry, somehow the output was pasted twice...

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 64816] Re: authentication doesn't work

This bug is fixed in the development version of bzr-svn, which will
eventually become 0.3.

The mumble repository works ok with the latest version as well (just
verified). I've uploaded a copy to
http://people.samba.org/bzr/jelmer/mirror/mumble.

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

Remote bug watches

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