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

[BUG REPORT] Intermittent errors: Unable to create '/usr/ports/.git/index.lock': File exists.

From
YYuri <yuri@rawbw.com>
Date
Sep 9, 2021, 19:29 UTC
Message-ID
<1fcdeb8f-5869-cfe4-6063-8d4fb5da709c@rawbw.com>
Once every ~20 times I call 'git commit' it fails like this:

$ git commit . fatal: Unable to create '/usr/ports/.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.

There's no other instance.
It usually succeeds next time.
git-2.32.0
OS: FreeBSD 13
Yuri
Next: Jeff King
Message 1 of 2 in “[BUG REPORT] Intermittent errors: Unable to create '/usr/ports/.git/index.lock': File exists.”
  1. YuriSep 9, 2021
  2. Jeff KingSep 9, 2021

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.