Jira server throws Unable to create directory for deployment error on startup
JIRA may throw different errors due to this - the common cause is it is not operating as expected.
The following appears in the
Aug 07, 2013 2:02:36 AM org.apache.catalina.startup.HostConfig start SEVERE: Unable to create directory for deployment: /opt/atlassian/jira/conf/Catalina/localhost
The Tomcat process is not able to access the scratchDir or deployment directory, most likely due to file permissions. The scratchDir is used by Tomcat when compiling JSPs which is the technology used to render the dynamically created web pages in JIRA applications. If Tomcat cannot access that directory it can result in failures to properly operate.
Stop your JIRA application.
Fix the permissions for the below directories and all of their subdirectories:
$JIRA_HOME/ $JIRA_INSTALL/Expand for Linux instructions...
These instructions refer to the default user, group & installation paths for JIRA applications, as if it were installed using the bundled installer. If you're unsure of what these permissions should be, please consult with your System Administrator and the user who installed JIRA applications.
sudo chown -R jira:jira /var/atlassian/application-data/ sudo chown -R jira:jira /opt/atlassian/jira/
Remove the following directory:
This will be rebuilt when your JIRA application is restarted.
- Start the application