Unable to login to server from CLI
I am trying to login to a repository from scm command line. But it is throwing an error:
Problem running 'login':
Could not log in to <server>:9443/jazz as user <user>: CRJAZ2381E Cannot connect to the
repository at URL <server>:9443/jazz make sure that the server is running and available.
CRJAZ2381E Cannot connect to the repository at URL <server>:9443/jazz make sure that
the server is running and available.
An error has occurred. Kindly check the log for more details.
I am able to login to the web client successfully.
What could be the possible issue?
Also, where to find the logs for scm cli?
Accepted answer
If you happen to have a proxy the cli needs to be configure to use it.
From https://jazz.net/library/article/325/
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>".
What OS are you on and what version of RTC?
I don't think there will be much information related to this in the logs but they can be found in the following location.
Windows ..\Users\<user>\AppData\Local\jazz-scm\logs
Linux\Unix ~/.jazz-scm/logs
the eclipse .log file can be found in
jazz-scm\scratch\0\.metadata
Note there may be multiple directories under scratch, you'll need to find the one associated with the current scm process.
So far I find the right one by trial and error or by deleting all the files in this directory and reproducing the problem again
Comments
Krzysztof Kaźmierczyk
May 27 '14, 9:32 a.m.Shuchita Tripathi
May 27 '14, 11:48 a.m.