It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to enable system plugin?

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

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
AnnWorley Atlassian Team Jan 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

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!

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

0 votes
Don Willis Atlassian Team Jan 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)

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

4,120 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you