Error logging into server using scm command line tool
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.
# 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
2 answers
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:
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