Unable to upgrade Bitbucket: DB Setup required
Platform Notice: Data Center Only - This article only applies to Atlassian apps on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
Unable to upgrade Bitbucket Server properly. Upgrade takes you to the database setup page.
Diagnosis
Diagnostic Steps
Ensure the user running Bitbucket has access to the bitbucket.properties file and the <Bitbucket Home> directory as a whole.
Cause
The user running Bitbucket is unable to access the bitbucket.properties file.
Resolution
Run the following command to give the user access to the directory.
sudo chown -R <Bitbucket user> <Path to Bitbucket Home>
Was this helpful?