Problem pushing to Launchpad

Ali Sabil ali.sabil at gmail.com
Sat Oct 3 21:38:51 BST 2009


On Sat, Oct 3, 2009 at 1:39 PM, Russel Winder
<russel.winder at concertant.com> wrote:
> Jonathan,
>
> On Sat, 2009-10-03 at 11:49 +0100, Jonathan Lange wrote:
>> On Sat, Oct 3, 2009 at 9:48 AM, Russel Winder
>> <russel.winder at concertant.com> wrote:
>> > I am trying to push an update to a branch on Launchpad, but I am
>> > getting:
>> >
>> > bzr: ERROR: Server sent an unexpected error: ('error', "Cannot lock LockDir(lp-46086288:///~russel/gradle/anttask/.bzr/branchlock): File exists: u'/srv/bazaar.launchpad.net/push-branches/00/03/b7/f0/.bzr/branch/lock': [Errno 17] File exists: '/srv/bazaar.launchpad.net/push-branches/00/03/b7/f0/.bzr/branch/lock'")
>> >
>> > If anyone has a hint as to how to deal with this, that would be great.
>>
>> bzr break-lock bzr+ssh://bazaar.launchpad.net/~russel/gradle/anttask
>
> Aha, I should have thought of that, thanks for the prompt.
> Unfortunately:
>
>        |> bzr break-lock bzr+ssh://bazaar.launchpad.net/~russel/gradle/anttask
>        |> bzr push bzr+ssh://bazaar.launchpad.net/~russel/gradle/anttask
>        bzr: ERROR: Server sent an unexpected error: ('error', "Cannot lock LockDir(lp-46086288:///~russel/gradle/anttask/.bzr/branchlock): File exists: u'/srv/bazaar.launchpad.net/push-branches/00/03/b7/f0/.bzr/branch/lock': [Errno 17] File exists: '/srv/bazaar.launchpad.net/push-branches/00/03/b7/f0/.bzr/branch/lock'")
>        |>
>
> So it seems that something somewhere has severed appropriate connections
> between locks and branches.
>

IIRC, with launchpad you need to call break-lock twice for some reason.

--
Ali



More information about the bazaar mailing list