JIRA seemingly randomly throws 404 or 500 page error

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

Problem

JIRA throws random 404 or 500 page errors. Known symptoms

  • Accessing the base URL throws a 404 page URL

  • Accessing the Dashboard (http://<Base URL>/secure/Dashboard.jspa) throws 500 page error with the following stack trace:

1 2 3 4 5 6 7 8 9 java.lang.RuntimeException: javax.servlet.ServletException: File &quot;/decorators/general-head-pre.jsp&quot; not found java.lang.RuntimeException: javax.servlet.ServletException: File &quot;/decorators/general-head-pre.jsp&quot; not found at com.atlassian.jira.web.pagebuilder.AbstractJspDecorator.writeTemplate(AbstractJspDecorator.java:119) at com.atlassian.jira.web.pagebuilder.AbstractJspDecorator.writePreHead(AbstractJspDecorator.java:56) at com.atlassian.jira.web.pagebuilder.GeneralJspDecorator.writePreHead(GeneralJspDecorator.java:34) at com.atlassian.jira.web.pagebuilder.DefaultPageBuilder.flush(DefaultPageBuilder.java:87) at com.atlassian.jira.web.action.Dashboard.doExecute(Dashboard.java:191) ...

  • Accessing the Projects page (http://<Base URL>/secure/project/ViewProjects.jspa throws a 500 page error with the following stack trace:

1 2 3 4 5 6 7 8 java.lang.IllegalStateException: No output folder java.lang.IllegalStateException: No output folder at org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:749) at org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:198) at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:592) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:461) ...

Occasionally, the following may be thrown in the atlassian-jira.log

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2016-10-10 07:27:58,321 http-bio-8080-exec-11 ERROR anonymous 447x51186x1 9fk550 194.165.136.130,127.0.0.1 /secure/Dashboard.jspa [jira.web.filters.CommittedResponseHtmlErrorRecoveryFilter] Exception occurred after HTTP response was already committed: javax.servlet.ServletException: File &quot;/decorators/general-head-post.jsp&quot; not found java.lang.RuntimeException: javax.servlet.ServletException: File &quot;/decorators/general-head-post.jsp&quot; not found at com.atlassian.jira.web.pagebuilder.AbstractJspDecorator.writeTemplate(AbstractJspDecorator.java:119) at com.atlassian.jira.web.pagebuilder.AbstractJspDecorator.writePostHead(AbstractJspDecorator.java:71) at com.atlassian.jira.web.pagebuilder.DefaultPageBuilder.finish(DefaultPageBuilder.java:120) at com.atlassian.jira.web.filters.pagebuilder.PageBuilderFilter.renderDecoratablePage(PageBuilderFilter.java:107) at com.atlassian.jira.web.filters.pagebuilder.PageBuilderFilter.doFilter(PageBuilderFilter.java:95) <+7> (ApplicationFilterChain.java:241) (ApplicationFilterChain.java:208) (CommittedResponseHtmlErrorRecoveryFilter.java:63) (ApplicationFilterChain.java:241) (ApplicationFilterChain.java:208) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:70) at com.atlassian.jira.mobile.servlet.filter.MobileRedirectFilter.doFilter(MobileRedirectFilter.java:59) <+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70) at com.atlassian.jira.mobile.servlet.filter.DesktopSwitchFilter.doFilter(DesktopSwitchFilter.java:46) <+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70) at com.atlassian.jira.mobile.servlet.filter.MobileAuthenticationFilter.doFilter(MobileAuthenticationFilter.java:92) <+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70) at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) <+22> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:241) (ApplicationFilterChain.java:208) (SecurityFilter.java:239) (ApplicationFilterChain.java:241) (ApplicationFilterChain.java:208) (TrustedApplicationsFilter.java:100) (ApplicationFilterChain.java:241) (ApplicationFilterChain.java:208) (BaseLoginFilter.java:172) (JiraLoginFilter.java:70) (ApplicationFilterChain.java:241) (ApplicationFilterChain.java:208) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:70) (OAuthFilter.java:79) (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70) ... Caused by: javax.servlet.ServletException: File &quot;/decorators/general-head-post.jsp&quot; not found at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:412) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:392) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) ...

Diagnosis

  1. Restarting JIRA doesn't have any effect

  2. No errors in the startup logs. JIRA starts fine but once accessing these pages, they will run into JIRAs 404 or 500 page errors

  3. Verified that the general-head-pre.jsp file exists in <JIRA Installation>/atlassian-jira/decorators

  4. Verified the ownership of Installation and Home directories

  5. Verified r/w permissions of Installation and Home directories

  6. Server is low on disk space

Cause

There is insufficient disk space for JIRA to run.

Solution

Resolution

Clear some disk space on the server and then restart JIRA

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.