git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug: fatal: Unable to create '.../.git/index.lock': File exists.

From
Jeff King <peff@peff.net>
Date
Apr 30, 2019, 17:41 UTC
Message-ID
<20190430174110.GA16729@sigill.intra.peff.net>
In-Reply-To
<CAF8BazBShg9F2uCuVQ_PM6196kOUNWOA1T9APkCXCoey7as2mQ@mail.gmail.com>
On Tue, Apr 30, 2019 at 02:19:11PM +0300, Aleksey Midenkov wrote:
Show 9 quoted lines
> > I gave it about 2000 commits (from v2.20.1 to master on git.git) to
> > rebase. No luck.
> 
> Please, try on this repo: git@github.com:tempesta-tech/mariadb
> 
> ```
> git checkout 62a082f573
> git rebase -p -x /tmp/check.sh ca7fbcea6c4
> ```
It doesn't reproduce for me.

Usually when we see racy contention on index.lock, the culprit turns out to be another unrelated git process refreshing the index. Do you have anything else running which might be using "git status" (e.g., magit in emacs, vim git integration, etc)?

-Peff
Previous: Aleksey MidenkovNext: Aleksey Midenkov
Message 4 of 15 in “Bug: fatal: Unable to create '.../.git/index.lock': File exists.”
  1. Aleksey MidenkovApr 29, 2019
  2. Duy NguyenApr 29, 2019
  3. Aleksey MidenkovApr 30, 2019
  4. Jeff KingApr 30, 2019
  5. Aleksey MidenkovMay 1, 2019
  6. Jeff KingMay 1, 2019
  7. Aleksey MidenkovMay 2, 2019
  8. Jeff KingMay 2, 2019
  9. Duy NguyenMay 2, 2019
  10. Jeff KingMay 2, 2019
  11. Duy NguyenMay 2, 2019
  12. Johannes SchindelinMay 3, 2019
  13. Duy NguyenMay 3, 2019
  14. Duy NguyenMay 3, 2019
  15. Johannes SchindelinApr 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.