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

Bamboo UI accessible after post-bootstrap upgrade task fails and build plans aren't visible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 6.9.0, 6.8.2
    • 6.8.0
    • Upgrading
    • None

    Description

      Issue Summary

      When post-bootstrap upgrade tasks fail the Bamboo UI is still accessible and the failure is unknown unless logging is reviewed. No build plans are accessible as the plan cache is disabled due to the application being in bootstrap limbo.

      Steps to Reproduce

      Reproduce using BAM-20391 steps: Upgrade task 60903 (Populate PLAN_NAME column in BRS table (post-bootstrap)) fails on Microsoft SQL Server

      1. Install Bamboo 6.8.1 connected to Microsoft SQL Server database
      2. Create a build plan
      3. Upgrade to Bamboo 6.9.0

      Expected Results

      Bamboo UI is inaccessible and post-bootstrap upgrade task errors are shown in the UI.

      Actual Results

      Bamboo UI is accessible and failure is unknown (aside from some functionality not working depending on which upgrade task fails).

      Since upgrade failed, plan cache is disabled so no build plans are visible and the below is logged:

      2019-04-07 18:47:16,086 WARN [http-nio-8085-exec-2] [ImmutablePlanCacheServiceImpl] Attempt to load plan PLAN-TITLE while cache is disabled
      2019-04-07 18:47:16,087 ERROR [http-nio-8085-exec-2] [ImmutablePlanCacheServiceImpl] 
      com.atlassian.bamboo.plan.cache.ImmutablePlanCacheServiceImpl$PlanCacheDisabledException: Plan cache is disabled
      	at com.atlassian.bamboo.plan.cache.ImmutablePlanCacheServiceImpl$1.load(ImmutablePlanCacheServiceImpl.java:110)
      	at com.atlassian.bamboo.plan.cache.ImmutablePlanCacheServiceImpl$1.load(ImmutablePlanCacheServiceImpl.java:103)
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
      	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
      	at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
      	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
      	at com.atlassian.bamboo.utils.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:65)
      	at com.atlassian.bamboo.utils.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:126)
      	at com.atlassian.bamboo.plan.cache.ImmutablePlanCacheServiceImpl.internalGetPlanByKey(ImmutablePlanCacheServiceImpl.java:487)
      	at com.atlassian.bamboo.plan.cache.ImmutablePlanCacheServiceImpl.getImmutablePlanByKey(ImmutablePlanCacheServiceImpl.java:231)
      

      Workaround

      N/A

      Attachments

        Issue Links

          Activity

            People

              mgardias Marcin Gardias
              jowen@atlassian.com Jeremy Owen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: