How to enable system plugin?
Asked by Dmitriy Ushakov:

Help enable accidentally shut down a system plugin "Atlassian UI Plugin".  
In the manage add-os, turned off ('disable') the system plugin "Atlassian UI Plugin" and restart the Confluence.  
After that the interface lost all the interactive features provided by the js.  
Update the plugin according to the description <https://confluence.atlassian.com/display/CONFKB/How+to+Edit+Bundled+or+System+Plugins>not helped -- plugin updated, but remained in the 'disable' state.  
Tell me how you can enable a system plugin bypassing the web interface?


Answers:
author: jing_hwa_cheok
body: Hi Dimitry,

You can enable the plugin directly from the database as well. Here's how you do it:

1. Identify the plugin key in Confluence Admin \>\> Manage Add On \>\> System. As you can see in the screenshot below, the plugin key is "com.atlassian.atlassian-failure-cache-plugin".![](../../upfiles/sample_5.png)  
2. Now shutdown your Confluence
3. Backup your Confluence Database dump in case you need to revert the changes.
4. Run the query below in your Confluence database:

   ```
   select BANDANAVALUE from BANDANA where BANDANAKEY='plugin.manager.state.Map';
   ```

5. The result should be something similar to this:  
   `<map>`  
   ` <entry>`  
   ` <string>com.atlassian.atlassian-failure-cache-plugin</string>`  
   ` <boolean>false</boolean>`  
   ` </entry>`  
   ` <entry>`  
   ` <string>confluence.extra.chart</string>`  
   ` <boolean>false</boolean>`  
   ` </entry>`  
   `</map>`  

6. Note the plugin key "com.atlassian.atlassian-failure-cache-plugin" in the result. Remove the "com.atlassian.atlassian-failure-cache-plugin" entry from the BANDANAVALUE to re-enable the plugin.

   ```
   update BANDANA set BANDANAVALUE='&lt;map&gt;  &lt;entry&gt;    &lt;string&gt;confluence.extra.chart&lt;/string&gt;    &lt;boolean&gt;false&lt;/boolean&gt;  &lt;/entry&gt;&lt;/map&gt;' where BANDANAKEY='plugin.manager.state.Map';
   ```

7. [Clear Plugin Cache](https://confluence.atlassian.com/display/CONFKB/How+to+Clear+Confluence+Plugins+Cache)
8. Restart Your Confluence

Hope this helps!

Regards,

Jing Hwa


author: Shirley Tsai
body: The following command is working for me.

```
curl -L -u ${account}:${passwd} --request PUT -d '{"enabled": true, "links": {}}' -H "Content-Type: application/vnd.atl.plugins.plugin+json" ${url}/rest/plugins/1.0/${plugin.key}-key
```


author: Don Willis
body: You can use the UPM's REST API, documented at <https://ecosystem.atlassian.net/wiki/display/UPM/UPM+REST+API>

1. Retrieve the plugin's JSON representation (with sysadmin credentials):

   ```
   GET /rest/plugins/1.0/${plugin.key}-key
   ```

2. Set the `enabled` field in the JSON representation to `true`
3. Put the updated representation on the application (with sysadmin credentials):

   ```
   PUT /rest/plugins/1.0/${plugin.key}-keyContent-Type: application/vnd.atl.plugins.plugin+json[JSON representation in BODY]
   ```

<br />

<br />

(Note, I haven't verified this works, but the documentation suggests it should)[](https://ecosystem.atlassian.net/wiki/display/UPM/UPM+REST+API)


author: Dmitriy Ushakov
body: Hello Ann, Jing!  
Thanks for the quick reply :)  

After disabling the plugin interface will not allow it to enable:  
![](../../../upfiles/2014-01-14_0001.png)  
Nevertheless, the proposed solution Jing worked!  
Thank you very much!

comments: author: jing_hwa_cheok
body: I'm glad the proposed solution helped! \\(\^_\^)/


author: AnnWorley
body: Hi Dmitriy,

What happens when you try to enable the plugin in the UI? Is the enable button greyed out?

Cheers,

Ann Worley

Support Engineer

Atlassian


Tags: confluence-administration