Git / Bitbucket – The remote end hung up unexpectedly – Early EOF – index-pack failed at exactly 1GB


Suddenly my repository failed to clone:

git clone

Cloning into ‘myrepo’…

remote: Counting objects: 332184, done.

remote: Compressing objects: 100% (59662/59662), done.

fatal: The remote end hung up unexpectedly020.57 MiB | 9.89 MiB/s

fatal: early EOF

fatal: index-pack failed


It failed at exactly 1GB.

I found the fix at:


It was caused by a limit in nginx reverse proxy, after increasing the limit to 2GB I could clone again.