Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15524

Invalid branch keys in the build table

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 5.12.0.2
    • 5.8, 5.7.2, 5.9, 5.8.1, 5.8.2, 5.9.1, 5.9.3, 5.9.7, 5.10.3
    • Plan Branches
    • None

    Description

      Moving plans may potentially cause inconsistencies in the build table where incorrect branch keys are inserted into the build table.

      If you moved plans and restarted Bamboo, that could cause the same issue. Meaning, contrary to the first impression you might have after reading the logs, this won't happen necessarily during an upgrade task. The following can be seen in the logs:

      atlassian-bamboo.log
      2015-06-04 10:05:23,636 INFO [localhost-startStop-1] [AbstractUpgradeManager] Completed task 4410 with errors.
      2015-06-04 10:05:23,636 FATAL [localhost-startStop-1] [DefaultBootstrapManager] Pre-bootstrap validation tests failed: [Task for build 4410 failed:, com.atlassian.bamboo.upgrade.tasks.validation.BranchKeyStartsWithMastersChainKey: There 
      are invalid branch keys in the BUILD table: [BIS-SNATRUNK3]]
      

      Workaround:
      If you're hitting this and your instance is down, the following procedure should be applied so you can get your instance up and running:

      1. Stop your Bamboo instance.

      2. With Bamboo stopped navigate to

      <Bamboo Install Directory>/atlassian-bamboo/WEB-INF/classes
      

      and open the upgrades.xml file.

      3. Find the following line:

      <upgrade build="4410" build-min="4410" build-max="9999"             class="com.atlassian.bamboo.upgrade.tasks.validation.BranchKeyStartsWithMastersChainKey"/>
      

      and update it by commenting out the entry to:

      <!-- <upgrade build="4410" build-min="4410" build-max="9999" class="com.atlassian.bamboo.upgrade.tasks.validation.BranchKeyStartsWithMastersChainKey"/> -->
      

      4. Save the file Restart Bamboo.

      5. Get an export of your instance.

      6. Raise an issue with https://support.atlassian.com and attach your export so we can double check the database consistency.

      7. Once that's done, you should set your upgrades.xml back to uncomment the tag you commented out on the step #4 of this procedure.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cbenard Carlen Benard (Inactive)
              Votes:
              33 Vote for this issue
              Watchers:
              39 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: