Troubleshoot RTC 5.0.2 GIT Integration
I have configured the GIT integration with RTC. I have also configured a pre-condition to not allow commits without workitem number.
I have provided the following command on my commit:
git commit -am 'Fix other issues workitem 7'
git commit -am 'Fix other issues defect 7'
If I do a 'git log' I see the commit comments.
However, in the ccm.log I see errors:
GitWorkItemLinkRestService.invokeGitWorkItemLinkService(): No work item specified, ignoring the call to associate work item with git commit
RequireWorkItemHintInCommentValidator.run(): No WI hint mentioned in commit comment %B
Any ideas where to look for this?
I have provided the following command on my commit:
git commit -am 'Fix other issues workitem 7'
git commit -am 'Fix other issues defect 7'
If I do a 'git log' I see the commit comments.
However, in the ccm.log I see errors:
GitWorkItemLinkRestService.invokeGitWorkItemLinkService(): No work item specified, ignoring the call to associate work item with git commit
RequireWorkItemHintInCommentValidator.run(): No WI hint mentioned in commit comment %B
Any ideas where to look for this?
Accepted answer
The HTTP interceptor as well as pre-receive hook is trying to invoke services running on RTC server. To invoke these, you must authorize in RTC Web UI, to honour these incoming requests from Git. (See more details in this article: https://jazz.net/library/article/1423).
So, by commenting out the HTTP interceptor, and using the git-http-backend, you are only removing one invocation (in the http interceptor), and hence it goes through, but fails at next step (in pre-receive).
Comments
Benjill Cubas
Feb 12 '15, 7:07 a.m.I'm getting the same issue. I hope someone has the solution.
Kiran M N
JAZZ DEVELOPER Feb 12 '15, 7:08 a.m.Check the git version installed on the server. Make sure it is >= 1.7.9.
Robert Carter
Feb 11 '15, 11:14 a.m.I upgraded Git to 1.7.12.4. I noticed that when I tried to do my push commands I am getting 403 errors, which I didn't before. I came across this article that seems to indicate something change with the git client, Git No Longer Prompting for Passwords.
I have been trying to follow this setup guide, RTC GIT Setup Guide But now with the 1.7.12.4 git client this Apache configuration maybe outdated?
Robert Carter
Feb 13 '15, 11:04 a.m.Maps the URL path "/git/" to the git-http-backend script
ScriptAlias /git/ /var/www/githooks/rtc-git-http-interceptor/
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
When the Apache config file has the line with git-http-backend and I do a push the pre-receive hooks runs. It fails with user not authorized. But I think this is expected. Since the pre-hook is expecting some info.
However, when I change the script to use rtc-git-http-interceptor line and I do a push the pre-receive hook is never called and the server reports a 403 error.