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

OAuth Plugin cannot be enabled on startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 5.4.3
    • 5.4.2
    • None

      On a brand new installation or upgraded instance, the plugin Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.atlassian-oauth-service-provider-plugin) fail to start with the following stacktrace:

      2014-01-28 13:13:30,705 WARN [Timer-4] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] timeout Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.oauth.atlassian-oauth-service-provider-plugin, config=osgibundle:/META-INF/spring/*.xml)]
      2014-01-28 13:13:30,708 ERROR [Timer-4] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] fail Unable to create application context for [com.atlassian.oauth.atlassian-oauth-service-provider-plugin], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.sal.api.auth.OAuthRequestVerifierFactory)] (from bean [&oAuthRequestVerifierFactory])
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.oauth.atlassian-oauth-service-provider-plugin' has timed out
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)
              at java.util.TimerThread.mainLoop(Unknown Source)
              at java.util.TimerThread.run(Unknown Source)
      2014-01-28 13:13:30,709 ERROR [Timer-4] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Never resolved service '&oAuthRequestVerifierFactory' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.sal.api.auth.OAuthRequestVerifierFactory)
      2014-01-28 13:13:30,710 ERROR [Timer-4] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin com.atlassian.oauth.serviceprovider
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.oauth.atlassian-oauth-service-provider-plugin' has timed out
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:454)
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:50)
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:105)
              at java.util.TimerThread.mainLoop(Unknown Source)
              at java.util.TimerThread.run(Unknown Source)
      

      As a consequence, OAuth authentication does not work in the application links.

      This has been reproduced with the timeout set to 5 minutes (-Datlassian.plugins.enable.wait=300)

              xtaixe Xavier Sanchez
              aconde Alejandro Conde Carrillo (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: