# Bug? git svn fetch: "unable to create temporary sha1 filename /home/andres/git/public/crystal.git/objects/96: File exists"

2 messages from 2008-09-30 to 2008-09-30. Participants: Andres Freund.
Thread: https://gitlist.dev/t/15714

## Andres Freund, 2008-09-30 00:09

Subject: Bug? git svn fetch: "unable to create temporary sha1 filename /home/andres/git/public/crystal.git/objects/96: File exists"
Message-ID: <200809300210.00285.andres@anarazel.de>
URL: https://gitlist.dev/e/200809300210.00285.andres%40anarazel.de

```
Hi,

I regularly run git-svn fetch on some mirrors of svn repositories - which 
works quite well.
But now I started to get this error:

Last successfull git svn fetch:
        M       src/z3c/form/browser/file-testing.txt
r91613 = 27c991067847b4a54a4d8bc71d440c74893475af (trunk)
From .
   c7c32b3..27c9910  trunk      -> trunk

First failing svn fetch:
        M       plugins/cscript/pycore/coremod.cpp
        M       plugins/cscript/cspython/pytocs.cpp
error: unable to create temporary sha1 filename 
/home/andres/git/public/crystal.git/objects/96: File exists

fatal: Unable to add /tmp/Git_zIIUG4 to database
hash-object -w --stdin-paths: command returned error: 128

error closing pipe: Bad file descriptor at /usr/local/libexec/git-core/git-svn 
line 0
error closing pipe: Bad file descriptor at /usr/local/libexec/git-core/git-svn 
line 0
        M       src/z3c/form/tests/test_doc.py
r91624 = 6a9a5c03c44618ca1cc34cf428c94b25009c6fc4 (trunk)
        A       src/z3c/form/testing.txt
r91625 = a10508daf71d4e8aaad5531f5bcf8cb4ef0695e8 (trunk)
From .
   27c9910..a10508d  trunk      -> trunk

All further git svn fetch invocation result in something alike:

Index mismatch: c8858cc0b587ab638af9ed52e7c03c8966b7db63 != 
c32a46c51a046500a3765fe573b95e2eb2f44b2a
rereading 87e2a16d8c259eba290bde0512af4d6bc1f64d1f
        M       plugins/cscript/pycore/coremod.cpp
        M       plugins/cscript/cspython/pytocs.cpp
error: unable to create temporary sha1 filename 
/home/andres/git/public/crystal.git/objects/96: File exists

fatal: Unable to add /tmp/Git_YSlrAs to database
hash-object -w --stdin-paths: command returned error: 128

error closing pipe: Bad file descriptor at /usr/local/libexec/git-core/git-svn 
line 0
error closing pipe: Bad file descriptor at /usr/local/libexec/git-core/git-svn 
line 0

svn fetch is always invocated as "git --bare svn fetch".

Git repository is located at:
git://git.anarazel.de/crystal.git
http://git.anarazel.de/git/crystal.git

Original svn repository is located at: 
https://crystal.svn.sourceforge.net/svnroot/crystal

Any idea?

Thanks,

Andres


```

## Andres Freund, 2008-09-30 00:23

Subject: Re: Bug? git svn fetch: "unable to create temporary sha1 filename /home/andres/git/public/crystal.git/objects/96: File exists"
Message-ID: <200809300223.29133.andres@anarazel.de>
URL: https://gitlist.dev/e/200809300223.29133.andres%40anarazel.de
In-Reply-To: <200809300210.00285.andres@anarazel.de>

```
On Tuesday 30 September 2008, Andres Freund wrote in "Bug?  git svn fetch: 
"unable to create temporary sha1 filename 
/home/andres/git/public/crystal.git/objects/96: File exists"":
> First failing svn fetch:
>         M       plugins/cscript/pycore/coremod.cpp
>         M       plugins/cscript/cspython/pytocs.cpp
> error: unable to create temporary sha1 filename
> /home/andres/git/public/crystal.git/objects/96: File exists
>
> fatal: Unable to add /tmp/Git_zIIUG4 to database
> hash-object -w --stdin-paths: command returned error: 128
>
> error closing pipe: Bad file descriptor at
> /usr/local/libexec/git-core/git-svn line 0
> error closing pipe: Bad file descriptor at
> /usr/local/libexec/git-core/git-svn line 0
After repacking the repository the problem is gone. Really rather strange.

Andres

```
