Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

After migration to RHEL8 , I am unable to see git repos in bitbucket server.

I have edit the path of repositories object in integration-system-workid/.git/objects/info/alternates as suggested in error shown on display. But still cannot see the repo on server . Still I am seeing the same error 505.


'/usr/local/bin/git cat-file -t refs/heads/master:' exited with code 0 saying: error: object directory /opt/stash/shared/data/repositories/471/objects does not exist; check .git/objects/info/alternates.

It is still trying to fetch the repo from old path -opt/stash/shared/data/repositories/

whereas new path I set in alternates is-  cd /opt/bitbucket/bitbucket_home/shared/data/repositories/ ...

I had a repoID mentioned there which i have not changed, just modified the stash to bitbucket/bitbucket_home. Please suggest a way forward for its resolution


1 answer

0 votes
Mirek Community Leader Jan 12, 2021

Hi @Rashmi

First of all I suggest to check carefully ownership of all folders and files. That is common case that there is something that was broken after migration. Make sure that user that started application is able to see full path.

Hi Mirek! 

Thanks for your suggestion, I have check each file and folder has bitbucket owner in repo.  Just wondering how can I check user that started bitbucket application is able to see full path of bitbucket_home?

Mirek Community Leader Jan 12, 2021

Maybe you can use find command to start a search and if there is any folder (or path) that the user would not have access you should see that information on your screen

From user you mean bitbucket user or the end user who is trying to access the repo?

I have checked my bitbucket user has access to the path of repo. So both conditions are okay but still its not working. I have now changed the path is application.xml file inside bitbucket_home/logs/support and restarted the server but no help.

I have followed these steps as well, but no help as I described in description. One question the alternates file would be in each repo_id/objects/info/id or in tmp/.git/objects/info which I need to update. Though I have changed on both.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,378 views 1 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you