Unable to Enable Applinks Plugin Due to Invalid State
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
After restating, the Confluence Applinks plugin is disabled. Trying to re-enable it fails. Logs contain messages like:
2009-12-02 15:09:08,508 INFO [http-8081-6] [admin.actions.plugins.ManagePluginsAction] logPluginAction User 'admin' enable plugin key: com.atlassian.applinks.confluence
2009-12-02 15:09:08,524 WARN [http-8081-6] [plugin.osgi.factory.OsgiPlugin] enable Unable to enable plugin 'com.atlassian.applinks.confluence'
-- url: /confluence/admin/enableplugin.action | userName: syamanaka | referer: http://confluence.atlassiancom/confluence/admin/viewplugins.action?pluginKey=com.atlassian.applinks.confluence | action: enableplugin
com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot enable the plugin 'com.atlassian.applinks.confluence' when the bundle is not in the resolved or installed state: 32(14)
at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:371)
Cause
The plugin's state is invalid.
Resolution
Check out the database entry:
SELECT BANDANAVALUE FROM bandana WHERE BANDANAKEY = 'plugin.manager.state.Map';
Look for an entry about the applinks plugin, like this:
<entry> <string>com.atlassian.applinks.confluence</string> <boolean>false</boolean> </entry>
Delete whatever entry's there, then re-update the table:
UPDATE bandana SET BANDANAVALUE = '<insert new xml here>' WHERE BANDANAKEY = 'plugin.manager.state.Map';