Dashboard gadgets fail to load in Jira server
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
Symptoms
A dashboard is not able to load a gadget.
The following appears in the atlassian-jira.log
:
2013-08-21 12:42:37,398 http-bio-80-exec-12903 WARN xxxxxx 762x311586x3 66n18c 192.168.213.19 /secure/Dashboard.jspa [gadgets.renderer.internal.GadgetSpecFactoryImpl] Error occurred while retrieving gadget spec for rest/gadgets/1.0/g/com.atlassian.jira.gadgets:text-gadget/gadgets/text-gadget.xml
[gadgets.embedded.internal.GadgetUrlBuilder] GadgetUrlBuilder: could not parse spec at rest/gadgets/1.0/g/com.atlassian.jira.gadgets:text-gadget/gadgets/text-gadget.xml
Diagnosis
The exception does not indicate an application URL which means that the issue is coming from the Jira URL itself. If a URL is present, you can refer to another KB "Error occurred while retrieving gadget spec" WARN messages referring to an invalid application URL appear in the logs when accessing Jira Dashboard.
Cause
The Atlassian Jira - Plugins - Gadgets Plugin is disabled.
Resolution
- Go to Jira Administration > Add-ons > Manage Add-ons > Change search option to System > Search for Atlassian Jira - Plugins - Gadgets Plugin
- Click on the plugin. A list of modules will show up.
- Enable the Text (text-gadget) module in the Gadgets Plugin - OR - related plugin which is missing