I've migrated our old 4.12 Bitbucket server to a new 5.8 instance by following the manual method of transfering the home directory to the new server and setting up the <BITBUCKET_HOME>/shared/bitbucket.properties file as per the instructions. The database was migrated from the old mySql to Postgres in the process.
Everything works fine in launching the server and accessing it, admin etc. I can list projects and repositiories but if I try to access a repo it displays the empty repo screen. Trying to clone it to my local and I get a
"The SSH command failed, please check the server logs for details.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."
error.
Any suggestions?
Hi Ashley,
Can you see if the directory of the repository in question still exists and can be cloned from? You can find out the file system location of the repository by accessing the repository settings in Bitbucket Server and looking at the "location on disk".
Then see if that location is valid and whether the repository can be cloned locally using that location. Lastly, if the repo is there and can be cloned, maybe there are permission issues, so check that the shared home directory is readable and writable by the user that Bitbucket Server runs as.
Cheers,
Christian
Premier Support Engineer
Atlassian
Hi Christian
Thanks for responding. I eventually figured it out. My new data location didn't match the old one. Creating a symlink for the old directory to the new directory in the new system resolved it. I haven't tried it yet, but now it's working, I'll set the new location in the config files and see if it flips over, in which case I can remove the symlink.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.