Git indexing fails due to bad pack header

Still need help?

The Atlassian Community is here for you.

Ask the community

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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.