The scratchDir specified is unusable
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
The following appears in the atlassian-confluence.log
:
2015-02-11 18:18:17,298 ERROR [localhost-startStop-1] [org.apache.jasper.EmbeddedServletOptions] log The scratchDir you specified: C:\Program Files\Atlassian\Confluence\work\Standalone\localhost\_ is unusable.
The following appears in the catalina.out
:
Feb 11, 2015 6:15:26 PM org.apache.catalina.core.StandardContext postWorkDirectoryWARNING: Failed to create work directory [C:\Program Files\Atlassian\Confluence\work\Standalone\localhost\_] for context []
Cause
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 Confluence. If Tomcat cannot access that directory it can result in failures to properly operate.
Resolution
Stop Confluence.
Fix the permissions for the below directories and all of their subdirectories:
$CONFLUENCE_HOME/ $CONFLUENCE_INSTALL/
Remove the following directory:
$CONFLUENCE_INSTALL/work/Standalone
This will be rebuilt when Confluence is restarted.
- Start Confluence.