JIRA Does Not Start Due to 'Unable to clean the cache directory'

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

After restarting JIRA, the following error appeared:

JIRA Startup Failed
You cannot access JIRA at present. Look at the table below to identify the reasons

Description
Unable to clean the cache directory: /opt/jira/plugins/.osgi-plugins/felix 

Cause

There are two known causes for this issue:

  1. The inconsistency of OSGI plugin caches triggered from inappropriate shutdown of Tomcat.
  2. The Tomcat user does not have the correct permissions to access the directory.

Resolution

  1. Stop JIRA.
  2. Remove the folder specified within the UI, for example:

    $JIRA_HOME/plugins/.osgi-plugins/felix/

    (info) This will be rebuilt upon JIRA startup.

  3. Ensure that the Tomcat user has the correct permissions, as in our Action in Jira server fails with FileNotFoundException KB article.
  4. Start JIRA.
  5. Normally this is a one-time error. If it repeats, see Jira server does not terminate after executing shutdown script.
(info) We have a bug that is being tracked for this behaviour under JRA-27438 - Getting issue details... STATUS - please vote and watch it for future updates from our developers on a permanent solution.
Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.