bzr-svn: can't do update from svn branch due to ReadOnlyError

Bug #996747 reported by Edmundo on 2012-05-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-svn (Ubuntu)

Bug Description

I'm trying to do an update from a svn branch (using https+urllib) and I can't:

$ bzr update -Ossl.cert_reqs=none
Not checking SSL certificate for host: 443
HTTPS host, Realm: 'Subversion repository for blah blah' username: myusername
HTTPS myusername@, Realm: 'Subversion repository for blah blah' password:
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on SvnBranch('https://blah/svn.repos/system/branches/RF_HL7.6905')

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1131, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 673, in run_argv_aliases
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 695, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1742, in run
    old_tip = branch.update(possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 2715, in update
    self.pull(master, overwrite=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1133, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/", line 989, in pull
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/", line 690, in lock_write
    raise ReadOnlyError(self)
ReadOnlyError: A write attempt was made in a read only transaction on SvnBranch('https://blah/svn.repos/system/branches/RF_HL7.6905')

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bzr-svn 1.2.1-1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Tue May 8 15:25:46 2012
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
SourcePackage: bzr-svn
UpgradeStatus: No upgrade log present (probably fresh install)

Edmundo (eantoranz) wrote :
Edmundo (eantoranz) wrote :

I checked to see if there was a problem with svn update directly (I also have a svn checkout of that branch) and it worked perfectly.

Jelmer Vernooij (jelmer) wrote :

What version of bzr are you using?

Changed in bzr-svn (Ubuntu):
status: New → Incomplete

Damn it, I thought apport would collect that. I'll tell you the output
of bzr version tomorrow but here's what's in dependencies.tzxt (which
is probably pointing in the direction of bzr's version anyway):

python-bzrlib 2.5.0-2ubuntu2

Jelmer Vernooij (jelmer) on 2012-05-09
Changed in bzr-svn (Ubuntu):
status: Incomplete → Confirmed
Edmundo (eantoranz) wrote :

Just in case:

$ bzr version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python 2.7.3
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.2.0-24-generic-pae-i686-with-Ubuntu-12.04-precise
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/antoranz/.bazaar
  Bazaar log file: /home/antoranz/.bzr.log

Copyright 2005-2012 Canonical Ltd.

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

$ bzr plugins
bash_completion 2.5.0
  Generate a shell function for bash command line completion.

bzrtools 2.5.0
  Various useful commands for working with bzr.

changelog_merge 2.5.0
  Merge hook for GNU-format ChangeLog files

git 0.6.8
  A GIT branch and repository format implementation for bzr.

launchpad 2.5.0 integration plugin for Bazaar.

netrc_credential_store 2.5.0
  Use ~/.netrc as a credential store for authentication.conf.

news_merge 2.5.0
  Merge hook for bzr's NEWS file.

po_merge 2.5.0
  Merge hook for ``.po`` files.

qbzr 0.22.2
  QBzr - Qt-based frontend for Bazaar

rewrite 0.6.3
  Rebase support.

svn 1.2.1
  Support for Subversion branches

weave_fmt 2.5.0
  Weave formats.

xmloutput 0.8.8
  This plugin adds an option (--xml) to log and provides an xml
version of some builtin commands.

Edmundo (eantoranz) wrote :

What could be an easy workaround until this is fixed? I could install bzr in /usr/local and bzr-svn as well, right? Which versions should I try of each?

Jelmer Vernooij (jelmer) wrote :

An easy workaround would be to use "svn update" instead.

I don't think using a newer version of bzr or bzr-svn would help here. This probably needs some more investigation, but I don't have time to do that myself.

Edmundo (eantoranz) wrote :

what do you mean with svn update? I don't think it will update bzr's
branch.... as a matter of fact, from svn's point of view, I don't
think it's a svn branch at all, is it?

Jelmer Vernooij (jelmer) wrote :

well, as far as I can tell you're trying to update a *svn* branch not a bzr branch. Does your local directory contain a .svn directory or a .bzr directory?

Edmundo (eantoranz) wrote :

It's a bzr branch for sure:

On the root of the branch:
$ ls -ld .bzr .svn
ls: cannot access .svn: No such file or directory
drwxrwxr-x 5 antoranz antoranz 4096 Mar 8 16:09 .bzr

Jelmer Vernooij (jelmer) wrote :

I suspect this is a dupe of bug 792898.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers