no indication when git-annex is stuck waiting for a lockgit-annexhttp://git-annex.branchable.com/bugs/git-annex_merge_stalls/git-annexikiwiki2016-06-02T18:48:45Zcomment 1http://git-annex.branchable.com/bugs/git-annex_merge_stalls/comment_1_31578a754945bdcb902c62ff58704bcb/joeyh.name2013-11-27T22:47:37Z2013-09-09T15:45:17Z
<p>The relevant part of the log is:</p>
<pre>
65332/0x53591a: open("/Users/gsolsberry/annex/.git/annex/journal.lck\0", 0x601, 0x1B6) = 8 0
65332/0x53591a: fcntl(0x8, 0x9, 0x107009D60) = -1 Err#-1
</pre>
<p>waitToSetLock thinks fcntl is failing to lock the file due to something else having it locked, and retries, leading to the hang.</p>
<p>I'm told on irc that this was installed using the prebuilt image, and that a previous version of it didn't have the problem.</p>
comment 2http://git-annex.branchable.com/bugs/git-annex_merge_stalls/comment_2_f3b6bf180466b5931bfd20b2f0229422/Glendon2013-11-27T22:47:37Z2013-09-09T15:54:59Z
<p>With latest 20130909 version, the following log from git-annex merge:</p>
<p>https://www.dropbox.com/s/3hklzfsflpxuk5s/annex-merge.log.1</p>
comment 3http://git-annex.branchable.com/bugs/git-annex_merge_stalls/comment_3_ced9b0d724fb55c756106b64c3721003/joeyh.name2016-06-02T18:48:45Z2013-09-09T19:35:25Z
<p>This problem cleared up after a reboot (and a crash, apparently).</p>
<pre>
joeyh so, my thought is that perhaps you had a git-annex process before that was holding the lock.
joeyh for example, if you ran it and ctrl-z'd at just the right time, it could be suspended and holding the lock
joeyh (or the kernel coud have gotten confused, which given you also had a crash, who knows..)
dp sounds logical
joeyh forcing locks is always a problematic thing
joeyh but git-annex could certainly notice if it seems to be stalled and print some useful messages
joeyh and maybe have a way to run with locks forced
</pre>