Bamboo cannot authenticate with JIRA or Crowd (as a user repository)

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Bamboo cannot authenticate using JIRA as a user repository and throws this error:

2012-12-05 14:02:46,348 INFO [main] [UpgradeLauncher] Initialisation completed.
2012-12-05 14:02:46,864 ERROR [main] [DefaultUserAccessor] Error in getUser():com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://gojira/crowd/rest/usermanagement/1/search?entity-type=group&start-index=0&max-results=-1
com.atlassian.user.EntityException: com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://gojira/crowd/rest/usermanagement/1/search?entity-type=group&start-index=0&max-results=-1
	at com.atlassian.crowd.integration.atlassianuser.UserGroupCache.fetchAndSetSnapshot(UserGroupCache.java:107)
	at com.atlassian.crowd.integration.atlassianuser.UserGroupCache.get(UserGroupCache.java:143)
	at com.atlassian.crowd.integration.atlassianuser.CrowdUserManager.getUser(CrowdUserManager.java:26)
	at com.atlassian.user.impl.delegation.DelegatingListUserManager.getUser(DelegatingListUserManager.java:71)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.atlassian.crowd.integration.atlassianuser.DynamicDelegationAccessor$DelegatingInvocationHandler.invoke(DynamicDelegationAccessor.java:115)

...

Caused by: com.atlassian.crowd.exception.InvalidCrowdServiceException: The following URL does not specify a valid Crowd User Management REST service: http://gojira/crowd/rest/usermanagement/1/search?entity-type=group&start-index=0&max-results=-1
	at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.executeCrowdServiceMethod(RestExecutor.java:418)
	at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:304)
	at com.atlassian.crowd.integration.rest.service.RestCrowdClient.searchGroupNames(RestCrowdClient.java:545)
	at com.atlassian.crowd.integration.atlassianuser.UserGroupFetcher.fetch(UserGroupFetcher.java:38)
	at com.atlassian.crowd.integration.atlassianuser.UserGroupCache.fetchAndSetSnapshot(UserGroupCache.java:87)
	... 41 more

原因

  • JIRA or Crowd is unreachable at the configured URL (may also be caused by temporary unavailability of Crowd or Jira).
  • The URL that is used for JIRA or Crowd server is wrong. 

ソリューション


Make sure to use a correct URL while configuring Bamboo to switch to using JIRA or Crowd as a user repository. An example that that cause to the above mentioned error is using 'crowd' context path in the JIRA (or Crowd) URL in the BAMBOO_HOME/xml-data/configuration/crowd.properties file:

..
application.login.url                   http://_jira_hostname_:8080/crowd/console/
crowd.server.url                        http://_jira_hostname_:8080/crowd/services/
...

If there is no 'crowd' context path configured for the JIRA server that Bamboo tries to connect, then the URLs should look like this:

..
application.login.url                   http://_jira_hostname_:8080/console/
crowd.server.url                        http://_jira_hostname_:8080/services/
...



最終更新日 2019 年 8 月 20 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.