Error: Unpack Failed: Unpack-objects Abnormal Exit
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
Trying to GIT push to remote repository gets to the following error (in command prompt/terminal)
1
2
3
4
error: unpack failed: unpack-objects abnormal exit
To http://example.com;
! [remote rejected] HEAD -> master (n/a (unpacker error))
error: failed to push some refs to 'http://example.com'
Diagnosis
Single user failed to push to remote repository. See #1 cause and resolution.
Multiple users failed to push to remote repository. See #2 cause and resolution.
Cause
The local repository may be corrupted. See #1 resolution.
Disk space in the server hosting Bitbucket Server is full. See #2 resolution.
Solution
Resolution
The following resolution shown are referring to the respective cause above.
To verify that the local repository is corrupted, you can clone your remote repository to another new directory and then push again. Running
git repack
might help in case the local repository is indeed corrupted.If disk space is indeed full for Bitbucket Server, clear them and push again.
Was this helpful?