Bamboo Build Expiry fails to complete if one of the bundled plugins is disabled

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 13.0.0, 12.1.7
    • Affects Version/s: 12.1.3
    • Component/s: Expiry
    • None
    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      Bamboo Build  Expiry fails to complete if one of the system plugins is disabled and then enabled.

      The error message is seen

      Cannot create object because the plugin container is unavailable for bundle  

      Steps to Reproduce

      1. Disable one of the bundled plugins for example com.atlassianlab.bamboo.plugins.bamboo-after-deployment-trigger-plugin
       
      2. Run the Global Expiry process

      Expected Results

      Build expiry should complete successfully.

      Actual Results

      Build expiry does not complete and we can see the below message in the logs

      2026-04-16 02:00:04,238 ERROR [scheduler_Worker-8] [ClusterAwareJob] Background job QUARTZ:ExpiryJob [CLUSTERED execution mode] failed during execution
      org.quartz.JobExecutionException: java.util.concurrent.ExecutionException: io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Cannot create object because the plugin container is unavailable for bundle 'com.atlassianlab.bamboo.plugins.bamboo-after-deployment-trigger-plugin'
          at com.atlassian.bamboo.build.expiry.ExpirySchedulerImpl$ExpiryJob.executeBody(ExpirySchedulerImpl.java:135)
          at com.atlassian.bamboo.quartz.cluster.ClusterAwareJob.execute(ClusterAwareJob.java:123)
          at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
          at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:27)
          at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:18)
          at com.atlassian.bamboo.security.ImpersonationHelper.lambda$makeRunnableWithSystemAuthority$0(ImpersonationHelper.java:56)
          at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:566)
      Caused by: java.util.concurrent.ExecutionException: io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Cannot create object because the plugin container is unavailable for bundle 'com.atlassianlab.bamboo.plugins.bamboo-after-deployment-trigger-plugin'
          at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:594)
          at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:573)
          at com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:91)
          at com.atlassian.bamboo.build.expiry.ExpirySchedulerImpl$ExpiryJob.executeBody(ExpirySchedulerImpl.java:126)
          ... 6 more
      

      Workaround

      1. Enable the bundled plugin
      2. Restart the Bamboo Instance. 

              Assignee:
              Mateusz Szmal
              Reporter:
              Shashank Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: