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

Unable to roll back deployment project release due to expired build results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • None
    • None
    • None

    Description

      We've tried to rolled back a deployment release to a previous version but Bamboo failed to download the release artifact because the build result had already been cleaned up. I guess the artifacts are still on S3 but Bamboo failed to generate the proper link.

      From my understanding, build expiry and deployment artifacts are decoupled and purging the producing build should not impact the deployment of a release.

      2014-12-10 05:16:40,178 INFO [http-bio-8085-exec-50] [AccessLogFilter] <user> GET http://intsys-bamboo.internal.atlassian.com/build/artifactUrlRedirect.action?planKey=XXX-YYY&buildNumber=111&artifactName=Foo%20Bar 2613074kb
      2014-12-10 05:16:40,183 WARN [http-bio-8085-exec-50] [ResultsSummaryAwareInteceptor] Action com.atlassian.bamboo.ww2.actions.chains.ArtifactUrlRedirectAction' is resultsSummaryAware but no resultSummary can be found for XXX-YYY-111
      2014-12-10 05:16:40,186 ERROR [http-bio-8085-exec-50] [ExceptionMappingInterceptor] null
      java.lang.NullPointerException
      	at com.atlassian.bamboo.ww2.actions.chains.ArtifactUrlRedirectAction.getArtifactLink(ArtifactUrlRedirectAction.java:83)
      	at com.atlassian.bamboo.ww2.actions.chains.ArtifactUrlRedirectAction.execute(ArtifactUrlRedirectAction.java:26)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      

      Applied workaround: turn off expiry of build results (so only expire build artifacts and build logs).
      I'm not aware of a workaround. But we've disabled the expiry of build results on all Bamboo servers so this won't happen for releases created in the past week. It seems for the moment, releases older than our one week expiry period cannot be used for a rollback.

      Clarification: the problem here is not deployment expiry; it is actually disabled. The problem is that while performing the rollback, the code (ArtifactUrlRedirectAction) tries to find the build result that created the artifacts in the first place (similar like clicking on one of the artifacts in the screenshot below). But this build result had been expired. So the query fails and the rollback as well. Nevertheless, the deployment artifacts are still existing on S3.

      Attachments

        1. exception.log
          49 kB
        2. Screenshot - 231214.png
          Screenshot - 231214.png
          87 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmeinhold Martin Meinhold
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: