threads / discuss / 22775

Error on push (unable to create temporary sha1 filename)

Subject: Error on push (unable to create temporary sha1 filename)

## tl;dr

5 messages between Feb 23, 2010 and Feb 27, 2010.

replies: 4people: 2as markdown or json

Jan Niklas Hasse· Feb 23, 2010, 21:11 UTC · lore
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· Feb 24, 2010, 00:54 UTC · re: Jan Niklas Hasse · lore

Re: Error on push (unable to create temporary sha1 filename)

Hi,
On Wed, Feb 24, 2010 at 5:11 AM, Jan Niklas Hasse <jhasse@gmail.com> wrote:
Show 14 quoted lines
> 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· Feb 27, 2010, 12:38 UTC · re: Tay Ray Chuan · lore

Re: Error on push (unable to create temporary sha1 filename)

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· Feb 27, 2010, 13:01 UTC · re: Jan Niklas Hasse · lore

Re: Error on push (unable to create temporary sha1 filename)

Hi,
On Sat, Feb 27, 2010 at 8:38 PM, Jan Niklas Hasse <jhasse@gmail.com> wrote:
Show 9 quoted lines
> 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· Feb 27, 2010, 13:16 UTC · re: Tay Ray Chuan · lore

Re: Error on push (unable to create temporary sha1 filename)

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!

← back to recent threads