JIRA cannot start its required plugins

Desription

Once in awhile JIRA might crash.

When JIRA crashes, it won't remove the "JIRA lock" and then it will be impossible to use it.

One of the reasons that this problem might happen is due the lack of
time that JIRA has to run its required plugins.

The log file might show:

******************************************************************************
JIRA 4.4 build: 649 started. You can now access JIRA through your web
browser.

******************************************************************************

2012-03-13 03:41:09,761 main FATAL
[atlassian.jira.startup.JiraStartupLogger]

********************************************************************************************************************************************************************************************************
The following plugins are required by JIRA, but have not been
started: Gadget Directory Plugin (com.atlassian.gadgets.directory),
Embedded Gadgets Plugin (com.atlassian.gadgets.embedded), Gadget
Dashboard Plugin (com.atlassian.gadgets.dashboard), Atlassian JIRA -
Plugins - Gadgets Plugin (com.atlassian.jira.gadgets), FishEye Plugin
(com.atlassian.jirafisheyeplugin), Opensocial Plugin
(com.atlassian.gadgets.opensocial)

********************************************************************************************************************************************************************************************************

2012-03-13 03:41:09,761 main FATAL
[atlassian.jira.upgrade.UpgradeLauncher] Skipping, JIRA is locked.
2012-03-13 03:41:09,761 main INFO
[atlassian.jira.scheduler.JiraSchedulerLauncher] JIRA Scheduler not
started: JIRA startup checklist failed.
2012-03-13 03:41:11,766 main FATAL
[jira.web.dispatcher.JiraWebworkActionDispatcher]

******************************************
JIRA startup failed, JIRA has been locked.

******************************************

Solution

  1. Stop JIRA: /opt/atlassian/jira/bin/stop-jira.sh
  2. Search for setenv.sh vi /opt/atlassian/jira/bin/setenv.sh
  3. Change JVM\_SUPPORT\_RECOMMENDED\_ARGS's value: JVM\_SUPPORT\_RECOMMENDED\_ARGS="-Datlassian.plugins.enable.wait=300"
  4. Save
  5. Start JIRA: /opt/atlassian/jira/bin/start-jira.sh

More information is available at JIRA's docs.