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

git .lock file error

From
Nate Parsons <parsons.nate@gmail.com>
Date
Sep 13, 2010, 15:19 UTC
Message-ID
<AANLkTikjwW8jJ3qGCAM=8F_GBxsz9_KoSW0KDGPKhXGQ@mail.gmail.com>
Hi everyone,

I'm trying to switch to git, so I apologize in advance for my ignorance. For this, I'm using cygwin git, version 1.7.1 to talk to a svn server running 1.4.2.

When I 'git svn clone' or 'git svn clone; git svn fetch', I sometimes run into the following error.

> Couldn't open .git/svn/refs/remotes/0.0.0/.rev_map.b8cad480-e46b-48b4-8317-a683ee46c2bd.lock: Device or resource busy
>  at /usr/lib/git-core/git-svn line 5210
And when I 'git svn rebase'
> Couldn't open .git/svn/refs/remotes/git-svn/.rev_map.cc05479a-e8ea-436f-8d71-e07493b7796c.lock: Device or resource busy
> at /usr/lib/git-core/git-svn line 1528

Sometimes the line number is different (578, I think?), but when I retry the fetch command, it rebuilds the file corresponding to the lockfile, and then continues a little farther before dying again.

When I watch the directory in question, I see the lock file appear, and then disappearing a short time after the script gives up.

I don't have a series of steps to reproduce the problem, sometimes it goes for an hour, and sometimes for just a few minutes/seconds.

I do have TortoiseGit running my machine, but this issue happens even when TGitCache.exe is not running. If some other instance of git is accessing the repository, I don't know which or how.

Thanks, -Nate

Next: Nate Parsons
Message 1 of 10 in “git .lock file error”
  1. Nate ParsonsSep 13, 2010
  2. Nate ParsonsSep 20, 2010
  3. Nate ParsonsSep 30, 2010
  4. Ævar Arnfjörð BjarmasonSep 30, 2010
  5. Junio C HamanoSep 30, 2010
  6. Nate ParsonsSep 30, 2010
  7. Ævar Arnfjörð BjarmasonSep 30, 2010
  8. Erik Faye-LundSep 30, 2010
  9. Nate ParsonsOct 1, 2010
  10. Erik Faye-LundOct 1, 2010

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.