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

Re: git-svn fetch failure: index.lock file exists

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 17, 2007, 21:15 UTC
Message-ID
<20071117211549.GC31598@mayonaise>
In-Reply-To
<65dd6fd50711151607x50639232w6d79322129c3d82@mail.gmail.com>
Ollie Wild <aaw@google.com> wrote:
Show 23 quoted lines
> Hi,
> 
> I've been using git-svn for a while now to work on gcc.  Last night, I did a
> 
>   git svn fetch
> 
> and got the following failure:
> 
>   Found possible branch point: svn+ssh://aaw@gcc.gnu.org/svn/gcc/trunk =>
>       svn+ssh://aaw@gcc.gnu.org/svn/gcc/tags/libbid-last-merge, 128810
>   Found branch parent: (tags/libbid-last-merge)
>       789aa951bbc6a49f791bf5109136335fc33222c5
>   fatal: unable to create
> '.git/svn/tags/libbid-last-merge/index.lock': File exists
>   read-tree 789aa951bbc6a49f791bf5109136335fc33222c5:
>       command returned error: 128
> 
> Naively, it looks to me like I've just got a stale lock file from a
> previous run.  However, I have no idea what the correct recovery
> strategy is.  Can I just delete the lock file?  Do I need to do some
> sort of data validation?
> 
> I'm using git version 1.5.2.5 with subversion version 1.4.5 (r25188).

Did you interrupt git-svn in a previous run? But you should be able to just remove it; git-svn should verify that the index is in a consistent state before it attempts to fetch again.

-- 
Eric Wong
Previous: Ollie WildNext: Ollie Wild
Message 2 of 3 in “git-svn fetch failure: index.lock file exists”
  1. Ollie WildNov 16, 2007
  2. Eric WongNov 17, 2007
  3. Ollie WildNov 26, 2007

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.