JIRA shared home 'caches' folder is not checked on startup

XMLWordPrintable

    • 7.02
    • 1
    • Severity 2 - Major

      Summary

      Per Installing JIRA Data Center, the following directories need to be in the JIRA shared home and are checked on startup:

      data
      plugins
      logos
      import
      export

      However, the folder 'caches' is also a required folder for JIRA External Gadgets.

      For example, if the 'caches' folder is missing from the JIRA Shared Home, attempting to view and/or insert a JIRA gadget into Confluence will result in an error: "com.atlassian.sal.api.net.ResponseException: Can not retrieve jira chart image"

      Environment

      • JIRA Data Center

      Steps to Reproduce

      1. Install JIRA Data Center following the steps in Installing JIRA Data Center.
      2. Create an application link between JIRA and a Confluence instance.
      3. Add a Gadget Feed from Confluence to the JIRA Data Center instance.
      4. Create a Confluence page and insert a JIRA Gadget.
      5. Insert the desired configuration and click Preview.

      Expected Results

      The chart will display in the Preview window.

      Actual Results

      The below exception is thrown in the UI:

      com.atlassian.sal.api.net.ResponseException: Can not retrieve jira chart image
      

      The below exception is thrown in the atlassian-jira.log file:

      /rest/gadget/1.0/createdVsResolved/generate [
      c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Error generating chart
      java.lang.RuntimeException: Error generating chart
              at com.atlassian.jira.charts.CreatedVsResolvedChart.generateChartInternal(CreatedVsResolvedChart.java:232)
              at com.atlassian.jira.charts.CreatedVsResolvedChart.generateChart(CreatedVsResolvedChart.java:101)
              at com.atlassian.jira.charts.DefaultChartFactory.generateCreatedVsResolvedChart(DefaultChartFactory.java:61)
              at sun.reflect.GeneratedMethodAccessor5978.invoke(Unknown Source)
      ...
      Caused by: java.io.IOException: No such file or directory
              at java.io.UnixFileSystem.createFileExclusively(Native Method)
              at java.io.File.createTempFile(File.java:2024)
              at com.atlassian.jira.charts.jfreechart.ChartHelper.getChartTempFile(ChartHelper.java:205)
              at com.atlassian.jira.charts.jfreechart.ChartHelper.createChartImage(ChartHelper.java:119)
              at com.atlassian.jira.charts.jfreechart.ChartHelper.generate(ChartHelper.java:108)
              ... 265 more
      

      Workaround

      Create a folder called 'caches' in the JIRA Shared Home directory. Ensure that directory can be read and written by other potential nodes

              Assignee:
              Wazza
              Reporter:
              J van Leeuwen
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: