The following occurs in a directory that is shared on an NFS server:
/media/mybook/movies $ git init
Initialized empty Git repository in /media/mybook/movies/.git/
/media/mybook/movies $ git annex init mybook-movies
init mybook-movies
git-annex: waitToSetLock: resource exhausted (No locks available)
failed
git-annex: init: 1 failed
/media/mybook/movies $
This happens reliably. Is there any way around it? I have shell access on the NFS server, but it is a NAS, so I don't think it is capable of running git-annex.
git-annex uses locking to avoid problems if multiple processes are run at the same time.
I just tested on NFS, with Linux on the server and client, and it works ok. It seems your NFS client (or server) must not support fncl locking. What OS is your NAS running?
You might try mounting your NAS with the mount option
local_lock=all
This will keep the lock files on your (I assume linux) client. If you do this make sure you don't have another client using git-annex in the same NFS directory.