How to enable system plugin?

Dmitriy Ushakov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2014

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+Pluginsnot helped -- plugin updated, but remained in the 'disable' state.
Tell me how you can enable a system plugin bypassing the web interface?

5 answers

1 accepted

3 votes
Answer accepted
jing_hwa_cheok
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2014

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".
  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
  8. Restart Your Confluence

Hope this helps!

Regards,

Jing Hwa

0 votes
Shirley Tsai
Contributor
March 24, 2020

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
0 votes
Don Willis
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 20, 2015

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}-key
    Content-Type: application/vnd.atl.plugins.plugin+json
    
    [JSON representation in BODY]
    


(Note, I haven't verified this works, but the documentation suggests it should)
0 votes
Dmitriy Ushakov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2014

Hello Ann, Jing!

Thanks for the quick reply :)

After disabling the plugin interface will not allow it to enable:
Nevertheless, the proposed solution Jing worked!
Thank you very much!
jing_hwa_cheok
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2014

I'm glad the proposed solution helped! \(^_^)/

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events