Git indexing fails due to bad pack header
Symptoms
Fisheye fails to index a Git repository and the following appears in the atlassian-fisheye.log
:
2013-06-10 13:44:47,391 INFO [IncrementalPinger1 ] fisheye OneOffPingRequest-doRequest - Exception during FishEye Incremental Indexing of GITREPO: Unable to fetch from remote repository: file:///mnt/git/GITREPO.git
- [error: pack-objects died of signal 7, error: git upload-pack: git-pack-objects died with error., fatal: git upload-pack: aborting due to possible repository corruption on the remote side., remote: aborting due to possible repository
corruption on the remote side., fatal: protocol error: bad pack header]
Cause
This often indicates memory problems on the server.
Resolution
Log in to the server as the SSH user used to connect to the repo and run the commands below:
git config --global pack.windowMemory "100m"
git config --global pack.packSizeLimit "100m"
git config --global pack.threads "1"
Last modified on Oct 26, 2021
Powered by Confluence and Scroll Viewport.