Please describe the problem.
After many addeded files, a have error: Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. fatal: Unable to create '/home/syncer/updates/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. fatal: Unable to create '/home/syncer/updates/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. fatal: Unable to create '/home/syncer/updates/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.
git-annex: user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--"] exited 123) failed fatal: Unable to create '/home/syncer/updates/.git/index.lock': File exists.
What steps will reproduce the problem?
cd /home/syncer/updates
git init
git annex init --version=6
git clone ssh://git-annex.drweb.loc/home/syncer/updates
echo "* annex.backend=WORM" > .gitattributes
git add .gitattributes
git commit -m "set attributes"
git annex initremote myrsync type=rsync rsyncurl=git-annex.drweb.loc:/home/syncer/rsync_remote encryption=none
git annex copy --all --to myrsync
add and modify files
git annex add -J8 .
What version of git-annex are you using? On what operating system?
git-annex version: 6.20170101.1 build flags: Assistant Webapp Pairing Testsuite S3(multipartupload)(storageclasses) WebDAV Inotify DBus DesktopNotify ConcurrentOutput TorrentParser MagicMime Feeds Quvi key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3_512 SHA3_224E SHA3_224 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 SHA1E SHA1 MD5E MD5 WORM URL remote types: git gcrypt p2p S3 bup directory rsync web bittorrent webdav tahoe glacier ddar hook external local repository version: 6 supported repository versions: 3 5 6 upgrade supported from repository versions: 0 1 2 3 4 5 operating system: linux x86_64
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
# End of transcript or log.
Reproduced by creating 10000 files and running
git -c annex.queuesize=100 annex add -J8
Apparently it runs two concurrent git adds when flushing the queue in some circumstances. The smaller queue size must make it easier to reproduce; without it all 10000 files get added ok here.
It's not specific to v6 at all.
Two worker threads are flushing their queues at the same time.