After upgrading Bitbucket Server to 5.4+, the application does not complete the startup and the login screen is not displayed.
- Create a webhook
- Upgrade Bitbucket Server
The upgrade completes successfully.
The application does not complete the startup.
When checking the database, the following statement is in the idle in transaction status for a long time:
Delete the content of the AO_A0B856_WEB_HOOK_LISTENER_AO table before attempting the upgrade. By performing this operation, the webhook will not be available after the upgrade because its configuration has not been migrated to the new structure.
Manual modification of the database are not recommended and should be tested in a staging environment.
The steps would be:
- Take a backup of Bitbucket Server
- Stop Bitbucket Server
- Remove the content of the AO_A0B856_WEB_HOOK_LISTENER_AO table
- Start Bitbucket Server
- Recreate the webhook in the user interface