Unable to clone repository @ RTC GIT intg - returned error: 500
Hi,
I am getting error 500 when I try clone a repository: fatal: unable to access ' http://*.*.*>*/git/test.git/': The requested URL returned error: 500
GIT Log:
I tried to check the error log on the apache/git server and this is what I get:
Premature end of script headers: rtc-git-http-interceptor I went to that script and found it is activating another script named
RTC_Git_Interceptor.py
ccm.log:
<unauthenticated> <Initial Page Load@1e55933e-7d85-4182-b783-08545e5fae58> /ccm/auth/authrequired] ERROR com.ibm.team.git - GitAuthorizeService.executeAsUser(): un-anticipated exception com.ibm.team.jfs.app.oauth.OAuthInvalidOrExpiredTokenException: CRJZS0034E The OAuth token is not valid or has expired.
at com.ibm.team.jfs.app.oauth.OAuthHelper.checkResponseForOAuthErrorsInternal(OAuthHelper.java:1982)
RTC_Git_Interceptor.py
ccm.log:
<unauthenticated> <Initial Page Load@1e55933e-7d85-4182-b783-08545e5fae58> /ccm/auth/authrequired] ERROR com.ibm.team.git - GitAuthorizeService.executeAsUser(): un-anticipated exception com.ibm.team.jfs.app.oauth.OAuthInvalidOrExpiredTokenException: CRJZS0034E The OAuth token is not valid or has expired.
at com.ibm.team.jfs.app.oauth.OAuthHelper.checkResponseForOAuthErrorsInternal(OAuthHelper.java:1982)
Thanks in advance
-Kunal
Accepted answer
Below are checkpoints for verifying the integrations:
1) Verify the GIT login, just to ensure GIT login is fine
$ git remote show origin
2) Verify the GIT GIt repo configuration
c:\Apache24\gitrepo\jke.git\config
Update respective "repokey" and "repourl" information
3) Verify the GIT GIt repo configuration
c:\Apache24\gitrepo\jke.git\hooks
Update respective "pre-receive" and "post-receive" hooks information
4) The server-side hooks interact with the Rational Team Concert server by invoking its services and its not authorizing access to it, as per the ccm.log .
Authorizing Git requests will help you to fix.
You can authorize yourself to send Git requests or a JazzAdmin can authorize all users.
https://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.0/com.ibm.team.connector.cq.doc/topics/t_git_auth_req.html
Please let me know does the above solution helped.
Regards,
Arun.