-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
None
-
Affects Version/s: 7.2.7, 7.2.9
-
Component/s: Documentation - All
-
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
- Install JIRA Data Center following the steps in Installing JIRA Data Center.
- Create an application link between JIRA and a Confluence instance.
- Add a Gadget Feed from Confluence to the JIRA Data Center instance.
- Create a Confluence page and insert a JIRA Gadget.
- 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
- links to