Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

119 views 2 4
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