Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC - Git Integration : git-http-push fails with error code 22

Trying to setup RTC-Git Integration using Node as we are using RTC v6.0.1. Performed setup as mentioned in this article https://jazz.net/wiki/bin/view/Main/RTCGitIntegrationSetupUsingNode.

Everything is working fine until performing git-push. Push fails with error code 22. The Node server is running and listening on port # 9999.

$ git push origin master
Username for 'http://clm.ibm.com:9999': rebecca
error: Cannot access URL http://clm.ibm.com:9999/git/MyDemo.git/, return code 22

fatal: git-http-push failed
error: failed to push some refs to 'http://clm.ibm.com:9999/git/MyDemo.git'

I see these errors on Node server,
3 Jun 16:11:22 - Services ERROR basicAuth(): Error while executing request; resp
onse code 302
3 Jun 16:11:22 - Services ERROR basicAuth(): Error while executing request; resp
onse code 302
3 Jun 16:11:22 - Services VERBOSE basicAuth headers['Authorization'] == null

Any idea how to make Git to include BasicAuth headers though it prompts for user-id and password once push command is issued.


1 vote



One answer

Permanent link
Hi Mallan

We identified the error code 22 is seen when BASIC registry (CCM URL) for authentication is used in config.json with the default authentication mode in JTS/RTC. It works well when Nodejs server is configured against LDAP server.

Let me re-direct to our online documentation , Configuring Auth for Nodejs Server
Step 2c, "If your Jazz Team Server is configured to use HTTP Basic authentication, you can use the same server."

By default JTS is not configured with Basic Authentication, and we would need to change to Basic by editing the web.xml under  <jts/ccm_war_extract>\WEB-INF directory for the Authentication to work with GIT.

2 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,024
× 97

Question asked: Jun 03 '16, 6:57 a.m.

Question was seen: 5,169 times

Last updated: Jul 14 '16, 12:19 p.m.

Confirmation Cancel Confirm