Unable to Push to Bitbucket Server Repository
Problem
Pushing a commit to a Bitbucket Server repository fails with the following error:
> 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
:
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:
git fsck
Cause
The repository has been corrupted.
Resolution
Re-clone the repository in another location and make sure that there are no other issues by running the git fsck
command again.
Last modified on Mar 18, 2016
Powered by Confluence and Scroll Viewport.