# Error on push (unable to create temporary sha1 filename)

5 messages from 2010-02-23 to 2010-02-27. Participants: Jan Niklas Hasse, Tay Ray Chuan.
Thread: https://gitlist.dev/t/22775

## Jan Niklas Hasse, 2010-02-23 21:11

Subject: Error on push (unable to create temporary sha1 filename)
Message-ID: <8dacd7b31002231311q46c1c3b9o63c57fabe696f2ea@mail.gmail.com>
URL: https://gitlist.dev/e/8dacd7b31002231311q46c1c3b9o63c57fabe696f2ea%40mail.gmail.com

```
Hello everyone,

I'm new to git and recently set up my own server where I can push to
via ssh. It worked fine for several pushes but suddenly I got this
error message:

git push origin master

Counting objects: 37, done.
Compressing objects: 100% (27/27)
Writing objects: 100% (31/31)
Writing objects: 100% (31/31), 5.59 KiB, done.
Total 31 (delta 11), reused 10 (delta 1)
error: unable to create temporary sha1 filename ./objects/0e: File exists

fatal: failed to write object
error: unpack failed: unpacker exited with error code
To git@myserver.de:django.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'git@myserver.de:django.git'


I didn't changed anything on the server and haven't done anything
special in my local copy (just added/edited files). How can I fix
this? (Already tried cloning my repository locally and push from the
new one).

Thanks in advice,
Jan

PS: Please cc me in your response since I'm not subscribed to the mailing list.

```

## Tay Ray Chuan, 2010-02-24 00:54

Subject: Re: Error on push (unable to create temporary sha1 filename)
Message-ID: <be6fef0d1002231654r4fe08149qa937bbd9cc83d6a2@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d1002231654r4fe08149qa937bbd9cc83d6a2%40mail.gmail.com
In-Reply-To: <8dacd7b31002231311q46c1c3b9o63c57fabe696f2ea@mail.gmail.com>

```
Hi,

On Wed, Feb 24, 2010 at 5:11 AM, Jan Niklas Hasse <jhasse@gmail.com> wrote:
> git push origin master
>
> Counting objects: 37, done.
> Compressing objects: 100% (27/27)
> Writing objects: 100% (31/31)
> Writing objects: 100% (31/31), 5.59 KiB, done.
> Total 31 (delta 11), reused 10 (delta 1)
> error: unable to create temporary sha1 filename ./objects/0e: File exists
>
> fatal: failed to write object
> error: unpack failed: unpacker exited with error code
> To git@myserver.de:django.git
>  ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to 'git@myserver.de:django.git'

could you try running "git gc"? Perhaps you have temp files from
previously aborted/failed pushes lying around.

-- 
Cheers,
Ray Chuan

```

## Jan Niklas Hasse, 2010-02-27 12:38

Subject: Re: Error on push (unable to create temporary sha1 filename)
Message-ID: <8dacd7b31002270438ve59e43djd44e2866b697d3ab@mail.gmail.com>
URL: https://gitlist.dev/e/8dacd7b31002270438ve59e43djd44e2866b697d3ab%40mail.gmail.com
In-Reply-To: <be6fef0d1002231654r4fe08149qa937bbd9cc83d6a2@mail.gmail.com>

```
Hi,

On Wed, Feb 24, 2010 at 1:54 AM, Tay Ray Chuan <rctay89@gmail.com> wrote:
> could you try running "git gc"? Perhaps you have temp files from
> previously aborted/failed pushes lying around.

The output of git gc looks like this:

Counting objects: 102, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (52/52), done.
Writing objects: 100% (102/102), done.
Total 102 (delta 34), reused 102 (delta 34)

But still the same error message when trying to push :(

```

## Tay Ray Chuan, 2010-02-27 13:01

Subject: Re: Error on push (unable to create temporary sha1 filename)
Message-ID: <be6fef0d1002270501j124540c5g36a6a97142f4a7fc@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d1002270501j124540c5g36a6a97142f4a7fc%40mail.gmail.com
In-Reply-To: <8dacd7b31002270438ve59e43djd44e2866b697d3ab@mail.gmail.com>

```
Hi,

On Sat, Feb 27, 2010 at 8:38 PM, Jan Niklas Hasse <jhasse@gmail.com> wrote:
> The output of git gc looks like this:
>
> Counting objects: 102, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (52/52), done.
> Writing objects: 100% (102/102), done.
> Total 102 (delta 34), reused 102 (delta 34)
>
> But still the same error message when trying to push :(

running out of ideas. Could you post the output of "ls -lR .git/objects" ?

-- 
Cheers,
Ray Chuan

```

## Jan Niklas Hasse, 2010-02-27 13:16

Subject: Re: Error on push (unable to create temporary sha1 filename)
Message-ID: <8dacd7b31002270516g63b84112g606da2a585764467@mail.gmail.com>
URL: https://gitlist.dev/e/8dacd7b31002270516g63b84112g606da2a585764467%40mail.gmail.com
In-Reply-To: <be6fef0d1002270501j124540c5g36a6a97142f4a7fc@mail.gmail.com>

```
On Sat, Feb 27, 2010 at 2:01 PM, Tay Ray Chuan <rctay89@gmail.com> wrote:
> running out of ideas. Could you post the output of "ls -lR .git/objects" ?

Yes:
$ ls -LR .git/objects
.git/objects:
info  pack

.git/objects/info:
packs

.git/objects/pack:
pack-34230f05b0351f54be4f3770abca7e483c5592c9.idx
pack-34230f05b0351f54be4f3770abca7e483c5592c9.pack
$

I'm using git version 1.6.3.3 btw. Thanks for the help so far!

```
