Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

My git push is failing with the below message,

Mangesh Chougule September 16, 2019

$ git push

Enumerating objects: 5, done.

Counting objects: 100% (5/5), done.

Delta compression using up to 8 threads

Compressing objects: 100% (3/3), done.

fatal: Out of memory, malloc failed (tried to allocate 4168062027 bytes)

fatal: sha1 file '<stdout>' write error: Broken pipe

error: remote unpack failed: unpack-objects abnormal exit

error: failed to push some refs to 'git@git-ba.efi.com:ProductizationAutomation.git'

 udayak@udayak-w10lt MINGW64 /d/Git_ProductizationAutomation/ProductizationAutomation (master)

I am trying to push *.sql which is around 4Gb.

Can you help me get over this issue? Is there any limitation on the file size in the repository?

1 comment

Comment

Log in or Sign up to comment
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2019

@Mangesh Chougule 

 

Are you pushing to a bitbucket server? If yes, than

https://confluence.atlassian.com/bitbucketserverkb/git-push-fails-out-of-memory-malloc-failed-779171370.html

describes the problem (that the bitbucket server does not have enough memory available)

 

Cheers

Kurt

Mangesh Chougule September 16, 2019

Hi Kurt,

Thanks for the quick response!

I'm trying to push to a git server.

Please help for the same.

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2019

@Mangesh Chougule 

 

Does git server mean bitbucket server?

If yes, than you could modify the startup script and change the setting for the maximum heap usable by bitbucket 

https://confluence.atlassian.com/bitbucketserver/scaling-bitbucket-server-776640073.html

 

Cheers

Kurt

Mangesh Chougule September 17, 2019

Hi Kurt,

Thanks for the response.

its remote git server.

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2019

@Mangesh Chougule 

 

But which product, Bitbucket, Github etc?

 

Cheers

 

Kurt

Mangesh Chougule September 18, 2019

Hi Kurt,

Github..

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2019

@Mangesh Chougule 

 

Hi Mangesh

you should check the client settings and adjust them accordingly

try increasing the packSizeLimit (the values might need to be higher than 1000m for you)

git config --global pack.windowMemory "1000m"
git config --global pack.packSizeLimit "1000m"
git config --global pack.threads "1"

Repacking the commit again

git repack -a -f -d

 

and try it again

Cheers

 

Kurt 

Like Mangesh Chougule likes this
Mangesh Chougule September 18, 2019

Thanks Kurt,

 

This needs to run in my client machine?

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2019

@Mangesh Chougule 

 

Hi Mangesh

 

yes on the client machine

 

Cheers

Kurt

Mangesh Chougule September 18, 2019

since im trying to push around 4gb of file so whats value need to put here

 

git config --global pack.windowMemory "1000m"
git config --global pack.packSizeLimit "1000m"
git config --global pack.threads "1"
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2019

@Mangesh Chougule 

 

This is something that you might need to figure out bye yourself. Increasing it as needed

 

Cheers

Kurt

TAGS
AUG Leaders

Atlassian Community Events