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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might want to check this KB article - https://confluence.atlassian.com/bitbucketserverkb/object-directory-does-not-exist-git-operations-fail-after-upgrade-or-bitbucket_home-update-779171447.html
Maybe it would help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.