It's all about the answers!

Ask a question

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


Mallanagouda Patil (40713) | asked Jun 03 '16, 6:57 a.m.
edited Jun 08 '16, 10:54 a.m. by David Lafreniere (4.8k7)
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.


One answer



permanent link
Shubjit Naik (1.5k1613) | answered Jun 08 '16, 10:29 a.m.
edited Jul 14 '16, 12:19 p.m.
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.

Your answer


Register or to post your answer.