It's all about the answers!

Ask a question

SCM Tools - CRJAZ1368E - proxy


Matus Ferko (2111) | asked Sep 20 '10, 10:44 a.m.
Hi,
I am trying to log in to jazz with SCM Tools with following command:

scm login -u USER -r https://URL -n  repository


and I receive the error:


Could not log in to https://.... as user USER: CRJAZ1368E The URL "https://URL/com.ibm.team.repository.common.internal.IRepositoryRemoteService" cannot be reached. The network stated the URL is invalid. The error is "java.nio.channels.UnresolvedAddressException". Verify the URL and contact your administrator.


I am behind proxy so I updated scm.ini file respectively:

-vmargs

-Dhttp.proxyHost=surf.proxy.agis.allianz
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=surf.proxy.agis.allianz
-Dhttps.proxyPort=8080


Is it right way to set up proxy?

6 answers



permanent link
Christophe Elek (2.9k13021) | answered Sep 22 '10, 4:30 p.m.
JAZZ DEVELOPER
That looks good to me, this tells the Virtual Machine to go through the proxy for each Net call
Does it work fine ?

permanent link
Yoshihisa Komai (3002422) | answered Mar 26 '13, 8:29 p.m.
Hi Matus

Below may be answer to your question.

For the Jazz SCM command line and Visual Studio client, you can configure your terminal or command window to take advantage of a forward proxy by setting one of two environment variables prior to executing the command line.  If using http, set the environment variable http_proxy to "http://<yourproxyhost>:<yourProxyPort>".   If using HTTPS, set the environment variable https_proxy to "https://<yourproxyhost>:<yourProxyPort>".
https://jazz.net/library/article/325/

permanent link
Matus Ferko (2111) | answered Sep 23 '10, 3:28 a.m.
No it doesn't work :) You can see the error in my previous post.
But I suspect that this proxy is NTLM and there is known bug https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&amp;id=53279 in Jazz that it can't connect through such proxy.

permanent link
David De Prado (11) | answered May 17 '13, 8:26 a.m.
I try to use the SCM CLI behind a non-NTLM proxy. How do I have to configure that?
I tried both ways of setting the environment variable and setting the proxy via vmargs, but nothing worked.

Thanks for your help!



permanent link
Yoshihisa Komai (3002422) | answered May 19 '13, 7:53 p.m.
Hi David,
Please run "set proxy=on" after setting the environment variable.

Comments
David De Prado commented May 22 '13, 3:58 a.m. | edited May 22 '13, 9:34 a.m.

 Hi Yoshihisa


Thanks for your help, but it didn't worked.
Have you ever used the SCM CLI through a proxy?


permanent link
Yoshihisa Komai (3002422) | answered May 22 '13, 4:03 a.m.
Hi David,
I myself never used SCM CLI through a proxy.
My colleague had done what I told here.
He told me that it worked.

Comments
David De Prado commented May 23 '13, 3:50 a.m.

 Hi Yoshihisa


Was it under Windows? I think under Windows it can't work with this environment variable...


Yoshihisa Komai commented May 23 '13, 4:07 a.m.

Yes, my colleague did it on Windows.
Also if you google "windows command proxy", you may find plenty of information.


Sridevi Sangaiah commented May 24 '13, 12:32 a.m.
JAZZ DEVELOPER

Hi David,

Setting the environment variable should work in Windows as well. Which version of SCM CLI are you using?

- Sridevi
RTC SCM CLI

Your answer


Register or 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.