cannot commit to repo, unbreakable lock stuck

Asked by Kees Cook

A commit to LP broke and left a lock behind. I cannot break this lock, and it is blocking me from doing more work on the branch (bzr+ssh://<email address hidden>/%7Eubuntu-security/ubuntu-cve-tracker/master/)

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Bentley
Solved:
Last query:
Last reply:
Revision history for this message
Kees Cook (kees) said :
#1

Current attempts to break-lock:

$ bzr break-lock
Break lock bzr+ssh://<email address hidden>/%7Eubuntu-security/ubuntu-cve-tracker/master/.bzr/branch/lock
held by <email address hidden> on host vostok [process #32728]
locked 2 minutes, 51 seconds ago? [y/n]: y
bzr: ERROR: Generic bzr smart protocol error: <ProtocolError for xmlrpc.lp.internal:8097/branchfilesystem: -1 >

Revision history for this message
Kees Cook (kees) said :
#2

Original failure:

$ bzr ci -m 'add PublicDate to the other boilerplates'
Committing to: bzr+ssh://<email address hidden>/~ubuntu-security/ubuntu-cve-tracker/master/
modified active/00boilerplate.firefox
modified active/00boilerplate.ghostscript
modified active/00boilerplate.linux
modified active/00boilerplate.postgres
modified active/00boilerplate.qemu
modified active/00boilerplate.sun-java6
modified active/00boilerplate.vmware-player
modified active/00boilerplate.xen
modified active/00boilerplate.xpdf
[============== ] Running pre_commit hooks [run-tests] - Stage 3/6
OK: 4293 CVEs
Committed revision 1368.
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', '<ProtocolError for xmlrpc.lp.internal:8097/branchfilesystem: -1 >')

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2290, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 242, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 197, in commit
    revprops=revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 416, in commit
    self._cleanup()
  File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 600, in _cleanup
    raise e
ErrorFromSmartServer: Error received from smart server: ('error', '<ProtocolError for xmlrpc.lp.internal:8097/branchfilesystem: -1 >')

bzr 1.6 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'ci', '-m', 'add PublicDate to the other boilerplates']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  difftools /home/kees/.bazaar/plugins/difftools [0.91.0]
  hooks /home/kees/.bazaar/plugins/hooks [unknown]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Michael Hudson-Doyle (mwhudson) said :
#3

Odd. It seems to be a database timeout requesting the branch be mirrored... very strange. Will investigate.

The nature of this sort of problem suggests that just trying again a bit later may work.

Revision history for this message
Michael Hudson-Doyle (mwhudson) said :
#4

Odd. It seems to be a database timeout requesting the branch be mirrored... very strange. Will investigate.

The nature of this sort of problem suggests that just trying again a bit later may work.

Revision history for this message
Best Aaron Bentley (abentley) said :
#5

You may be able to use a different codepath by doing:
bzr break-lock nosmart+bzr+ssh://<email address hidden>/%7Eubuntu-security/ubuntu-cve-tracker/master/

Revision history for this message
Kees Cook (kees) said :
#6

Thanks Aaron Bentley, that solved my question.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#7

Mind blowing man,, thanks ,
GOD bless you.