com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie

Atlassian JIRA | Kah Loun Foong [Atlassian] | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3.Steps to reproduce: # Configure Stash to use Crowd SSO # Make a script to start both Stash and Crowd at the same time # Stash will get the following error in the log: {noformat} 2013-05-27 22:02:13,690 INFO [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.c.s.client.ClientPropertiesImpl Loading property: 'session.validationinterval' : '3' 2013-05-27 22:02:13,690 INFO [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.c.s.client.ClientPropertiesImpl Failed to find value for property: cookie.domain 2013-05-27 22:02:33,844 DEBUG [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.s.p.a.c.i.DefaultCrowdSsoService Could not retrieve SSO cookie configuration com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod(RestExecutor.java:455) ~[crowd-integration-client-rest-2.6.2-m4.jar:na] at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:341) ~[crowd-integration-client-rest-2.6.2-m4.jar:na] at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getCookieConfiguration(RestCrowdClient.java:1017) ~[crowd-integration-client-rest-2.6.2-m4.jar:na] at com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.fetchCookieConfiguration(DefaultCrowdSsoService.java:155) [stash-auth-crowd-sso-2.4.2_1369112172000.jar:na] at com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.getConfiguration(DefaultCrowdSsoService.java:193) [stash-auth-crowd-sso-2.4.2_1369112172000.jar:na] {noformat} # Can't login to Stash with Crowd user anymore # From the log, Crowd has been successfully started but still can't login: {noformat} 2013-05-27 22:02:49,471 INFO [scheduler_Worker-4] c.a.c.d.DbCachingRemoteDirectory FULL synchronisation complete for directory [ 819201 ] in [ 39971ms ] ... 2013-05-27 22:02:52,613 DEBUG [http-bio-7990-exec-3] 1322x6x3 88.194.145.17,88.194.145.17 "GET /mvc/error404 HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.stash.stash-auth-crowd-sso:crowdSsoAuthHandler {noformat} # Login with internal user # Re-add the Crowd directory # Can login with Crowd user now This problem does not happen if Crowd is not started. Since this problem is intermittent, it might be Crowd is partly started that cause the problem.

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie
  2. 0

    h3.Steps to reproduce: # Configure Stash to use Crowd SSO # Make a script to start both Stash and Crowd at the same time # Stash will get the following error in the log: {noformat} 2013-05-27 22:02:13,690 INFO [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.c.s.client.ClientPropertiesImpl Loading property: 'session.validationinterval' : '3' 2013-05-27 22:02:13,690 INFO [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.c.s.client.ClientPropertiesImpl Failed to find value for property: cookie.domain 2013-05-27 22:02:33,844 DEBUG [http-bio-7990-exec-1] 1322x2x2 88.194.145.17,88.194.145.17 "GET /rest/capabilities HTTP/1.1" c.a.s.p.a.c.i.DefaultCrowdSsoService Could not retrieve SSO cookie configuration com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod(RestExecutor.java:455) ~[crowd-integration-client-rest-2.6.2-m4.jar:na] at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:341) ~[crowd-integration-client-rest-2.6.2-m4.jar:na] at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getCookieConfiguration(RestCrowdClient.java:1017) ~[crowd-integration-client-rest-2.6.2-m4.jar:na] at com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.fetchCookieConfiguration(DefaultCrowdSsoService.java:155) [stash-auth-crowd-sso-2.4.2_1369112172000.jar:na] at com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.getConfiguration(DefaultCrowdSsoService.java:193) [stash-auth-crowd-sso-2.4.2_1369112172000.jar:na] {noformat} # Can't login to Stash with Crowd user anymore # From the log, Crowd has been successfully started but still can't login: {noformat} 2013-05-27 22:02:49,471 INFO [scheduler_Worker-4] c.a.c.d.DbCachingRemoteDirectory FULL synchronisation complete for directory [ 819201 ] in [ 39971ms ] ... 2013-05-27 22:02:52,613 DEBUG [http-bio-7990-exec-3] 1322x6x3 88.194.145.17,88.194.145.17 "GET /mvc/error404 HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.stash.stash-auth-crowd-sso:crowdSsoAuthHandler {noformat} # Login with internal user # Re-add the Crowd directory # Can login with Crowd user now This problem does not happen if Crowd is not started. Since this problem is intermittent, it might be Crowd is partly started that cause the problem.

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie

    Root Cause Analysis

    1. com.atlassian.crowd.exception.InvalidCrowdServiceException

      The following URL does not specify a valid Crowd User Management REST service: http://localhost:8095/rest/usermanagement/1/config/cookie

      at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod()
    2. com.atlassian.crowd
      RestCrowdClient.getCookieConfiguration
      1. com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod(RestExecutor.java:455)[crowd-integration-client-rest-2.6.2-m4.jar:na]
      2. com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:341)[crowd-integration-client-rest-2.6.2-m4.jar:na]
      3. com.atlassian.crowd.integration.rest.service.RestCrowdClient.getCookieConfiguration(RestCrowdClient.java:1017)[crowd-integration-client-rest-2.6.2-m4.jar:na]
      3 frames
    3. com.atlassian.stash
      DefaultCrowdSsoService.getConfiguration
      1. com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.fetchCookieConfiguration(DefaultCrowdSsoService.java:155)[stash-auth-crowd-sso-2.4.2_1369112172000.jar:na]
      2. com.atlassian.stash.plugin.auth.crowd.internal.DefaultCrowdSsoService.getConfiguration(DefaultCrowdSsoService.java:193)[stash-auth-crowd-sso-2.4.2_1369112172000.jar:na]
      2 frames