Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to uninstall static plugin

navya k
Contributor
September 29, 2019

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?

1 answer

1 accepted

0 votes
Answer accepted
Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2019

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. 

navya k
Contributor
September 30, 2019

@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 :

Capture.PNG

Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2019

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. 

navya k
Contributor
October 2, 2019

@Krister Broman _Advania_ 

I could resolve it, Thanks a lot :)

There's a corrupted plugin, we followed below-given steps to remove it.

  1. Stop Jira
  2. Navigate until JIRA_HOME/plugins/installed-plugins
  3. Remove the Corrupted.jar file
  4. Start Jira

Suggest an answer

Log in or Sign up to answer