JIRA Fisheye/Crucible Integration Fails with HTTP error 404

お困りですか?

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

コミュニティに質問

症状

JIRA to Fisheye/Crucible integration does not work and the following appears in the atlassian-jira.log:

2012-10-09 09:30:32,965 http-8202-9 WARN u988573 570x850998x2 zpqbv5 10.71.0.233,10.71.35.230 /rest/applinks/1.0/entitylink/com.atlassian.applinks.api.application.jira.JiraProjectEntityType/DTU [jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl] Error encountered resolving Crucible projects for http://fecru.servername:8060/
java.io.IOException: Error in remote call to 'applinkname' (http://fecru.servername:8060) [AbstractRestCommand{path='rest-service/projects-v1', params={excludeAllowedReviewers=true}, methodType=GET}] : Received status code 404 (Not Found)
	at com.atlassian.jirafisheyeplugin.rest.FishEyeRestApiManagerImpl.callFisheye(FishEyeRestApiManagerImpl.java:194)
	at com.atlassian.jirafisheyeplugin.rest.FishEyeRestApiManagerImpl.callFisheye(FishEyeRestApiManagerImpl.java:123)
	at com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl.getProjectsImpl(FishEyeManagerImpl.java:394)
	at com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl.refreshCrucibleProjects(FishEyeManagerImpl.java:233)
	at com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl.refresh(FishEyeManagerImpl.java:283)
	at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshAll(RefreshManagerImpl.java:70)
	at com.atlassian.jirafisheyeplugin.config.fisheye.FishEyeInstanceManagerImpl.fetchRepositoryAndProjectLists(FishEyeInstanceManagerImpl.java:131)
	at com.atlassian.jirafisheyeplugin.config.ual.EntityLinkEventListener.onCreate(EntityLinkEventListener.java:87)  <+3> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)

または

2015-12-21 11:34:39,848 http-nio-8090-exec-15 WARN csj 694x1325x1 1rmojw6 150.73.22.77 /plugins/servlet/applinks/auth/conf/basic/7e0c8ab9-916b-3e20-9eff-4cb9b546a4f1 [c.a.j.domain.fisheye.FishEyeManagerImpl] Error encountered resolving Crucible projects for http://192.168.174.121:8060/
java.io.IOException: Error in remote call to 'fisheye' (http://192.168.174.121:8060) [AbstractRestCommand{path='rest-service/projects-v1', params={excludeAllowedReviewers=true}, methodType=GET}] : Received status code 404 (Crucible is not enabled)
	at com.atlassian.jirafisheyeplugin.rest.FishEyeRestApiManagerImpl.callFisheye(FishEyeRestApiManagerImpl.java:200)
	at com.atlassian.jirafisheyeplugin.rest.FishEyeRestApiManagerImpl.callFisheye(FishEyeRestApiManagerImpl.java:127)
	at com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl.getProjectsImpl(FishEyeManagerImpl.java:402)
	at com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl.refreshCrucibleProjects(FishEyeManagerImpl.java:215)
	at com.atlassian.jirafisheyeplugin.domain.fisheye.FishEyeManagerImpl.refresh(FishEyeManagerImpl.java:269)
	at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshRefreshables(RefreshManagerImpl.java:161)
	at com.atlassian.jirafisheyeplugin.config.RefreshManagerImpl.refreshAll(RefreshManagerImpl.java:79)
	at com.atlassian.jirafisheyeplugin.config.fisheye.FishEyeInstanceManagerImpl.fetchRepositoryAndProjectLists(FishEyeInstanceManagerImpl.java:167)
	at com.atlassian.jirafisheyeplugin.config.ual.ApplicationLinkEventListener.onAuthConfigChanged(ApplicationLinkEventListener.java:142)
	... 3 filtered
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)
	at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)
	at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)
	... 2 filtered

You may also see conditions fail to be checked (such as the "Code Committed" condition in Jira, which checks for the presence of commits in Fisheye):

2018-07-11 14:38:12,899 http-nio-8780-exec-16 ERROR admin 878x411x1 1hku5rc 0:0:0:0:0:0:0:1 /secure/AjaxIssueAction!default.jspa [c.a.j.d.workflow.condition.CodeCommittedCondition] Error encountered whilst determining is TEST-6 passes CodeCommittedCondition: null:http://localhost:4453/f453/:Error in remote call to 'fisheye' (http://localhost:4453/f453) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=TEST-6}, methodType=GET}] : Received status code 404 (FishEye is not enabled)


ソリューション

Please refer to the article Integrating JIRA with FishEye for a complete description of the steps for integrating JIRA with Fisheye.

  • The JIRA Fisheye integration requires that the Remote API calls are enabled at both JIRA and Fisheye. The default value for Remote API Calls is OFF in a Fisheye installation. This results in JIRA unable to contact Fisheye even though the application links as well as project entity links are correctly administered in JIRA. 
    (info) Please note that the later versions of Fisheye do not have this administration option and the REST API is always switched ON.
  • If an application is mentioned in the error message, ensure it's licensed. In cases where only Fisheye or Crucible is licensed, calls to the other application's rest endpoints will fail.
  • As detailed in our Linking Fisheye to Jira documentation, project links are no longer suggested in Fisheye 2.9 / JIRA 5.0 +. If using these, please remove them - especially if Crucible is not being used.
  • Check if the URL shown in the error message is accessible from the JIRA server directly. For example, in the above log case http://fecru.servername:8060/rest-service/projects-v1.
  • The authentication between JIRA and Fisheye/Crucible is not set correctly. Please reconfirm the authentication settings set in the Application Links.
  • Re-create the application links between JIRA and Fisheye/Crucible
最終更新日 2018 年 7 月 31 日

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

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