Uploaded image for project: 'Jira Software Cloud'
  1. Jira Software Cloud
  2. JSWCLOUD-12792

Importing from Server to Cloud or Upgrading to JIRA 7.1.0 from Agile earlier than build 45 is causing errors

    XMLWordPrintable

Details

    Description

      Summary

      When importing from JIRA Server to Cloud, if the JIRA Server has Agile in version with build number previous to '#45', the import will finish, apparently correctly, but with failed 'Software' features and alerting errors.
      The following message is displayed in JIRA:

      JIRA Software is currently unavailable. This might be because an upgrade task has failed to run or has not yet completed.
      Please contact your system administrator if you continue to see this message.

      The main concern is that for all the user knows, this import worked, as only errors in the logs are available, which are only accessible via Support. If the user misses or ignores the banner, they may insert new data and then a new import to fix this will make them lose the progress.

      Steps to Reproduce

      1. Have a JIRA Server with Agile in version previous to build '#45'
      2. Do a full export and import in Cloud

      Expected Results

      Importer warns that the import is not possible because the minimum version required for JIRA Agile is 6.7.12 as per JIRA Agile 6.7 Upgrade Notes
      Import process doesn't start

      Actual Results

      Import process starts and fails. The site is locked.
      JIRA loads an Access Error in the UI and the logs show:

      Storing import result with error type: FAILED_VALIDATION
      

      A few other times it may also show when starting JIRA after importing:

      2015-11-10 16:14:36.636365500 2015-11-10 16:14:36,631 localhost-startStop-1 ERROR      [c.a.s.core.upgrade.PluginUpgrader] Upgrade failed: This version of JIRA Agile requires a minimum build number of #45 in order to proceed. The latest upgrade task to have been successfully completed is #37. You must uninstall this version of JIRA Agile and attempt an upgrade via an intermediary version.
      2015-11-10 16:14:36.636367500 java.lang.IllegalStateException: This version of JIRA Agile requires a minimum build number of #45 in order to proceed. The latest upgrade task to have been successfully completed is #37. You must uninstall this version of JIRA Agile and attempt an upgrade via an intermediary version.
      2015-11-10 16:14:36.636374500       at com.atlassian.greenhopper.upgrade.AbstractGhUpgradeTask.checkMinimumDataRequirement(AbstractGhUpgradeTask.java:95)
      2015-11-10 16:14:36.636375500       at com.atlassian.greenhopper.upgrade.AbstractGhUpgradeTask.doUpgrade(AbstractGhUpgradeTask.java:51)
      2015-11-10 16:14:36.636376500       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2015-11-10 16:14:36.636377500       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2015-11-10 16:14:36.636377500       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2015-11-10 16:14:36.636381500       at java.lang.reflect.Method.invoke(Method.java:497)
      2015-11-10 16:14:36.636381500       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2015-11-10 16:14:36.636382500       at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
      2015-11-10 16:14:36.636382500       at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
      2015-11-10 16:14:36.636384500       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2015-11-10 16:14:36.636385500       at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      2015-11-10 16:14:36.636386500       at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      2015-11-10 16:14:36.636393500       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2015-11-10 16:14:36.636394500       at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
      2015-11-10 16:14:36.636397500       at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
      2015-11-10 16:14:36.636397500       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2015-11-10 16:14:36.636398500       at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      2015-11-10 16:14:36.636400500       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2015-11-10 16:14:36.636400500       at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      2015-11-10 16:14:36.636401500       at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      2015-11-10 16:14:36.636403500       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2015-11-10 16:14:36.636403500       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      2015-11-10 16:14:36.636404500       at com.sun.proxy.$Proxy745.doUpgrade(Unknown Source)
      2015-11-10 16:14:36.636404500       at com.atlassian.sal.core.upgrade.PluginUpgrader.doUpgrade(PluginUpgrader.java:85)
      2015-11-10 16:14:36.636407500       at com.atlassian.sal.core.upgrade.PluginUpgrader.upgrade(PluginUpgrader.java:66)
      2015-11-10 16:14:36.636408500       at com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager$1.doInTransaction(DefaultPluginUpgradeManager.java:229)
      2015-11-10 16:14:36.636408500       at com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager$1.doInTransaction(DefaultPluginUpgradeManager.java:197)
      2015-11-10 16:14:36.636409500       at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
      2015-11-10 16:14:36.636411500       at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:38)
      2015-11-10 16:14:36.636411500       ... 2 filtered
      2015-11-10 16:14:36.636411500       at java.lang.reflect.Method.invoke(Method.java:497)
      2015-11-10 16:14:36.636412500       at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
      2015-11-10 16:14:36.636414500       at com.sun.proxy.$Proxy389.doInTransaction(Unknown Source)
      2015-11-10 16:14:36.636414500       ... 2 filtered
      2015-11-10 16:14:36.636414500       at java.lang.reflect.Method.invoke(Method.java:497)
      2015-11-10 16:14:36.636414500       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161)
      2015-11-10 16:14:36.636418500       at com.sun.proxy.$Proxy389.doInTransaction(Unknown Source)
      2015-11-10 16:14:36.636418500       at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21)
      2015-11-10 16:14:36.636418500       at com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager.upgradePlugin(DefaultPluginUpgradeManager.java:196)
      2015-11-10 16:14:36.636420500       at com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager.upgradeInternal(DefaultPluginUpgradeManager.java:171)
      2015-11-10 16:14:36.636421500       at com.atlassian.sal.jira.upgrade.JiraPluginUpgradeManager.upgradeInternal(JiraPluginUpgradeManager.java:57)
      2015-11-10 16:14:36.636421500       at com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager.upgrade(DefaultPluginUpgradeManager.java:153)
      2015-11-10 16:14:36.636423500       at com.atlassian.sal.core.upgrade.DefaultPluginUpgradeManager.onStart(DefaultPluginUpgradeManager.java:86)
      2015-11-10 16:14:36.636424500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager$4.consume(DefaultLifecycleManager.java:310)
      2015-11-10 16:14:36.636429500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.notifyLifecyleAware(DefaultLifecycleManager.java:344)
      2015-11-10 16:14:36.636432500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.notifyOnStartIfStartedAndEnabled(DefaultLifecycleManager.java:304)
      2015-11-10 16:14:36.636432500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.access$300(DefaultLifecycleManager.java:50)
      2015-11-10 16:14:36.636433500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager$3.evaluate(DefaultLifecycleManager.java:261)
      2015-11-10 16:14:36.636435500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager$3.evaluate(DefaultLifecycleManager.java:257)
      2015-11-10 16:14:36.636435500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.notifyLifecycleAwares(DefaultLifecycleManager.java:286)
      2015-11-10 16:14:36.636436500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.notifyStartableLifecycleAwares(DefaultLifecycleManager.java:255)
      2015-11-10 16:14:36.636438500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.startIfApplicationSetup(DefaultLifecycleManager.java:241)
      2015-11-10 16:14:36.636438500       at com.atlassian.sal.core.lifecycle.DefaultLifecycleManager.start(DefaultLifecycleManager.java:230)
      2015-11-10 16:14:36.636439500       at com.atlassian.sal.jira.lifecycle.JiraLifecycleManager.onJiraStart(JiraLifecycleManager.java:68)
      2015-11-10 16:14:36.636441500       ... 3 filtered
      2015-11-10 16:14:36.636442500       at java.lang.reflect.Method.invoke(Method.java:497)
      2015-11-10 16:14:36.636442500       at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
      2015-11-10 16:14:36.636442500       at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)
      2015-11-10 16:14:36.636444500       at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
      2015-11-10 16:14:36.636445500       at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)
      2015-11-10 16:14:36.636445500       at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)
      2015-11-10 16:14:36.636447500       at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)
      2015-11-10 16:14:36.636448500       at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84)
      2015-11-10 16:14:36.636448500       at com.atlassian.jira.upgrade.PluginUpgradeLauncher.start(PluginUpgradeLauncher.java:35)
      2015-11-10 16:14:36.636449500       at com.atlassian.jira.startup.ActiveServicesLauncher.start(ActiveServicesLauncher.java:57)
      2015-11-10 16:14:36.636452500       at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$289(DefaultJiraLauncher.java:140)
      2015-11-10 16:14:36.636452500       at com.atlassian.jira.startup.DefaultJiraLauncher$$Lambda$14/9244546.run(Unknown Source)
      2015-11-10 16:14:36.636453500       at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:356)
      2015-11-10 16:14:36.636455500       at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:226)
      2015-11-10 16:14:36.636456500       at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:126)
      2015-11-10 16:14:36.636456500       at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$287(DefaultJiraLauncher.java:92)
      2015-11-10 16:14:36.636458500       at com.atlassian.jira.startup.DefaultJiraLauncher$$Lambda$1/8732110.run(Unknown Source)
      2015-11-10 16:14:36.636458500       at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:34)
      2015-11-10 16:14:36.636459500       at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:90)
      2015-11-10 16:14:36.636459500       at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:84)
      2015-11-10 16:14:36.636483500       ... 8 filtered
      2015-11-10 16:14:36.636483500       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2015-11-10 16:14:36.636484500       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2015-11-10 16:14:36.636484500       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2015-11-10 16:14:36.636484500       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2015-11-10 16:14:36.636487500       at java.lang.Thread.run(Thread.java:745)
      2015-11-10 16:14:36.637327500 2015-11-10 16:14:36,637 localhost-startStop-1 INFO      [c.a.s.core.upgrade.PluginUpgrader] Plugin com.pyxis.greenhopper.jira upgrade completed. Current version is: 37
      

      Workaround

      1. See This version of jira agile requires a minimum build number and follow the resolution steps. Cloud customers must fix this in the JIRA Server source instance before attempting an import again.

      Attachments

        Issue Links

          Activity

            People

              esukmajaya@atlassian.com Eric
              jsilveira Jaime S
              Votes:
              4 Vote for this issue
              Watchers:
              36 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: