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 votes
Answer accepted

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
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

220 views 0 12
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