fork respository path error

We moved bitbucket to new server machine, and changed ApplicationData Path from C:/Atlassian/ApplicationData to D:/atlassian/ApplicationData. All respositories work well but forked respositories. When we click and enter the any  fork respository, web page will show message below:

'C:\Program Files\Git\cmd\git.exe cat-file -t refs/heads/master:' exited with code 128 saying: error: object directory C:/Atlassian/ApplicationData/Bitbucket/shared/data/repositories/12/objects does not exist; check .git/objects/info/alternates. fatal: Not a valid object name refs/heads/master:

Please see your system administrator.


ps. the path below(not c driver) is exist. 


1 answer

1 accepted

0 vote

Hi Tonny, that issue seems to be related to the problem explained in the following articles, have you checked them already:

Let us know if this worked for you!

Best regards,


Thanks Ana, The first articles works. =)

Just change refer path in alternates file in forked repositories, make it point to new BITBUCKET_HOME path.

alternates file Path:


<repoID> is forked repositorty id

My bitcket verion is 5.3. the alternates file path is different with that in artical (show incompleted, display issue):

BITBUCKET_HOME/shared/data/repositories/<repoID>/objects/info/al(versions 3.2+)


system prevent my submit... try split 2 submits and works : (

show up an error message, says operation is inappropriate or spam...

I'm glad you got it working, Tonny! 

Thanks for telling us about the bug with the inappropriate language or spam. We have already reported it and are working on a fix :) It normally happens when we copy the formatting from a different site, the solution is to paste just plain text and apply the formatting here.

Have a nice day!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,944 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you