Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-99604

Exiting safe mode fails when Gadgets for Confluence is installed

XMLWordPrintable

      Issue Summary

      Exit safe mode and restore the previous configuration runs into issues when enabling the Gadgets for Confluence plugins. Issues seem to be related to the sequence of plugins enabled.

      Steps to Reproduce

      1. Install Gadgets for Confluence
      2. Enter safe mode
      3. Proceed to exit safe by selecting Exit safe mode and restore the previous configuration

      Expected Results

      Able to exit safe mode

      Actual Results

      Exiting safe runs into an error

      2025-04-15 11:23:27,098 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.atlassian.gadgets.oauth.serviceprovider' never resolved service '&gadgetRequestContextFactory' with filter '(&(objectClass=com.atlassian.gadgets.GadgetRequestContextFactory)(objectClass=com.atlassian.gadgets.GadgetRequestContextFactory))'
       -- url: /confluence/setup/setupdbtype.action | userName: anonymous | action: setupdbtype | referer: https://linux-98039.prod.atl-cd.net/confluence/setup/setupcluster-start.action | traceId: 00259413cb49e34f
      2025-04-15 11:23:27,099 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.atlassian.gadgets.oauth.serviceprovider' never resolved service '&gadgetSpecFactory' with filter '(&(objectClass=com.atlassian.gadgets.spec.GadgetSpecFactory)(objectClass=com.atlassian.gadgets.spec.GadgetSpecFactory))'
       -- url: /confluence/setup/setupdbtype.action | userName: anonymous | action: setupdbtype | referer: https://linux-98039.prod.atl-cd.net/confluence/setup/setupcluster-start.action | traceId: 00259413cb49e34f
      2025-04-15 11:23:27,099 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.gadgets.oauth.serviceprovider'
       -- url: /confluence/setup/setupdbtype.action | userName: anonymous | action: setupdbtype | referer: https://linux-98039.prod.atl-cd.net/confluence/setup/setupcluster-start.action | traceId: 00259413cb49e34f
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.gadgets.oauth.serviceprovider' has timed out waiting for (|(&(objectClass=com.atlassian.gadgets.GadgetRequestContextFactory)(objectClass=com.atlassian.gadgets.GadgetRequestContextFactory))(&(objectClass=com.atlassian.gadgets.spec.GadgetSpecFactory)(objectClass=com.atlassian.gadgets.spec.GadgetSpecFactory)))
              at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
              at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
              at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
              at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
              at java.base/java.util.TimerThread.run(Timer.java:516)

      Workaround

      1. Manually enable Gadgets Plugin
      2. Refresh the page
      3. Click on Exit safe mode and restore the previous configuration

        1. Screenshot 2025-04-15 at 13.23.39.png
          265 kB
          Puventhira Mannen Pragasam Selladurai

              e8288ea86ca1 Saba Taseer
              c84ad05f80fa Puventhira Mannen Pragasam Selladurai
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: