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. 

D:/Atlassian/ApplicationData/Bitbucket/shared/data/repositories/12/objects

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,

Ana

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:

%BITBUCKET_HOME%\shared\data\repositories\<repoID>\objects\info\alternates 

<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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

30,778 views 26 12
Join discussion

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