Error while running the jazz build AuthenticationException: CRJAZ0124I Invalid username or password.
Ashwath G (66●3●39●51)
| asked Apr 04 '13, 6:42 a.m.
edited Apr 05 '13, 3:20 p.m. by Joseph Pesot (6●1) Hello ,
We are running eclipse build on windows envirement, fetching files from the repository is sucessfull, but failing with error in log as
[echo] # --> This build ... runs on OS family "windows" started from "JazzBuildEngine" [teamLastModified] .Not using a proxy to reach https:<host>:9443/ccm/ [teamLastModified] com.ibm.team.repositorycommon.TeamRepositoryException: Error logging in to repository https://<host>:rd.9443/ccm/. Verify that the repository address and credentials to log in are correct. [teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:324) [teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:270) [teamLastModified] at com.ibm.team.build.ant.task.TeamLastModifiedTask.doExecute(TeamLastModifiedTask.java:145) [teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:661) [teamLastModified] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [teamLastModified] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [teamLastModified] at org.apache.tools.ant.Task.perform(Task.java:348) [teamLastModified] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [teamLastModified] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [teamLastModified] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) [teamLastModified] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [teamLastModified] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [teamLastModified] at org.apache.tools.ant.Task.perform(Task.java:348) [teamLastModified] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) [teamLastModified] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [teamLastModified] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) [teamLastModified] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [teamLastModified] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [teamLastModified] at org.apache.tools.ant.Task.perform(Task.java:348) [teamLastModified] at org.apache.tools.ant.Target.execute(Target.java:390) [teamLastModified] at org.apache.tools.ant.Target.performTasks(Target.java:411) [teamLastModified] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [teamLastModified] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [teamLastModified] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [teamLastModified] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [teamLastModified] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [teamLastModified] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:665) [teamLastModified] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513) [teamLastModified] at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600) [teamLastModified] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) [teamLastModified] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) [teamLastModified] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) [teamLastModified] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) [teamLastModified] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) [teamLastModified] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) [teamLastModified] at org.eclipse.equinox.launcher.Main.run(Main.java:1410) [teamLastModified] at org.eclipse.equinox.launcher.Main.main(Main.java:1386) [teamLastModified] Caused by: com.ibm.team.repository.transport.client.AuthenticationException: CRJAZ0124I Invalid username or password. [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil$FormAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:832) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1174) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:359) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.access$10(ClientHttpUtil.java:324) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil$JAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:757) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1174) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:359) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:315) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:219) [teamLastModified] at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:227) [teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:553) [teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:540) [teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:481) [teamLastModified] at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:194) [teamLastModified] at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43) [teamLastModified] at $Proxy0.describe(Unknown Source) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [teamLastModified] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [teamLastModified] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [teamLastModified] at java.lang.reflect.Method.invoke(Method.java:597) [teamLastModified] at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164) [teamLastModified] at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88) [teamLastModified] at $Proxy0.describe(Unknown Source) [teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1512) [teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1) [teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1286) [teamLastModified] at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79) [teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1279) [teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1505) [teamLastModified] at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:638) [teamLastModified] at com.ibm.team.build.internal.scm.RepositoryManager.login(RepositoryManager.java:275) [teamLastModified] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:322) [teamLastModified] ... 65 more
BUILD FAILED |
4 answers
Ralph Schoon (63.5k●3●36●46)
| answered Apr 04 '13, 6:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The pre build action is driven by the JBE using the repository URL and the user and password it was started with.
While running the build script itself you need to provide the repository URI, User ID and Password of the build user for build activities and communication with the CCM Server. See http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m1/topic/com.ibm.team.build.doc/topics/r_ant-tasks.html and the required parameters for the tasks. My best guess is you provide a wrong user/password. You can look into the Sample Project that comes with RTC. Look into any stream, look into the Build component into JKEBuildScripts/sample.jke.build/build.xml |
This actually looks like a problem with your Ant script, not the JBE. The Ant script looks like it has a bad user/password for the teamLastModified task. If there are other tasks that have run correctly in your script, check the user/password information for those tasks.
~Spencer
|
I have the defined the UserId and the passwordFile in my ant script. But still the same issue.
<!-- All necessary Property declaration for the Build--> <property name="passwordFilePath" location="C:\Build\pass.txt"/> <property name="buildRequesterUserId" value="abc@xx.xx.com"/> This is the task: <startBuildActivity activityIdProperty="setActivity" label="PMQ 2.0 Build Completed..." buildResultUUID="${buildResultUUID}" repositoryAddress="${repositoryAddress}" userId="${buildRequesterUserId}" passwordFile="${passwordFilePath}" /> The same script works fine when we trigger a manual build this error occurs only when we schedule a build. Comments If you schedule the build you should not use the buildRequesterUserId. For the scheduled build that will be done as the ADMIN user. Manually will be as whichever user you are. Generally for build scripts the best practice is to set up a dedicated build user and use that user for doing all the contribution tasks. ~Spencer
Sudarshan Narayanan
commented Feb 11 '14, 12:15 p.m.
yes I have a dedicated user ID called abc@xx.xxx.com. But what is the difference between the Admin User and buildRequesterUserId. What needs to be provided in the Build script.
Ralph Schoon
commented Feb 11 '14, 12:27 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You need to provide the user ID and password of the build user. The build user is a special technical resource that you create and that has a special license "Build System" which enables it to use SCM to load. In addition, the build user needs to be member of the project area with sufficient permission to access the SCM data.
The difference is you are providing userId="${buildRequesterUserId}"But that will change depending on how the build is started. It will NOT use the dedicated build user, but rather whoever started the build on the UI. This could also be the ADMIN user if the scheduler starts the build. So rather than buildRequestUserId, it should be set to your dedicated build user.
~Spencer
|
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.