When I'm trying to execute Jira Rest api to uninstall the plugin, facing below given error.
Error :
{
"errorMessage": "Cannot uninstall ${atlassian.plugin.key} because it is a static app.",
"subCode": "upm.pluginUninstall.error.plugin.is.static"
}
Rest API details :
DELETE /rest/plugins/1.0/${plugin.key}-key
Is there any way to delete static plugin?
Hi,
A static plugin states that it requires a restart to function properly (https://developer.atlassian.com/server/framework/atlassian-sdk/static-plugin/) so in general, it should also be able to uninstall. Have you tried to use the admin interface and do you get the same issue then?
Can you state which plugin that you are trying to uninstall that may give people more info to resolve your issue.
@Krister Broman _Advania_ Thanks for replying.
We have restarted more than 20 times but still we face same issue.
It is a ghost plugin, we have no idea how it got installed. We want to uninstall it but it is not showing any options in UI.
This is how it is :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Huh....
That is.... interesting. So no vendor, version, modules and i dont think there actually is an app key either sort of feels like a default placeholder. If I would guess (because I have never seen this before) this is due to there being a registry post somewhere that does not have any data.
I can think of a couple of things to start searching for what this might be.
I would start by taking a backup of your system, go to the entities.xml file and search for <PluginVersion id=, you are going to see a list of installed plugins, check and see if you find a plugin without any values basically something like <PluginVersion id="" name="" key="" version="" created=""/>, if you find one that are lacking just some data, that would be suspect as well. Second place to search for the same is starting with the text "___ User Plugins ____________________________" which again could show this strange plugin. Either could give you more info to search for.
Second thing to try, go to your \JIRA\atlassian-jira\WEB-INF\lib directory, what i would search for is either a file with a strange file name, $.jar would be a big suspect, a file without any size would also be suspect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could resolve it, Thanks a lot :)
There's a corrupted plugin, we followed below-given steps to remove it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.