It's all about the answers!

Ask a question

Build agent service log error during build?


Arumugaraj swamynathan (13111) | asked Jul 18 '17, 7:13 a.m.
edited Sep 05 '18, 8:12 a.m.

 Hi all,

      Iam using IBM i Dependency build definition -rational build agent and i'm trying to request a build but fails with the error log on "Build agent service log".The following error message as 
Found a user request for build definition IBM i team build 3
Substituted the following build property variables:
Substituted the following configuration element property variables:
Should build occur?
Yes: Always build a user initiated request.
AUTH set user account to "Aru"
SET "BF_AGENT_VERSION"="8.0.0.4-0-21"
SET "BF_AGENT_PLATFORM"="os400 1 7"
SET "buildRequesterUserId"="ibmbuild"
SET "com.ibm.team.build.internal.template.id"="com.ibm.teami.build.ant"
SET "buildEngineHostName"="**"
SET "com.ibm.teami.build.ant.icmd.failOnError.level"="40"
SET "com.ibm.team.build.internal.engine.monitoring.threshold"="3"
SET "buildDefinitionId"="IBM i team build 3"
SET "requestUUID"="_TtksMGupEeebxd7VSSXeNw"
SET "com.ibm.teami.build.ant.icmd.failOnError"="true"
SET "buildResultUUID"="_TtlTQGupEeebxd7VSSXeNw"
SET "com.ibm.teami.build.ant.generated.loadDirectory"="/tmp/rtcp/load/IBM i team build 3"
SET "team.scm.fetchChangesOnly"="true"
SET "team.scm.buildOnlyIfChanges"="true"
SET "com.ibm.teami.build.ant.failOnError.level"="00"
SET "team.scm.componentLoadRules"=""
SET "repositoryAddress"="***"
SET "team.scm.clearDestinationBeforeFetch"="false"
SET "com.ibm.team.build.internal.engine.template.id"="com.ibm.rational.buildforge.buildagent.engine"
SET "buildEngineId"="Build agent engine"
SET "com.ibm.rational.buildforge.buildagent.singletonPropertiesSet"="true"
SET "team.scm.deleteDestinationBeforeFetch"="false"
SET "team.scm.workspaceUUID"="_xyY0oGruEeebxd7VSSXeNw"
SET "team.scm.fetchDestination"=""
SET "team.scm.acceptBeforeFetch"="false"
SET "teami.scm.snapshotUUID"=""
SET "com.ibm.teami.build.ant.generated"="true"
SET "engineUUID"="_GVx60GrcEeeCdtYnfdW53Q"
SET "buildLabel"="20170718-1637510947"
SET "com.ibm.teami.build.ant.failOnError"="true"
EXEC Locale set to '"en_US"'
PTY allocated pseudo-tty PtyPipe
ENV BF_AGENT_PLATFORM=os400 1 7
ENV BF_AGENT_VERSION=8.0.0.4-0-21
ENV CLASSPATH=.:/QOpenSys/QIBM/ProdData/Node/bin
ENV HOME=/home/
ENV HOSTID=**
ENV HOSTNAME=***
ENV HOSTTYPE=powerpc
ENV LANG=en_US.UTF-8
ENV LC__FASTMSG=true
ENV LOCPATH=/usr/lib/nls/loc
ENV LOGNAME=*
ENV MACHTYPE=powerpc-ibm-os400
ENV NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/en_US/%N.cat
ENV OSTYPE=os400
ENV PASE_LANG=en_US
ENV PASE_LC__FASTMSG=true
ENV PASE_LOCPATH=/usr/lib/nls/loc
ENV PASE_NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/en_US/%N.cat
ENV PASE_PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
ENV PASE_TZ=<IST>-5:30
ENV PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
ENV QIBM_DESCRIPTOR_STDERR=CRLN=N
ENV QIBM_DESCRIPTOR_STDIN=CRLN=Y
ENV QIBM_DESCRIPTOR_STDOUT=CRLN=N
ENV QIBM_IFS_OPEN_MAX=66000
ENV QIBM_LWI_TRACE=ALL
ENV QIBM_MULTI_THREADED=Y
ENV QIBM_PASE_CCSID=819
ENV QIBM_USE_DESCRIPTOR_STDIO=I
ENV SHLVL=1
ENV TERMINAL_TYPE=5250
ENV TRACEOPT=UNLINK
ENV TZ=<IST>-5:30
ENV buildDefinitionId=IBM i team build 3
ENV buildEngineHostName=***
ENV buildEngineId=Build agent engine
ENV buildLabel=20170718-1637510947
ENV buildRequesterUserId=ibmbuild
ENV buildResultUUID=_TtlTQGupEeebxd7VSSXeNw
ENV com.ibm.rational.buildforge.buildagent.singletonPropertiesSet=true
ENV com.ibm.team.build.internal.engine.monitoring.threshold=3
ENV com.ibm.team.build.internal.engine.template.id=com.ibm.rational.buildforge.buildagent.engine
ENV com.ibm.team.build.internal.template.id=com.ibm.teami.build.ant
ENV com.ibm.teami.build.ant.failOnError.level=00
ENV com.ibm.teami.build.ant.failOnError=true
ENV com.ibm.teami.build.ant.generated.loadDirectory=/tmp/rtcp/load/IBM i team build 3
ENV com.ibm.teami.build.ant.generated=true
ENV com.ibm.teami.build.ant.icmd.failOnError.level=40
ENV com.ibm.teami.build.ant.icmd.failOnError=true
ENV engineUUID=_GVx60GrcEeeCdtYnfdW53Q
ENV repositoryAddress=https://rtc:9944
ENV requestUUID=_TtksMGupEeebxd7VSSXeNw
ENV team.scm.acceptBeforeFetch=false
ENV team.scm.buildOnlyIfChanges=true
ENV team.scm.clearDestinationBeforeFetch=false
ENV team.scm.componentLoadRules=
ENV team.scm.deleteDestinationBeforeFetch=false
ENV team.scm.fetchChangesOnly=true
ENV team.scm.fetchDestination=
ENV team.scm.workspaceUUID=_xyY0oGruEeebxd7VSSXeNw
ENV teami.scm.snapshotUUID=
EXEC ExecPreparse
SET Reference to undefined variable: "JAVA_HOME"
SET Reference to undefined variable: "ANT_HOME"
SET Reference to undefined variable: "BLD_TOOLKIT"
SET Reference to undefined variable: "BLD_TOOLKIT"
EXEC spawning shell "/bin/sh"
SCRIPT JAVA_HOME/bin/java  -classpath ANT_HOME/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -f BLD_TOOLKIT/rtcp_ibmiprebuild.xml -lib BLD_TOOLKIT "-DbuildRequesterUserId=ibmbuild" "-Dcom.ibm.team.build.internal.template.id=com.ibm.teami.build.ant" "-DbuildEngineHostName=172.16.111.53" "-Dcom.ibm.teami.build.ant.icmd.failOnError.level=40" "-Dcom.ibm.team.build.internal.engine.monitoring.threshold=3" "-DbuildDefinitionId=IBM i team build 3" "-DrequestUUID=_TtksMGupEeebxd7VSSXeNw" "-Dcom.ibm.teami.build.ant.icmd.failOnError=true" "-DbuildResultUUID=_TtlTQGupEeebxd7VSSXeNw" "-Dcom.ibm.teami.build.ant.generated.loadDirectory=/tmp/rtcp/load/IBM i team build 3" "-Dteam.scm.fetchChangesOnly=true" "-Dteam.scm.buildOnlyIfChanges=true" "-Dcom.ibm.teami.build.ant.failOnError.level=00" "-Dteam.scm.componentLoadRules=" "-DrepositoryAddress=https://rtc:9443/ccm" "-Dteam.scm.clearDestinationBeforeFetch=false" "-Dcom.ibm.team.build.internal.engine.template.id=com.ibm.rational.buildforge.buildagent.engine" "-DbuildEngineId=Build agent engine" "-Dteam.scm.deleteDestinationBeforeFetch=false" "-Dteam.scm.workspaceUUID=_xyY0oGruEeebxd7VSSXeNw" "-Dteam.scm.fetchDestination=" "-Dteam.scm.acceptBeforeFetch=false" "-Dteami.scm.snapshotUUID=" "-Dcom.ibm.teami.build.ant.generated=true" "-DengineUUID=_GVx60GrcEeeCdtYnfdW53Q" "-DbuildLabel=20170718-1637510947" "-Dcom.ibm.teami.build.ant.failOnError=true"
EXEC start "/"@"POC0"
* /bin/sh[3]: JAVA_HOME/bin/java:  not found.
EXEC end "/"@"POC0"
RESULT 127
EOR
 help me to resolve this error..Thanks in advance

2 answers



permanent link
Kevin Ramer (4.5k9186201) | answered Jul 18 '17, 8:30 a.m.

JAVA_HOME ?

EXEC ExecPreparse
SET Reference to undefined variable: "JAVA_HOME"
SET Reference to undefined variable: "ANT_HOME"
SET Reference to undefined variable: "BLD_TOOLKIT"
SET Reference to undefined variable: "BLD_TOOLKIT"
...

* /bin/sh[3]: JAVA_HOME/bin/java:  not found.

This seems that the run-time environment is not properly configured.


Comments
Arumugaraj swamynathan commented Jul 19 '17, 1:12 a.m.

 I have set the JAVA_HOME path in the environmental variable. Now the error on setting JAVA path is resolved. Still facing the build issue.





Donald Nong commented Jul 19 '17, 9:03 p.m.

New error messages? You cannot expect others to provide a solution without providing any details of your issue.


permanent link
Arumugaraj swamynathan (13111) | answered Jul 19 '17, 11:45 p.m.

 Found a user request for build definition IBM i team build 4

Substituted the following build property variables:
Substituted the following configuration element property variables:
Should build occur?
Yes: Always build a user initiated request.
Accepting changes into workspace "IBM i stream Workspace2"...
Either full build or no snapshot to compare: no need to compute impacts
Change set analysis will not be performed.
About to perform full dependency analysis
Following build toolkit capabilities are required for performing this build: Translator output renaming
AUTH set user account to "A192729"
SET "BF_AGENT_VERSION"="8.0.0.4-0-21"
SET "BF_AGENT_PLATFORM"="os400 1 7"
SET "team.enterprise.buildDefinitionUUID"="uyToUGxuEeePAeD6qvNXJw"
SET "team.enterprise.build.ant.skipFileAgent"="false"
SET "team.enterprise.build.ant.createAllDependencySets"="false"
SET "team.enterprise.build.dependency.realToDeleteOutputs"="false"
SET "buildDefinitionId"="IBM i team build 4"
SET "team.enterprise.build.ant.mandatorySubset.useInPersonal"="false"
SET "requestUUID"="_fJf6cGz9Eeebxd7VSSXeNw"
SET "team.enterprise.scm.createFoldersForComponents"="false"
SET "team.enterprise.build.suppressBuildMapLinks"="true"
SET "com.ibm.team.enterprise.ibmi.build.searchPath"=""
SET "team.enterprise.scm.resourcePrefix"="AROD"
SET "team.enterprise.build.ant.conditionalBuild"=""
SET "team.enterprise.dependencyBaselineLastModified"="Thu
SET "team.enterprise.build.toolkit.capabilitiesRequired"="1"
SET "JAZZ_USER"="ibmbuild"
SET "team.enterprise.build.ant.fetchWorkspaceBeforeBuild"="false"
SET "team.enterprise.build.ant.simulationModeBinaryCheck"="false"
SET "team.enterprise.scm.acceptBeforeFetch"="true"
SET "team.enterprise.scm.resourceTeamPrefix"=""
SET "com.ibm.team.enterprise.ibmi.build.referencedLibraries"="false"
SET "com.ibm.team.build.internal.engine.template.id"="com.ibm.rational.buildforge.buildagent.engine"
SET "team.enterprise.buildDefinitionStateUUID"="_DE03kWx1Eeebxd7VSSXeNw"
SET "buildEngineId"="IBM i team engine"
SET "team.enterprise.build.impacts.disableAlwaysBuildQueries"="false"
SET "team.enterprise.scm.buildOnlyIfChanges"="true"
SET "teamz.scm.workspaceUUID"="_jC_zcGxsEeebxd7VSSXeNw"
SET "com.ibm.team.enterprise.ibmi.build.ant.icmd.failOnError.level"="40"
SET "team.enterprise.build.impacts.disableInputQueries"="false"
SET "com.ibm.team.enterprise.ibmi.build.ant.failOnError"="true"
SET "team.enterprise.build.dependency.preprocessUpdateF"="10"
SET "buildLabel"="20170720-0912510663"
SET "team.enterprise.build.ant.useGeneratedBuildFile"="true"
SET "com.ibm.team.enterprise.ibmi.build.AppendLoadObjLibraries"="true"
SET "team.enterprise.scm.snapshotId"="IBM i team build 4_20170720-0912510663"
SET "buildRequesterUserId"="ibmbuild"
SET "com.ibm.team.build.internal.template.id"="com.ibm.team.enterprise.ibmi.build.dependency.template"
SET "team.enterprise.build.dependency.trustOutputs"="true"
SET "buildEngineHostName"="172.16.111.53"
SET "team.enterprise.scm.loadComponents"=""
SET "com.ibm.team.enterprise.ibmi.build.ant.icmd.failOnError"="true"
SET "team.enterprise.scm.includeComponents"="false"
SET "com.ibm.team.build.internal.engine.monitoring.threshold"="0"
SET "team.enterprise.build.ant.fullMinimumLoad"=""
SET "team.enterprise.scm.fetchDestination"="/home/arumugaraj/raja"
SET "buildResultUUID"="_fLA9YGz9Eeebxd7VSSXeNw"
SET "BLD_TOOLKIT"="com.ibm.team.enterprise.build.ant.jar"
SET "team.enterprise.scm.deleteDestinationBeforeFetch"="true"
SET "com.ibm.team.enterprise.ibmi.build.ant.failOnError.level"="40"
SET "team.enterprise.build.ant.antArgs"="-verbose"
SET "team.enterprise.build.var.MYVAR"="myBDvalue"
SET "com.ibm.rational.buildforge.buildagent.singletonPropertiesSet"="true"
SET "team.enterprise.scm.workspaceUUID"="_jC_zcGxsEeebxd7VSSXeNw"
SET "team.enterprise.build.dependency.ProcessCount"="0"
SET "team.enterprise.build.impacts.disableParserOutputQueries"="false"
SET "team.enterprise.scm.componentLoadRules"=""
SET "team.enterprise.build.ant.fetchAll"="false"
SET "team.enterprise.build.ant.buildableSubset"=""
SET "team.enterprise.build.dependency.previewBuild"="false"
SET "team.enterprise.build.ant.buildChangesOnly"="true"
SET "engineUUID"="_LAFNAGxsEeePAeD6qvNXJw"
SET "team.enterprise.build.ant.buildableSubsetSlug"=""
SET "team.enterprise.scm.teamWorkspaceUUID"=""
SET "team.enterprise.build.ant.mandatorySubset"=""
EXEC Locale set to '"en_US"'
PTY allocated pseudo-tty PtyPipe
ENV BF_AGENT_PLATFORM=os400 1 7
ENV BF_AGENT_VERSION=8.0.0.4-0-21
ENV BLD_TOOLKIT=com.ibm.team.enterprise.build.ant_.jar
ENV CLASSPATH=.:/QOpenSys/QIBM/ProdData/Node/bin
ENV HOME=/home/A192729
ENV HOSTID=172.16.111.53
ENV HOSTNAME=POC01.India.TCS.com
ENV HOSTTYPE=powerpc
ENV JAZZ_USER=ibmbuild
ENV LANG=en_US.UTF-8
ENV LCFASTMSG=true
ENV LOCPATH=/usr/lib/nls/loc
ENV LOGNAME=A192729
ENV MACHTYPE=powerpc-ibm-os400
ENV NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/en_US/%N.cat
ENV OSTYPE=os400
ENV PASE_LANG=en_US
ENV PASE_LCFASTMSG=true
ENV PASE_LOCPATH=/usr/lib/nls/loc
ENV PASE_NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/en_US/%N:/usr/lib/nls/msg/en_US/%N.cat
ENV PASE_PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
ENV PASE_TZ=<IST>-5:30
ENV PATH=/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
ENV QIBM_DESCRIPTOR_STDERR=CRLN=N
ENV QIBM_DESCRIPTOR_STDIN=CRLN=Y
ENV QIBM_DESCRIPTOR_STDOUT=CRLN=N
ENV QIBM_IFS_OPEN_MAX=66000
ENV QIBM_LWI_TRACE=ALL
ENV QIBM_MULTI_THREADED=Y
ENV QIBM_PASE_CCSID=819
ENV QIBM_USE_DESCRIPTOR_STDIO=I
ENV SHLVL=1
ENV TERMINAL_TYPE=5250
ENV TRACEOPT=UNLINK
ENV TZ=<IST>-5:30
ENV buildDefinitionId=IBM i team build 4
ENV buildEngineHostName=172.16.111.53
ENV buildEngineId=IBM i team engine
ENV buildLabel=20170720-0912510663
ENV buildRequesterUserId=ibmbuild
ENV buildResultUUID=fLA9YGz9Eeebxd7VSSXeNw
ENV com.ibm.rational.buildforge.buildagent.singletonPropertiesSet=true
ENV com.ibm.team.build.internal.engine.monitoring.threshold=0
ENV com.ibm.team.build.internal.engine.template.id=com.ibm.rational.buildforge.buildagent.engine
ENV com.ibm.team.build.internal.template.id=com.ibm.team.enterprise.ibmi.build.dependency.template
ENV com.ibm.team.enterprise.ibmi.build.AppendLoadObjLibraries=true
ENV com.ibm.team.enterprise.ibmi.build.ant.failOnError.level=40
ENV com.ibm.team.enterprise.ibmi.build.ant.failOnError=true
ENV com.ibm.team.enterprise.ibmi.build.ant.icmd.failOnError.level=40
ENV com.ibm.team.enterprise.ibmi.build.ant.icmd.failOnError=true
ENV com.ibm.team.enterprise.ibmi.build.referencedLibraries=false
ENV com.ibm.team.enterprise.ibmi.build.searchPath=
ENV engineUUID=_LAFNAGxsEeePAeD6qvNXJw
ENV requestUUID=_fJf6cGz9Eeebxd7VSSXeNw
ENV team.enterprise.build.ant.antArgs=-verbose
ENV team.enterprise.build.ant.buildChangesOnly=true
ENV team.enterprise.build.ant.buildableSubset=
ENV team.enterprise.build.ant.buildableSubsetSlug=
ENV team.enterprise.build.ant.conditionalBuild=
ENV team.enterprise.build.ant.createAllDependencySets=false
ENV team.enterprise.build.ant.fetchAll=false
ENV team.enterprise.build.ant.fetchWorkspaceBeforeBuild=false
ENV team.enterprise.build.ant.fullMinimumLoad=
ENV team.enterprise.build.ant.mandatorySubset.useInPersonal=false
ENV team.enterprise.build.ant.mandatorySubset=
ENV team.enterprise.build.ant.simulationModeBinaryCheck=false
ENV team.enterprise.build.ant.skipFileAgent=false
ENV team.enterprise.build.ant.useGeneratedBuildFile=true
ENV team.enterprise.build.dependency.ProcessCount=0
ENV team.enterprise.build.dependency.preprocessUpdateF=10
ENV team.enterprise.build.dependency.previewBuild=false
ENV team.enterprise.build.dependency.realToDeleteOutputs=false
ENV team.enterprise.build.dependency.trustOutputs=true
ENV team.enterprise.build.impacts.disableAlwaysBuildQueries=false
ENV team.enterprise.build.impacts.disableInputQueries=false
ENV team.enterprise.build.impacts.disableParserOutputQueries=false
ENV team.enterprise.build.suppressBuildMapLinks=true
ENV team.enterprise.build.toolkit.capabilitiesRequired=1
ENV team.enterprise.build.var.MYVAR=myBDvalue
ENV team.enterprise.buildDefinitionStateUUID=_DE03kWx1Eeebxd7VSSXeNw
ENV team.enterprise.buildDefinitionUUID=_uyToUGxuEeePAeD6qvNXJw
ENV team.enterprise.dependencyBaselineLastModified=Thu, 20 Jul 2017 03:43:35.353 GMT
ENV team.enterprise.scm.acceptBeforeFetch=true
ENV team.enterprise.scm.buildOnlyIfChanges=true
ENV team.enterprise.scm.componentLoadRules=
ENV team.enterprise.scm.createFoldersForComponents=false
ENV team.enterprise.scm.deleteDestinationBeforeFetch=true
ENV team.enterprise.scm.fetchDestination=/home/arumugaraj/raja
ENV team.enterprise.scm.includeComponents=false
ENV team.enterprise.scm.loadComponents=
ENV team.enterprise.scm.resourcePrefix=AROD
ENV team.enterprise.scm.resourceTeamPrefix=
ENV team.enterprise.scm.snapshotId=IBM i team build 4_20170720-0912510663
ENV team.enterprise.scm.teamWorkspaceUUID=
ENV team.enterprise.scm.workspaceUUID=_jC_zcGxsEeebxd7VSSXeNw
ENV teamz.scm.workspaceUUID=_jC_zcGxsEeebxd7VSSXeNw
EXEC ExecPreparse
EXEC spawning shell "/bin/sh"
SCRIPT if [ ! -f com.ibm.team.enterprise.build.ant.jar/com.ibm.team.enterprise.build.ant_*.jar ]; then
SCRIPT echo RTC EE Ant library is not found.  You may be using an old build toolkit prior to version 4.
SCRIPT exit 1
SCRIPT fi
EXEC start "/home/A192729"@"POC01.India.TCS.com"
* RTC EE Ant library is not found. You may be using an old build toolkit prior to version 4.
EXEC end "/home/A192729"@"POC01.India.TCS.com"
RESULT 1
EOR
Now I'm facing this error.


Comments
Donald Nong commented Jul 20 '17, 12:52 a.m.

The last few lines show that when a shell is spawned, it will check whether some necessary .jar files are there, otherwise it will exit with RC 1, which it did. You need to check why these .jar files are missing.

Your answer


Register or 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.