Unable to Push to Bitbucket Server Repository
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
Problem
Pushing a commit to a Bitbucket Server repository fails with the following error:
1
2
3
4
5
6
7
8
9
10
> git push
Counting objects: 137, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (109/109), done.
Writing objects: 100% (110/110), 12.76 KiB, done.
Total 110 (delta 77), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 500
fatal: The remote end hung up unexpectedly
fatal: recursion detected in die handler
Everything up-to-date
And the following is visible in the atlassian-bitbucket.log
:
1
2013-04-17 16:14:55,825 ERROR [http-bio-7990-exec-75] admin 974x4683x1 1vtghb2 203.217.61.114,172.16.0.25 "POST /scm/API/reponame.git/git-receive-pack HTTP/1.1" c.a.s.i.s.g.web.GitSmartExitHandler Request for repo 'Reponame' of project 'API' from '192.168.1.10' failed: write process '/usr/bin/git http-backend ' caused an exception
Diagnosis
From the command line, run the following command in your repository:
1
git fsck
Cause
The repository has been corrupted.
Solution
Resolution
Re-clone the repository in another location and make sure that there are no other issues by running the git fsck
command again.
Was this helpful?