failed push via sftp with error "exceptions.UnboundLocalError: local variable 'lock_url' referenced before assignment"

Bug #808214 reported by James A Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Fluffy:1Password.agilekeychain james$ bzr push sftp://davinci.DOMAIN.gTLD/Volumes/HDD-NAME/PATH/FOLDER/SUB-FOLDER/1Password.agilekeychain/
bzr: ERROR: exceptions.UnboundLocalError: local variable 'lock_url' referenced before assignment

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1132, in run
    use_existing_dir=use_existing_dir, no_tree=no_tree)
  File "/Library/Python/2.6/site-packages/bzrlib/push.py", line 140, in _show_push_branch
    remember, create_prefix)
  File "/Library/Python/2.6/site-packages/bzrlib/controldir.py", line 525, in push_branch
    overwrite, stop_revision=revision_id)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1095, in push
    *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3501, in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 3293, in _run_with_write_locked_target
    target.lock_write()
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 2482, in lock_write
    self.control_files.lock_write(token=token))
  File "/Library/Python/2.6/site-packages/bzrlib/lockable_files.py", line 187, in lock_write
    token_from_lock = self._lock.lock_write(token=token)
  File "/Library/Python/2.6/site-packages/bzrlib/lockdir.py", line 657, in lock_write
    return self.wait_lock()
  File "/Library/Python/2.6/site-packages/bzrlib/lockdir.py", line 625, in wait_lock
    raise LockContention('(local)', lock_url)
UnboundLocalError: local variable 'lock_url' referenced before assignment

bzr 2.3.1 on python 2.6.1 (Darwin-10.8.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'push', 'sftp://davinci.DOMAIN.gTLD/Volumes/HDD-NAME/PATH/FOLDER/SUB-FOLDER/1Password.agilekeychain/']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bash_completion /Library/Python/2.6/site-packages/bzrlib/plugins/bash_completion [2.3.1]
  bzrtools /Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [2.3.1]
  colo /Library/Python/2.6/site-packages/bzrlib/plugins/colo [0.2.1]
  email /Library/Python/2.6/site-packages/bzrlib/plugins/email [unknown]
  explorer /Library/Python/2.6/site-packages/bzrlib/plugins/explorer [1.1.2]
  extmerge /Library/Python/2.6/site-packages/bzrlib/plugins/extmerge [unknown]
  fastimport /Library/Python/2.6/site-packages/bzrlib/plugins/fastimport [0.10.0]
  keychain /Library/Python/2.6/site-packages/bzrlib/plugins/keychain [0.1.0]
  launchpad /Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [2.3.1]
  loom /Library/Python/2.6/site-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.3.1]
  news_merge /Library/Python/2.6/site-packages/bzrlib/plugins/news_merge [2.3.1]
  pipeline /Library/Python/2.6/site-packages/bzrlib/plugins/pipeline [1.1.0]
  qbzr /Library/Python/2.6/site-packages/bzrlib/plugins/qbzr [0.20.0]
  rewrite /Library/Python/2.6/site-packages/bzrlib/plugins/rewrite [0.6.2]
  svn /Library/Python/2.6/site-packages/bzrlib/plugins/svn [1.0.5dev]
  upload /Library/Python/2.6/site-packages/bzrlib/plugins/upload [1.0.1dev]
  xmloutput /Library/Python/2.6/site-packages/bzrlib/plugins/xmloutput [0.8.7.dev]

*** 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.
Fluffy:1Password.agilekeychain james$

Revision history for this message
Martin Packman (gz) wrote :

Upgrading to bzr 2.3.2 should resolve at least this error for you, there may be an underlying issue that this is masking.

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.