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

Unable to generate Build when scheduled - Unable to access repository Error

 When we have a schedule to get the build triggered, we get the below error.

I am able to manually trigger it and manually connect to the Jazz Server using my credentials.

Kindly find the log:
2014-02-07 18:00:11 [Jazz build engine] running on host: VOTTPMQTEST6
2014-02-07 18:00:11 [Jazz build engine] Should build occur?
2014-02-07 18:00:11 [Jazz build engine] Checking for changes incoming to workspace "IBMPMQ_2_0 WS_Ottawa" ...
2014-02-07 18:00:12 [Jazz build engine]  found changes (4)
2014-02-07 18:00:12 [Jazz build engine] Yes: Pre-build participant "com.ibm.team.build.jazzscm" would like to build.
2014-02-07 18:00:13 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2014-02-07 18:00:14 [Jazz build engine] Accepting changes into workspace "IBMPMQ_2_0 WS_Ottawa" ...
2014-02-07 18:00:19 [Jazz build engine] Deleting fetch destination "C:\Build\Build_WS_2.0" before fetching ...
2014-02-07 18:00:35 [Jazz build engine] Fetching files to fetch destination "C:\Build\Build_WS_2.0" ...
2014-02-07 18:02:46 [Jazz build engine] Invoking build participant "com.ibm.team.build.ant"
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\IBM\TeamConcertBuild\lib\tools.jar
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: C:\Build\Build_files\PMQ_Build_Script - 2.0.xml
Detected Java version: 1.6 in: C:\Program Files (x86)\IBM\TeamConcertBuild\jre
Detected OS: Windows Server 2008 R2
parsing buildfile C:\Build\Build_files\PMQ_Build_Script - 2.0.xml with URI = file:/C:/Build/Build_files/PMQ_Build_Script%20-%202.0.xml
Project base dir set to: C:\Build\Build_files
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
     [echo] Start the PMQ 2.0 Build
Build sequence for target(s) `runBuild' is [setBuildLabel, prebuild_Clean, zipSource, SetServerInstallerWS, BuildServerInstaller, BuildServerInstStage, setContentWS_Ana, setContentWS_BI, setContentWS_DB, setContentWS_ESB, setContentWS_MDM, createArtifactInstall, CopyBuildScript, BuiltOutput, clearContentDB, UnzipSAInstaller, SilentSAInstaller, runBuild]
Complete build sequence is [setBuildLabel, prebuild_Clean, zipSource, SetServerInstallerWS, BuildServerInstaller, BuildServerInstStage, setContentWS_Ana, setContentWS_BI, setContentWS_DB, setContentWS_ESB, setContentWS_MDM, createArtifactInstall, CopyBuildScript, BuiltOutput, clearContentDB, UnzipSAInstaller, SilentSAInstaller, runBuild, ]

setBuildLabel:

BUILD FAILED
C:\Build\Build_files\PMQ_Build_Script - 2.0.xml:48: com.ibm.team.repository.common.TeamRepositoryException: Error logging in to repository https://bajazz02.canlab.ibm.com:9675/ccm/.  Verify that the repository address and credentials to log in are correct.
at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:145)
at com.ibm.team.build.ant.task.BuildResultPublisherTask.updateBuildResult(BuildResultPublisherTask.java:81)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:661)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: com.ibm.team.repository.common.TeamRepositoryException: Error logging in to repository https://bajazz02.canlab.ibm.com:9675/ccm/.  Verify that the repository address and credentials to log in are correct.
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:324)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:270)
at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:137)
... 19 more
Caused by: com.ibm.team.repository.transport.client.AuthenticationException: CRJAZ0124I Invalid username or password.
at com.ibm.team.repository.transport.client.ClientHttpUtil$FormAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:870)
at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1254)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:368)
at com.ibm.team.repository.transport.client.ClientHttpUtil.access$11(ClientHttpUtil.java:331)
at com.ibm.team.repository.transport.client.ClientHttpUtil$JAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:779)
at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1254)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:368)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:321)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:219)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:228)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:553)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:540)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:481)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:194)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at com.sun.proxy.$Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88)
at com.sun.proxy.$Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1513)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1287)
at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1280)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1506)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:641)
at com.ibm.team.build.internal.scm.RepositoryManager.login(RepositoryManager.java:275)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:322)
... 21 more
--- Nested Exception ---
com.ibm.team.repository.common.TeamRepositoryException: Error logging in to repository https://bajazz02.canlab.ibm.com:9675/ccm/.  Verify that the repository address and credentials to log in are correct.
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:324)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:270)
at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:137)
at com.ibm.team.build.ant.task.BuildResultPublisherTask.updateBuildResult(BuildResultPublisherTask.java:81)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:105)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:661)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: com.ibm.team.repository.transport.client.AuthenticationException: CRJAZ0124I Invalid username or password.
at com.ibm.team.repository.transport.client.ClientHttpUtil$FormAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:870)
at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1254)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:368)
at com.ibm.team.repository.transport.client.ClientHttpUtil.access$11(ClientHttpUtil.java:331)
at com.ibm.team.repository.transport.client.ClientHttpUtil$JAuthChallengeHandler.handleChallenge(ClientHttpUtil.java:779)
at com.ibm.team.repository.transport.client.ClientHttpUtil.handleAuthenticationChallenge(ClientHttpUtil.java:1254)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:368)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:321)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:219)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:228)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:553)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:540)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:481)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:194)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at com.sun.proxy.$Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88)
at com.sun.proxy.$Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1513)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1287)
at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1280)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1506)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:641)
at com.ibm.team.build.internal.scm.RepositoryManager.login(RepositoryManager.java:275)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.initializeRepositoryManager(AbstractTeamBuildTask.java:322)
... 21 more

Total time: 6 seconds
Build failed. Exit value was 1.


0 votes



One answer

Permanent link
It looks like the build script has got the wrong credentials per the log. The below discussion has some info as
well
https://jazz.net/forum/questions/108397/error-while-running-the-jazz-build-authenticationexception-crjaz0124i-invalid-username-or-password


0 votes

Comments

I have the defined the UserId and the passwordFile in my ant script. But still the same issue.

   
    <property name="passwordFilePath" location="C:\Build\pass.txt"/>
    <property name="buildRequesterUserId" value="abc@xx.xx.com"/>

This is the task:
        <startbuildactivity activityIdProperty="setActivity" <br="">         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.

I notice that there are some further suggestions to the issue in 108397 and that should explain why schedule fails.

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

Question asked: Feb 08 '14, 2:45 a.m.

Question was seen: 5,613 times

Last updated: Feb 11 '14, 11:34 p.m.

Confirmation Cancel Confirm