UnlockableTransport error when using lp: instead of bzr+ssh

Bug #239958 reported by David D Lowe
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When following launchpad's instructions to pushing new revisions to my own branch, I get this error:

[code]david@david-laptop:~/Documents/Programming/Epidermis$ bzr push lp:complete-look
http://code.launchpad.net/complete-look/ is redirected to https://code.launchpad.net/complete-look/
bzr: ERROR: bzrlib.errors.UnlockableTransport: Cannot lock: transport is read only: <bzrlib.transport.http._urllib.HttpTransport_urllib url=http://bazaar.launchpad.net/%7Eflimm/complete-look/devel/.bzr/repository/>

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 817, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 779, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 477, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 804, in run
    push_result = br_from.push(br_to, overwrite)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1552, in push
    target.lock_write()
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1329, in lock_write
    repo_token = self.repository.lock_write()
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 307, in lock_write
    result = self.control_files.lock_write(token=token)
  File "/usr/lib/python2.5/site-packages/bzrlib/lockable_files.py", line 258, in lock_write
    token_from_lock = self._lock.lock_write(token=token)
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 556, in lock_write
    return self.wait_lock()
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 485, in wait_lock
    return self.attempt_lock()
  File "/usr/lib/python2.5/site-packages/bzrlib/lockdir.py", line 450, in attempt_lock
    raise UnlockableTransport(self.transport)
UnlockableTransport: Cannot lock: transport is read only: <bzrlib.transport.http._urllib.HttpTransport_urllib url=http://bazaar.launchpad.net/%7Eflimm/complete-look/devel/.bzr/repository/>

bzr 0.90.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push', 'lp:complete-look']

** please send this report to <email address hidden>
[/code]

However, using this command works just fine:
[code]david@david-laptop:~/Documents/Programming/Epidermis$ bzr push bzr+ssh://<email address hidden>/~flimm/complete-look/devel
Pushed up to revision 21.
[/code]

I don't know if this is a Bazaar bug or a Launchpad bug, but it would be nice if working instructions were posted in the meantime.

(Please note, by the time you read this, the project complete-look may have been renamed to epidermis, as requested on the Launchpad itself project)

Tags: lp-code
Revision history for this message
Jonathan Lange (jml) wrote :

You need to tell Bazaar your Launchpad username, like this:
    bzr launchpad-login flimm

There are two deeper bugs here:
    1. Neither Bazaar nor Launchpad tell you this.
    2. Bazaar gives you a stack trace -- it really shouldn't do that.

What version of Bazaar are you using? If you could paste the output of 'bzr version', that'd be really helpful.

Revision history for this message
Andrew Bennetts (spiv) wrote : Re: [Bug 239958] [NEW] UnlockableTransport error when using lp: instead of bzr+ssh

Jonathan Lange wrote:
[...]
>
> What version of Bazaar are you using? If you could paste the output of
> 'bzr version', that'd be really helpful.

Bazaar includes its version in the traceback:

David D Lowe wrote:
[...]
>
> bzr 0.90.0 on python 2.5.1.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'push', 'lp:complete-look']

-Andrew.

Revision history for this message
Martin Pool (mbp) wrote :

David, can you tell me which specific Launchpad instructions caused this? We should update them to explain a different process for old Bazaar versions.

Changed in launchpad-bazaar:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
David D Lowe (flimm) wrote :

Here are the instructions:
https://code.launchpad.net/~flimm/complete-look/devel
I admit they're more like reminders, not instructions, but still :)
My bzr version is 0.90.0 (I'm still on Gutsy)
Trying bzr launchpad-login flimm gives me unknown command error, which probably means I need a newer version of bazaar to use this feature. It would have been nice if the error message told me so, though.
I'll just use bzr+ssh in the meanwhile. Thanks for the service!

Revision history for this message
Martin Pool (mbp) wrote :

Marking it confirmed/low; we might want to give more text on that page or a link to the help wiki, but there is a tradeoff in giving too many caveats there.

An updated bzr for Gutsy is available from http://bazaar-vcs.org/Download

Changed in launchpad-bazaar:
importance: Medium → Low
status: Incomplete → Confirmed
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.