Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9814

Upgrading fails due to "'DF_cwd_application_address_remote_address_mask' is not a constraint."

    XMLWordPrintable

Details

    Description

      Summary

      The database upgrade of Bitbucket Server fails.

      Environment

      • MSSQL Server as database

      Steps to Reproduce

      1. 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.

      Attachments

        1. after.png
          after.png
          420 kB
        2. before.png
          before.png
          265 kB

        Issue Links

          Activity

            People

              hschnepel Hendrik (Inactive)
              ccurti Caterina Curti
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: