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

Upgrade from Bamboo 5.7.0 to Bamboo 6.4.0 fail with export/import method

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: Low Low
    • None
    • None
    • Upgrading
    • None

      Summary

      Exporting backup from Bamboo 5.7.0 and restoring it in Bamboo 6.4.0 will fail due to different config style in administration.xml

      Steps to Reproduce

      1. Export from Bamboo 5.7.0
      2. Restore it into Bamboo 6.4.0 to upgrade Bamboo

      Expected Results

      Restore/upgrade successful

      Actual Results

      The below exception is thrown in the atlassian-bamboo.log file:

      2018-03-30 21:13:46,607 ERROR [http-nio-8085-exec-15] [ImportExportManagerImpl] Exception occurred during import
      com.thoughtworks.xstream.converters.ConversionException: 
      ---- Debugging information ----
      cause-exception     : java.lang.NullPointerException
      cause-message       : null
      class               : java.util.EnumSet
      required-type       : java.util.EnumSet
      converter-type      : com.thoughtworks.xstream.converters.enums.EnumSetConverter
      path                : /AdministrationConfiguration/deploymentExpiryConfig/expiryTypes
      line number         : 21
      class[1]            : com.atlassian.bamboo.deployments.expiry.DeploymentExpiryConfig
      converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
      class[2]            : com.atlassian.bamboo.configuration.AdministrationConfigurationImpl
      version             : not available
      -------------------------------
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
      ...
      Caused by: java.lang.NullPointerException
      	at com.atlassian.bamboo.serialization.xstream.PluginsAwareMapper.realClass(PluginsAwareMapper.java:89)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
      	at com.thoughtworks.xstream.converters.enums.EnumSetConverter.unmarshal(EnumSetConverter.java:84)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      

      Notes

      Different config style for deployment expiry in administration.xml file

      Workaround

      Upgrade with the same database as shown in Bamboo Upgrade Guide

              Unassigned Unassigned
              klfoong Foong (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: