unable to obtain lock file

Bug #550579 reported by Marius Gedminas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Plugin to Update Remote Trees
Triaged
Undecided
Unassigned

Bug Description

This plugin does not appear to work with bzr+ssh.

$ cd ~/.bazaar/plugins
$ bzr branch lp:bzr-push-and-update push_and_update
$ cd ~/src/bookserv
$ bzr push bzr+ssh://plato/home/mg/src/bookserv
No handlers could be found for logger "bzr"
running "ssh plato bzr update "/home/mg/src/bookserv/""
No handlers could be found for logger "bzr"
[14843] 2010-03-29 02:27:59.021 INFO: Unable to obtain lock file:///home/mg/src/bookserv/.bzr/branch/lock
held by mg@plato on host plato [process #14772]
locked 2 seconds ago
Will continue to try until 02:32:59, unless you press Ctrl-C
If you're sure that it's not being modified, use bzr break-lock file:///home/mg/src/bookserv/.bzr/branch/lock
... loops slowly until I hit ctrl-c ...

Removing the plugin and manually doing "bzr push" followed by "ssh plato bzr up src/bookserv" works fine.

bzr here: 2.1.0. bzr on plato: 2.0.2. bzr-push-and-update: whatever was in trunk 30 minutes ago.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I'm pretty sure this has been fixed. If you can still reproduce it, please attach the relevant sections of ~/.bzr.log

Changed in bzr-push-and-update:
status: New → Fix Released
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Just tried with latest bzr-push-and-update trunk:

$ bzr push bzr+ssh://plato/home/mg/src/bookserv
running "ssh plato bzr update "/home/mg/src/bookserv/""
Unable to obtain lock file:///home/mg/src/bookserv/ held by mg
at varlius [process #14959], acquired 13 seconds ago.
Will continue to try until 00:07:59, unless you press Ctrl-C.
See "bzr help break-lock" for more.
bzr: ERROR: Could not acquire lock "(local)": file:///home/mg/src/bookserv/
This transport does not update the working tree of: bzr+ssh://plato/home/mg/src/bookserv/. See 'bzr help working-trees' for more information.
Pushed up to revision 481.

At least there's no infinite loop any more.

The entry in ~/.bzr.log is short enough, and the "comment on this change" form doesn't let me attach files, so I'll include it inline:

Pn 2012-03-23 00:07:04 +0200
0.051 bazaar version: 2.4.2
0.051 bzr arguments: [u'push', u'bzr+ssh://plato/home/mg/src/bookserv']
0.083 looking for plugins in /home/mg/.bazaar/plugins
0.092 looking for plugins in /usr/lib/python2.7/dist-packages/bzrlib/plugins
0.125 encoding stdout as sys.stdout encoding 'UTF-8'
0.160 opening working tree '/home/mg/src/bookserv'
0.293 Unable to obtain credentials for {'protocol': 'ssh', 'server': 'plato'} from GNOME keyring: NoMatchError()
0.483 ssh implementation is OpenSSH
4.151 Using fetch logic to copy between CHKInventoryRepository('file:///home/mg/src/bookserv/.bzr/repository/')(RepositoryFormat2a()) and RemoteRepository(bzr+ssh://plato/home/mg/src/bookserv/.bzr/)(RemoteRepositoryFormat(_network_name='Bazaar repository format 2a (needs bzr 1.16 or later)\n'))
4.158 fetching: <SearchResult search:(set(['<email address hidden>']), ['<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', '<email address hidden>', ...], 15)>
4.200 stripping trailing bytes from groupcompress block 1876 => 893
4.218 stripping trailing bytes from groupcompress block 1205 => 587
4.257 creating new compressed block on-the-fly in 0.001s 58103 bytes => 17240 bytes
4.260 creating new compressed block on-the-fly in 0.001s 45311 bytes => 8765 bytes
4.262 creating new compressed block on-the-fly in 0.000s 58103 bytes => 7829 bytes
4.264 creating new compressed block on-the-fly in 0.001s 45311 bytes => 14886 bytes
4.266 creating new compressed block on-the-fly in 0.000s 58103 bytes => 4485 bytes
4.267 creating new compressed block on-the-fly in 0.000s 45311 bytes => 290 bytes
[26179] 2012-03-23 00:07:50.657 WARNING: This transport does not update the working tree of: bzr+ssh://plato/home/mg/src/bookserv/. See 'bzr help working-trees' for more information.
[26179] 2012-03-23 00:07:50.658 INFO: Pushed up to revision 481.
46.257 Transferred: 93kB (2.0kB/s r:13kB w:80kB)
46.257 return code 0

Jelmer Vernooij (jelmer)
Changed in bzr-push-and-update:
status: Fix Released → Triaged
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.