Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with git-upload-pack

shay haper
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 17, 2018

We are seeing "git fsck" return hundreds of missing or corrupt trees in some of our repositories. This causes users to see errors when viewing Pull Requests in the Bitbucket UI. We are running a 3 node Bitbucket Data Center cluster on RedHat 7 VMs using TCP/IP clustering (not multicast). The Servers are configured with one NIC which serves both the inter-cluster communication and user requests. Most of the objects returned by git fsck exist on disk in ./objects but have 0KB size. Looking in our backups, we do not see these missing trees in a valid state which makes us think that they are being created as 0 byte objects. git gc --prune=all does not help. Also, we do not find these trees in an exhaustive search of the rev-list, using ls-tree across every entry. Do you know why we might have so many 0 byte objects being created in our repos? It is a serious problem which blocks our uses from merging pull requests, affecting their daily work.

1 answer

0 votes
Mark A_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2018

Hey Shay,

Is this issue still active for you?

Can you detail the actual issue or error you are receiving from git-upload-pack that prompted your investigation?

Do you know what activity transpired to cause the corruption? Was there an unexpected power outage or disk failure?

It is very interesting that objects are being written with 0kb as the objects in this folder are your commits. Have you experienced any other issues outside of viewing Pull Requests?

We do not recommend running a prune all as this action can delete necessary objects that are being used in forked repositories. Removing them, therefore, breaks the forked repository as the referenced objects will no longer be available. 

In the event your repositories are corrupted, we have a KB detailing the recommended action plan for when a repository becomes corrupted.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events