Reputation: 2468
I'm having this problem while trying to push my repo to bitbucket for the first time:
[~/public_html]# git push -u origin --all
Counting objects: 2170, done.
Delta compression using up to 12 threads.
fatal: Out of memory, calloc failed
error: pack-objects died with strange error
I've found similar propblems on StackOverflow that suggest using repack with --window-memory and --max-pack-size, but I get pretty much the same error:
[~/public_html]# git repack -a -d --window-memory 10m --max-pack-size 10m
Counting objects: 2170, done.
Delta compression using up to 12 threads.
fatal: Out of memory, calloc failed
My server has 4 GB of memory, so I can't see how it's run out. I don't have any particulary large files and my entire repo is only 12 MB
I have already done some searching, but I can't find anything particular to my case.
What could be happening here?
Upvotes: 3
Views: 2745
Reputation: 1875
It looks like your web host is not allowing certain memory allocation instructions to execute. You might want to try compiling your own version of git with mmap turned off.
For reference: http://wiki.dreamhost.com/Git#Setup_Two:_More_Thoughtful
Upvotes: 4