-
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
[BSERV-9814] Upgrading fails due to "'DF_cwd_application_address_remote_address_mask' is not a constraint."
Workflow | Original: Stash Workflow - Restricted [ 2302210 ] | New: JAC Bug Workflow v3 [ 3137320 ] |
Symptom Severity | Original: Major [ 14431 ] | New: Severity 2 - Major [ 15831 ] |
Fix Version/s | New: 5.2.0 [ 71978 ] | |
Fix Version/s | New: 5.0.5 [ 72634 ] | |
Fix Version/s | New: 5.1.3 [ 72635 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Quality Review [ 10029 ] | New: Closed [ 6 ] |
Status | Original: To be reviewed [ 10026 ] | New: Quality Review [ 10029 ] |
Link | New: This issue is related to BSERV-3540 [ BSERV-3540 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 301815 ] |
Remote Link |
New:
This issue links to "Bitbucket Server › 5.0.X DAO › bugfix- |
Status | Original: In Progress [ 3 ] | New: To be reviewed [ 10026 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |