Blog
In this article, we are sharing a simple workaround to uninstall Jira Service Management 10 if you're getting unexpected errors.
Christian Zendo
In this article, we are sharing a simple workaround to uninstall Jira Service Management 10.x.x if you are getting unexpected errors.
Since the release of Jira Service Management (JSM) version 10.0.0, users have encountered an unexpected issue: the uninstall button on the “Versions & Licenses” page (see <jira-url>/plugins/servlet/applications/versions-licenses) no longer functions as intended. This is frustrating for administrators who wish to remove JSM from their instances but are unable to do so through the standard process. If you’re facing this issue, you’re not alone. This problem is documented at Atlassian’s Jira, and until an official fix is released, we’ve provided a workaround to help you uninstall JSM manually. For reference, you can view the Atlassian ticket detailing the issue here: Jira Issue JRASERVER-78029.
When trying to uninstall Jira Service Management through the usual „Versions & Licenses“ page using the uninstall button, you will get this error:
„An unexpected error occurred. Refer to the logs for more information.“.
To our information this currently impacts all Jira versions starting from 10.0.0 and later. While most admins encounter this issue when trying to uninstall JSM, please note that Jira Software is also affected.
When you inspect the REST calls after a failed uninstall attempt, you’ll notice that the REST call responsible for the uninstall action receives a “403 Forbidden” status. You can view this by opening the developer tools in your browser, specifically the network tab, to observe what happens when you click the uninstall button. If you switch to the server side, you will see the reason for the 403 status. This is what my call looks like in the logs:
(…) /rest/plugins/1.0/uninstall; (…) WARN (…) /rest/plugins/1.0/uninstall [c.a.p.r.v.security.xsrf.XsrfResourceFilter] XSRF checks failed for request: https://(url)/rest/plugins/1.0/uninstall
As we can see in the logs, this error is caused by failed Cross-Site Request Forgery (XSRF) checks for the uninstall requests we sent previously by clicking the uninstall button.
To bypass the XSRF checks, you can modify the uninstall request by adding an additional header. Follow these steps to add the necessary header in your browser’s network tab:
X-Atlassian-Token: no-check
If this workaround isn’t effective or suitable for your environment, you have a couple of other options:
POST https://<your-jira-instance>/rest/plugins/1.0/uninstall
<jira-home>/installed-plugins
directory. Refer to Atlassian documentation or the Jira ticket JRASERVER-69556 for more details on locating and safely removing these files.