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

            [BAM-19798] Upgrade from Bamboo 5.7.0 to Bamboo 6.4.0 fail with export/import method

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 2651096 ] New: JAC Bug Workflow v3 [ 3384921 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Krystian Brazulewicz made changes -
            Resolution New: Answered [ 9 ]
            Status Original: Needs Triage [ 10030 ] New: Resolved [ 5 ]

            This bug has been introduced in the 5.7.1 bugfix release and affects only one of the upgrade paths.

            We advise that affected customers shall rather perform in-place upgrade which is the recommended scenario for all types of upgrades.

            Krystian Brazulewicz added a comment - This bug has been introduced in the 5.7.1 bugfix release and affects only one of the upgrade paths. We advise that affected customers shall rather perform in-place upgrade which is the recommended scenario for all types of upgrades.
            Alexey Chystoprudov made changes -
            Component/s New: Upgrading [ 11560 ]
            Foong (Inactive) made changes -
            Regular Expression New: AdministrationConfiguration/deploymentExpiryConfig/expiryTypes
            Description New: h3. 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

            h3. Steps to Reproduce
            # Export from Bamboo 5.7.0
            # Restore it into Bamboo 6.4.0 to upgrade Bamboo

            h3. Expected Results
            Restore/upgrade successful

            h3. Actual Results
            The below exception is thrown in the atlassian-bamboo.log file:
            {noformat}
            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)
            {noformat}
             
            h3. Notes
            Different config style for deployment expiry in administration.xml file

            h3.Workaround
            Upgrade with the same database as shown in [Bamboo Upgrade Guide|https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html]
            Foong (Inactive) created issue -

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

                Created:
                Updated:
                Resolved: