possible regression in natty-proposed

Bug #798688 reported by Marc Deslauriers on 2011-06-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: bzr

After updating bzr to the version in natty-proposed, I get the following:

mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr update
bzr: failed to report crash using apport:
     OSError(17, 'File exists')
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on RemoteBranch(bzr+ssh://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 688, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1413, in run
    old_tip = branch.update(possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 2803, in update
    self.pull(master, overwrite=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1089, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3473, in pull
    master_branch.lock_write()
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 2485, in lock_write
    raise errors.ReadOnlyError(self)
ReadOnlyError: A write attempt was made in a read only transaction on RemoteBranch(bzr+ssh://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/)

bzr 2.3.3 on python 2.7.1 (Linux-2.6.38-10-generic-x86_64-with-
    Ubuntu-11.04-natty)
arguments: ['/usr/bin/bzr', 'update']
plugins: bash_completion[2.3.3], builddeb[2.7.0dev], bzrtools[2.3.1],
    hooks[unknown], launchpad[2.3.3], netrc_credential_store[2.3.3],
    news_merge[2.3.3]
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_CA.UTF-8'

*** 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.
mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.3-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-10.44-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Fri Jun 17 09:12:00 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110302)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: bzr
UpgradeStatus: No upgrade log present (probably fresh install)

Marc Deslauriers (mdeslaur) wrote :
Marc Deslauriers (mdeslaur) wrote :

With 2.3.1, I am getting the following error, which makes more sense:

mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr update
Unable to obtain lock held by <email address hidden>
at crowberry [process #31170], acquired 4 hours, 22 minutes ago.
See "bzr help break-lock" for more.
bzr: ERROR: Could not acquire lock "(remote lock)": bzr+ssh://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/

Hi Marc,

Do you have some steps for getting a repository into this state from scratch? Would be handy for reproducing the problem. So far I can't seem to.

Thanks,

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in bzr (Ubuntu):
status: New → Incomplete
Marc Deslauriers (mdeslaur) wrote :

I think the person holding the lock is signing his commits, and his bzr stops at the gpg signing screen.
While he's doing that, the repo is locked...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/17/2011 03:55 PM, Brendan Donegan wrote:
> Hi Marc,
>
> Do you have some steps for getting a repository into this state from
> scratch? Would be handy for reproducing the problem. So far I can't seem
> to.
>
> Thanks,

I'm pretty sure the issue is that the URL canonicalization changed. If
you try doing "bzr info" I think you'll see that a URL might have "~"
and another has "%2E". Or something along those lines.

Just doing "bzr bind lp..." should fix the master branch to match the
update branch, and then it won't block anymore.

This is also a dupe, but I don't know the other bug number.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk37Xz8ACgkQJdeBCYSNAAMJ/ACdG3eLVeSfuPm5TgfX8h/RK/Vw
XyQAnAgDiVDCYyfnUQvCGgezKh5gmRW1
=WINC
-----END PGP SIGNATURE-----

Marc Deslauriers (mdeslaur) wrote :

This is with 2.3.1:

mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr info
Checkout (format: pack-0.92)
Location:
       checkout root: .
  checkout of branch: bzr+ssh://bazaar.launchpad.net/%7Eubuntu-security/ubuntu-cve-tracker/master/

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/~canonical-kernel-team/ubuntu-cve-tracker/kernel-team/
  submit branch: http://bazaar.launchpad.net/~stefanlsd/ubuntu-cve-tracker/dev/

This is with 2.3.3:

mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr info
Checkout (format: pack-0.92)
Location:
       checkout root: .
  checkout of branch: bzr+ssh://bazaar.launchpad.net/%7Eubuntu-security/ubuntu-cve-tracker/master/

Related branches:
  parent branch: bzr+ssh://bazaar.launchpad.net/~canonical-kernel-team/ubuntu-cve-tracker/kernel-team/
  submit branch: http://bazaar.launchpad.net/~stefanlsd/ubuntu-cve-tracker/dev/

What exactly are you referring to? In any case, asking someone to change his settings is inappropriate for an SRU.

Marc Deslauriers (mdeslaur) wrote :

OK, I'm still getting this with no bzr lock, so it looks like it's unrelated to that:

mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr update
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a read only transaction on RemoteBranch(bzr+ssh://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 688, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1413, in run
    old_tip = branch.update(possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 2803, in update
    self.pull(master, overwrite=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1089, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 3473, in pull
    master_branch.lock_write()
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 2485, in lock_write
    raise errors.ReadOnlyError(self)
ReadOnlyError: A write attempt was made in a read only transaction on RemoteBranch(bzr+ssh://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2011-06-17T14:26.crash
if a bug-reporting window does not automatically appear.

John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/17/2011 04:25 PM, Marc Deslauriers wrote:
> This is with 2.3.1:
>
> mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr info
> Checkout (format: pack-0.92)
> Location:
> checkout root: .
> checkout of branch: bzr+ssh://bazaar.launchpad.net/%7Eubuntu-security/ubuntu-cve-tracker/master/

                                                       ^^^

If you do "bzr bind :bound" it should "Just Work". I'm not saying this
isn't a bug, but it does have a trivial workaround.

If you look at the traceback:
mdeslaur@mdlinux:~/uct/ubuntu-cve-tracker$ bzr update
bzr: failed to report crash using apport:

     OSError(17, 'File exists')
bzr: ERROR: bzrlib.errors.ReadOnlyError: A write attempt was made in a
read only transaction on
RemoteBranch(bzr+ssh://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/)

It is trying to update from "~ubuntu-security" but thinks that it is
bound to "%7Eubuntu-security". Which are officially the same URL, but
textually different.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk37iHMACgkQJdeBCYSNAAMeUACeMTnDtxlsbqu6/Gpho4JczgZq
E3sAoLp3gdG1IkdzTjFG3HtujMkau3oc
=8rvD
-----END PGP SIGNATURE-----

Marc Deslauriers (mdeslaur) wrote :

Thanks for the workaround, it worked.

Andrew Bennetts (spiv) wrote :

The duplicate in upstream bzr is bug 786980.

Changed in bzr (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers