Clone freezes at Compressing objects: 96%
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Performing a clone operation freezes at "Compressing objects: 96%" on the client side.
> git clone <bitbucket base url>/scm/<project>/<repository>.git
...
Cloning into '.'...
remote: Counting objects: 453, done.
remote: Compressing objects: 96% (381/396)
Environment
Bitbucket Data Center 6.10.1
Linux Kernel 2.6.32-573.el6.x86_64
Diagnosis
- The same clone operation also fails when executed from Sourcetree and locally on the server.
- Navigating to the repository on Bitbucket UI shows a 500 error
- Using GNU Debugger the following entries are found pointing to threads blocked in lock_wait_private()
In the example above threads 0x7fa31cc78700, 0x7fa31a474700 and 0x7fa326627700 are blocked on that method.
Cause
This issue is caused by the bug below reported on older versions of the GLIBC library
Solution
- Update the GLIBC library to glibc-2.12-1.166.el6_7.1 or greater
- Update the OS to a newer version of the kernel