Git/Bitbucket: Resolving “fatal: unable to create thread: Resource temporarily unavailable” error during push

Written by

on

in

, ,

I’ve been trying to push a new WordPress site’s codebase to my Bitbucket Git repository but it kept on failing with the following error messages:

Enumerating objects: 11966, done.
Counting objects: 100% (11966/11966), done.
Delta compression using up to 56 threads
fatal: unable to create thread: Resource temporarily unavailable
error: remote unpack failed: eof before pack header was fully read
error: failed to push some refs to '[email protected]:<my_workspace_name>/<my_repo_name>.git'

I was trying to push my codebase from my server (hosted by Namecheap) to Bitbucket.

The solution to make the push work was to enter the following through command line on my server:

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

Reference: git push fatal: unable to create thread: Resource temporarily unavailable

Related Posts

About the author:

Catzie Avatar

The homo sapiens behind these blog posts is “Catzie“

Explore my top blog posts:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *