-
Bug
-
Resolution: Fixed
-
Highest
-
5.1.0, 5.0.1, 5.0.2
-
None
-
Severity 2 - Major
-
4
-
Summary
The database upgrade of Bitbucket Server fails.
Environment
- MSSQL Server as database
Steps to Reproduce
- Upgrade Bitbucket Server
Expected Results
The upgrade is successful and the application starts.
Actual Results
The below exception is thrown in the atlassian-bitbucket.log file:
WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'crowdAliasDao': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is liquibase.exception.MigrationFailedException: Migration failed for change set liquibase/r2_2/m01.xml::STASHDEV-3270-2a::bturner: Reason: liquibase.exception.DatabaseException: 'DF_cwd_application_address_remote_address_mask' is not a constraint. [Failed SQL: ALTER TABLE [dbo].[cwd_application_address] DROP CONSTRAINT [DF_cwd_application_address_remote_address_mask]]
Workaround
Rollback to a previous version of Bitbucket Server.
- is related to
-
BSERV-3540 Add schema support when connecting Stash to SQL Server, PostgreSQL and Oracle
- Gathering Interest