I recently migrated our Bitbucket server to a new machine. On the old machine, the path to the home directory was "/var/atlassian/application-data/bitbucket". Now it is one level shorter, namely "/var/atlassian/bitbucket".
In the web GUI, links and paths to repositories largely work, but for a couple of our branches / repos, we see errors similar to the following:
'/usr/bin/git cat-file -t regs/heads/python3-migration:' exited with code 0 saying: error: object directory /var/atlassian/application-data/bitbucket/shared/data/repositories/22/objects does not exist; check .git/objects/info/alternates.'
To me it looks like had-coded absolute paths are saved somewhere, either in the bitbucket db or home directory (which means I don't know whether it's Bitbucket saving the absolute paths or GIT.)
How do I set up my environment so that Bitbucket finds files relative to its home directory, as it should? Alternatively, do you have a list of where paths are hard-coded, so that I may go in and correct them myself?