Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-40914

JIRA Hangs and Throw Errors During Shutdown

    XMLWordPrintable

Details

    Description

      Steps to Replicate the Problem:

      1. Install JIRA 6.3.10
      2. Start JIRA using startup.sh
      3. Install a couple of plugins. E.g.:
        • JIRA Agile;
        • JIRA Portfolio;
        • JIRA Service Desk;
      4. Stop JIRA using shutdown.sh

      Expected Behavior

      JIRA would shutdown gracefully without showing errors, and the Tomcat process would be stopped.

      Actual Behavior

      JIRA throws errors during the shutdown process, and erratically doesn't stop the Tomcat process.

      Example of Shutdown:
      2014-11-17 16:24:04,848 localhost-startStop-2 INFO      [atlassian.jira.startup.DefaultJiraLauncher] Stopping launchers
      2014-11-17 16:24:04,871 localhost-startStop-2 INFO      [atlassian.plugin.manager.DefaultPluginManager] Shutting down the plugin system
      2014-11-17 16:24:07,217 Timer-1 WARN      [springframework.context.annotation.CommonAnnotationBeanPostProcessor] Invocation of destroy method failed on bean with name 'devtoolsWorkflowEventBridge': org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(&(objectClass=com.atlassian.event.remote.RemoteEventListenerRegistrar)(objectClass=com.atlassian.event.remote.RemoteEventListenerRegistrar))] unavailable
      2014-11-17 16:24:07,259 Timer-1 INFO      [plugins.dvcs.listener.DvcsAddUserListener] Attempting to unregister listener ...
      2014-11-17 16:24:07,260 Timer-1 INFO      [plugins.dvcs.listener.DvcsAddUserListener] Listener unregistered ...
      2014-11-17 16:24:07,266 Timer-1 INFO      [plugins.dvcs.scheduler.DvcsScheduler] DvcsScheduler job handler unregistered
      2014-11-17 16:24:08,010 Timer-1 INFO      [jira.plugins.monitor.MonitoringScheduler] Unscheduling metrics collector...
      2014-11-17 16:24:08,011 Timer-1 INFO      [jira.plugins.monitor.MonitorLauncher] Stopped JIRA monitoring
      2014-11-17 16:24:08,249 Timer-1 WARN      [beans.factory.support.DisposableBeanAdapter] Invocation of destroy method failed on bean with name 'launcher': org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(&(objectClass=com.atlassian.sal.api.scheduling.PluginScheduler)(objectClass=com.atlassian.sal.api.scheduling.PluginScheduler))] unavailable
      2014-11-17 16:24:08,436 Timer-1 INFO      [atlassian.servicedesk.lifecycle]
      
      *********************************************************************************
      JIRA ServiceDesk v2.1 #DevVersion built 2014-10-31T04:13:57.449-02:00 - stopping...
      *********************************************************************************
      
      2014-11-17 16:24:18,434 localhost-startStop-2 ERROR      [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.servicedesk, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
      2014-11-17 16:24:28,436 localhost-startStop-2 ERROR      [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.plugins.workinghours, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
      2014-11-17 16:24:38,438 localhost-startStop-2 ERROR      [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.radiantminds.roadmaps-jira, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
      2014-11-17 16:24:38,438 Timer-1 WARN      [springframework.context.annotation.CommonAnnotationBeanPostProcessor] Invocation of destroy method failed on bean with name 'serviceDeskLauncher': org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(objectClass=com.atlassian.upm.api.license.PluginLicenseEventRegistry)] unavailable
      2014-11-17 16:24:38,439 Timer-1 INFO      [atlassian.servicedesk.lifecycle]
      
      *********************************************************************************
      JIRA ServiceDesk v2.1 #DevVersion built 2014-10-31T04:13:57.449-02:00 - stopping...
      *********************************************************************************
      
      2014-11-17 16:24:48,440 localhost-startStop-2 ERROR      [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.plugins.atlassian-chaperone, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
      2014-11-17 16:24:58,442 localhost-startStop-2 ERROR      [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.pyxis.greenhopper.jira, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
      2014-11-17 16:25:08,440 Timer-1 WARN      [springframework.context.annotation.CommonAnnotationBeanPostProcessor] Invocation of destroy method failed on bean with name 'launcher': org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(objectClass=com.atlassian.upm.api.license.PluginLicenseEventRegistry)] unavailable
      2014-11-17 16:25:08,444 localhost-startStop-2 ERROR      [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.plugins.atlassian-client-resource, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs
      2014-11-17 16:25:08,461 Timer-1 INFO      [greenhopper.service.logging.LogSupport]
      
      *********************************************************************************
      Atlassian GreenHopper v6.6.13 #8178361f26f6d33d built 2014-11-05T03:53:38.428-02:00 - plugin stopping...
      *********************************************************************************
      
      2014-11-17 16:25:18,495 FelixStartLevel WARN      [pocketknife.internal.tracker.InvartiantModuleTrackerImpl] The module com.atlassian.servicedesk.collaborator.access is required by the plugin JIRA Service Desk and can't be disabled
      2014-11-17 16:25:18,495 FelixStartLevel INFO      [atlassian.plugin.manager.DefaultPluginManager] Returned module for key 'com.atlassian.servicedesk:com.atlassian.servicedesk.collaborator.access' was null. Not enabling.
      2014-11-17 16:25:18,497 FelixStartLevel WARN      [pocketknife.internal.tracker.InvartiantModuleTrackerImpl] The module com.atlassian.servicedesk.agent.access is required by the plugin JIRA Service Desk and can't be disabled
      2014-11-17 16:25:18,497 FelixStartLevel INFO      [atlassian.plugin.manager.DefaultPluginManager] Returned module for key 'com.atlassian.servicedesk:com.atlassian.servicedesk.agent.access' was null. Not enabling.
      2014-11-17 16:25:18,498 FelixStartLevel WARN      [pocketknife.internal.tracker.InvartiantModuleTrackerImpl] The module sd-abp-auth is required by the plugin JIRA Service Desk and can't be disabled
      2014-11-17 16:25:18,498 FelixStartLevel INFO      [atlassian.plugin.manager.DefaultPluginManager] Returned module for key 'com.atlassian.servicedesk:sd-abp-auth' was null. Not enabling.
      2014-11-17 16:25:18,503 FelixStartLevel WARN      [pocketknife.internal.tracker.InvartiantModuleTrackerImpl] The module external-customer-lockout-filter is required by the plugin JIRA Service Desk and can't be disabled
      2014-11-17 16:25:18,503 FelixStartLevel INFO      [atlassian.plugin.manager.DefaultPluginManager] Returned module for key 'com.atlassian.servicedesk:external-customer-lockout-filter' was null. Not enabling.
      
      Workaround (for JIRA not shutting down):

      Start and Shutdown JIRA using start-jira and stop-jira instead. If using JIRA WAR, use the following:

      ./bin/shutdown.sh 300 -force
      

      This will kill Tomcat in 300 seconds if it doesn't successfully stop before.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mfernandes@atlassian.com Matheus Fernandes
              Votes:
              47 Vote for this issue
              Watchers:
              63 Start watching this issue

              Dates

                Created:
                Updated: