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

Error logging into server using scm command line tool

Seeing the follow error when attempting to login in to our ccm server:
scm login -r 'https://{redacted}/ccm' -n pw -u xyz -c
Password ({redacted} @ https://{redacted}/ccm):
Problem running 'login':
Could not log in to https://{redacted}/ccm as user xyz: CRJAZ2917E The repository on the following server cannot be reached: https://{redacted}/ccm. Verify that the server address is correct.
CRJAZ2917E The repository on the following server cannot be reached: https://{redacted}/ccm. Verify that the server address is correct.
Check the log for details about the error at "/Users/{redacted}/.jazz-scm". If you have configured custom logging check your log configuration settings for the path to the log file.

This is the trace log:

 # Time - Type - Port - Description
2016/Jun/09 17:52:10.313 - START_LISTENING - 59019 - Listening on port 59019
daemonEntryDir = /Users/<>/.jazz-scm/daemons/D8be60000
daemonUuid = <>
buildId = RTC-I20150519-1214
listeningPort = 59019
2016/Jun/09 17:52:10.369 - CONNECT - 59020 - Client connected
2016/Jun/09 17:52:10.375 - REQUEST - 59020 - GET /service/com.ibm.team.filesystem.client.rest.IFilesystemRestClient/TeamRepository?repositoryUrl=https%3A%2F%2F{redacted}%2Fccm
2016/Jun/09 17:52:10.807 - JSON_REQUEST - 59020 - Request, Progress-Key: null
repositoryUrl = https://{redacted}/ccm
2016/Jun/09 17:52:10.833 - JSON_RESPONSE - 59020 - Response (200)
{
   "_eQualifiedClassName": "http:\/\/schemas.xmlsoap.org\/soap\/envelope\/:Envelope",
   "soapenv:Body": {
       "_eQualifiedClassName": "http:\/\/schemas.xmlsoap.org\/soap\/envelope\/:Body",
       "response": {
           "_eQualifiedClassName": "http:\/\/\/com\/ibm\/team\/core\/services.ecore:Response",
           "interface": "com.ibm.team.filesystem.rcp.core.internal.rest.FilesystemRestClient",
           "method": "getTeamRepository",
           "returnValue": {
               "_eQualifiedClassName": "http:\/\/\/com\/ibm\/team\/core\/services.ecore:NullDataArg",
               "type": "NULL"
           }
       }
   }
}
2016/Jun/09 17:52:10.837 - RESPONSE - 59020 - 200
2016/Jun/09 17:52:10.864 - REQUEST - 59020 - POST /service/com.ibm.team.filesystem.client.rest.IFilesystemRestClient/Login
2016/Jun/09 17:52:10.869 - JSON_REQUEST - 59020 - Request, Progress-Key: null
repositoryUrl = https://{redacted}/ccm
userId = {redacted}
password = {redacted}
smartCard = false
kerberos = false
proxyPort = -1
2016/Jun/09 17:52:11.114 - JSON_RESPONSE - 59020 - Response (500)
{
   "errorClass": "com.ibm.team.repository.common.TeamRepositoryException",
   "errorCode": 500,
   "errorMessage": "CRJAZ2917E The repository on the following server cannot be reached: https:\/\/{redacted}\/ccm. Verify that the server address is correct.",
   "errorTrace": [
       "com.ibm.team.repository.client.util.RepositoryUtil.getRepositoryId2(RepositoryUtil.java:137)",
       "com.ibm.team.repository.client.internal.TeamRepositoryService.connectToAndUpdateTeamRepository(TeamRepositoryService.java:401)",
       "com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepositoryWithOverride(TeamRepositoryService.java:180)",
       "com.ibm.team.filesystem.rcp.core.internal.rest.FilesystemRestClient.postLogin(FilesystemRestClient.java:548)",
       "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
       "sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
       "sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
       "java.lang.reflect.Method.invoke(Method.java:498)",
       "com.ibm.team.filesystem.client.daemon.JSONHandler.handle(JSONHandler.java:322)",
       "com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:628)",
       "com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:470)",
       "org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)"
   ],
   "errorTraceMarshall": [
       {
           "errorTraceClassName": "com.ibm.team.repository.client.util.RepositoryUtil",
           "errorTraceFileName": "RepositoryUtil.java",
           "errorTraceLineNumber": 137,
           "errorTraceMethodName": "getRepositoryId2"
       },
       {
           "errorTraceClassName": "com.ibm.team.repository.client.internal.TeamRepositoryService",
           "errorTraceFileName": "TeamRepositoryService.java",
           "errorTraceLineNumber": 401,
           "errorTraceMethodName": "connectToAndUpdateTeamRepository"
       },
       {
           "errorTraceClassName": "com.ibm.team.repository.client.internal.TeamRepositoryService",
           "errorTraceFileName": "TeamRepositoryService.java",
           "errorTraceLineNumber": 180,
           "errorTraceMethodName": "getTeamRepositoryWithOverride"
       },
       {
           "errorTraceClassName": "com.ibm.team.filesystem.rcp.core.internal.rest.FilesystemRestClient",
           "errorTraceFileName": "FilesystemRestClient.java",
           "errorTraceLineNumber": 548,
           "errorTraceMethodName": "postLogin"
       },
       {
           "errorTraceClassName": "sun.reflect.NativeMethodAccessorImpl",
           "errorTraceFileName": "NativeMethodAccessorImpl.java",
           "errorTraceLineNumber": -2,
           "errorTraceMethodName": "invoke0"
       },
       {
           "errorTraceClassName": "sun.reflect.NativeMethodAccessorImpl",
           "errorTraceFileName": "NativeMethodAccessorImpl.java",
           "errorTraceLineNumber": 62,
           "errorTraceMethodName": "invoke"
       },
       {
           "errorTraceClassName": "sun.reflect.DelegatingMethodAccessorImpl",
           "errorTraceFileName": "DelegatingMethodAccessorImpl.java",
           "errorTraceLineNumber": 43,
           "errorTraceMethodName": "invoke"
       },
       {
           "errorTraceClassName": "java.lang.reflect.Method",
           "errorTraceFileName": "Method.java",
           "errorTraceLineNumber": 498,
           "errorTraceMethodName": "invoke"
       },
       {
           "errorTraceClassName": "com.ibm.team.filesystem.client.daemon.JSONHandler",
           "errorTraceFileName": "JSONHandler.java",
           "errorTraceLineNumber": 322,
           "errorTraceMethodName": "handle"
       },
       {
           "errorTraceClassName": "com.ibm.team.filesystem.client.internal.http.HttpConnection",
           "errorTraceFileName": "HttpConnection.java",
           "errorTraceLineNumber": 628,
           "errorTraceMethodName": "readNextRequest"
       },
       {
           "errorTraceClassName": "com.ibm.team.filesystem.client.internal.http.HttpConnection$1",
           "errorTraceFileName": "HttpConnection.java",
           "errorTraceLineNumber": 470,
           "errorTraceMethodName": "run"
       },
       {
           "errorTraceClassName": "org.eclipse.core.internal.jobs.Worker",
           "errorTraceFileName": "Worker.java",
           "errorTraceLineNumber": 54,
           "errorTraceMethodName": "run"
       }
   ]
}
2016/Jun/09 17:52:11.114 - RESPONSE - 59020 - 500

0 votes



2 answers

Permanent link
To verify that the server is reachable can you try connecting via the browser?

0 votes

Comments

It works fine via the browser and the eclipse client.  From the trace log it looks like it's getting an initial 200 response to the first request, but a 500 response from the second request.

Are you using any proxy on your machine?

 There is a proxy on my machine, but I disabled it for this test.

 If the proxy is enabled I get a different error, after I disabled the proxy, I got this error.

If you need to use the proxy to connect to the rtc server then set the following environment variable before running scm command line:

http_proxy="http://<yourproxyhost>:<yourproxyport>" or
https_proxy="https://<yourproxyhost>:<yourproxyport>"

  Hi Shashikant-- Like I said, I've tried with and without our proxy.  We have eclipse configured to bypass the proxy for this domain, so direct access should work from the command line.  With the proxy enabled I see 404 errors, with the proxy disabled I see the 500 error.  Any other ideas?  Thanks, -Jason

showing 5 of 6 show 1 more comments

Permanent link
This appears to be mostly user error, I modified the scm script to attempt to resolve an SSL error, and that appears to have caused most of the problems.  However I had to follow the instructions here:

https://jazz.net/forum/questions/104164/command-line-tools-fail-to-run-after-upgrade-from-3015-to-401-mkroot-problem

And set the RTC_SCRIPTS_BASE and PRGPATH environment variables.  Also, the able to run the command line tools and the eclipse client at the same time I had to set SCM_ALLOW_INSECURE.

0 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
× 1,202
× 158

Question asked: Jun 09 '16, 9:04 p.m.

Question was seen: 4,878 times

Last updated: Jun 13 '16, 7:26 p.m.

Confirmation Cancel Confirm