[ http://jira.public.thoughtworks.org/browse/CC-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14417 ]
Dan Corneanu commented on CC-340:
---------------------------------
Try to call the windows cacls command on the file you are trying to execute and see if it has the FILE_EXECUTE permissions.
> IOException running Ant from ClearCase dynamic view
> ---------------------------------------------------
>
> Key: CC-340
> URL: http://jira.public.thoughtworks.org/browse/CC-340
> Project: CruiseControl
> Issue Type: Bug
> Components: Core Application
> Affects Versions: 2.2.1, 2.3.1
> Environment: ClearCase 2003.06.13
> Windows 2003 Server
> Ant 1.6.2 or 1.6.3
> Java 1.4.2_06
> Reporter: Terje Tessem
> Assigned To: Jeffrey Fredrick
>
> This issue is more or less the same as CC-122, but has still not been re-opened.
> Both source and Ant is placed on a ClearCase dynamic view, referenced by driveletter M:.
> Build process works fine if Ant is put on C:\somewhere. The reason for putting Ant on M: is multiple.
> The CruiseControl user has access to M: (else it wouldn't be able to retrieve the source code), and I get the problem even if I runs it as my self (from cmd-line). I have also tried it with "Run as..." with the CruiseControl user.
> It works just fine with CruiseControl version 2.1.6.
> Log (debug) output:
> ....
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG PluginXMLHelper - Setting dest to artifacts/ABC
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG PluginXMLHelper - Setting command to C:\MyCompBase\Rational\ClearCase\bin\clearlicense -release
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG ProjectXMLHelper - Setting BuildAfterFailed to false
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: buildInterval = [300000]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: buildForced = [true]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: buildAfterFailed = [false]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: buildCounter = [0]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: isPaused = [false]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: label = [build.1]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: lastBuild = [20051012000000]
> 2005-10-12 09:23:19,527 [Thread-3 ] DEBUG Project - Project ABC: lastSuccessfulBuild = [20051012000000]
> 2005-10-12 09:23:19,543 [Thread-3 ] DEBUG Project - Project ABC: logDir = [logs/ABC]
> 2005-10-12 09:23:19,543 [Thread-3 ] DEBUG Project - Project ABC: logXmlEncoding = [ISO-8859-1]
> 2005-10-12 09:23:19,543 [Thread-3 ] DEBUG Project - Project ABC: wasLastBuildSuccessful = [true]
> 2005-10-12 09:23:19,543 [Thread-3 ] INFO Project - Project ABC: bootstrapping
> 2005-10-12 09:23:19,543 [Thread-3 ] INFO ProjectController - ABC Controller: build progress event: bootstrapping
> 2005-10-12 09:23:19,589 [Thread-3 ] INFO Project - Project ABC: checking for modifications
> 2005-10-12 09:23:19,589 [Thread-3 ] INFO ProjectController - ABC Controller: build progress event: checking for modifications
> 2005-10-12 09:23:19,589 [Thread-3 ] DEBUG Project - Project ABC: getting changes since last successful build
> 2005-10-12 09:23:19,589 [Thread-3 ] INFO ClearCase - ClearCase: getting modifications for M:\CrControl_P_ABC_int\CVOB_ABC_ST\COMP_ABC
> 2005-10-12 09:23:19,589 [Thread-3 ] DEBUG ClearCase - Command to execute : cleartool lshistory -branch P_ABC_Integration -r -nco -since 12-oktober-2005.00:00:00 -fmt %u#~#%Nd#~#%En#~#%Vn#~#%o#~#!%l#~#!%a#~#%Nc@...
> 2005-10-12 09:23:21,183 [Thread-3 ] DEBUG ModificationSet - Last modification: 01/01/1970 01:00:00
> 2005-10-12 09:23:21,183 [Thread-3 ] DEBUG ModificationSet - Last modification: 01/01/1970 01:00:00
> 2005-10-12 09:23:21,199 [Thread-3 ] INFO Project - Project ABC: No modifications found, build not necessary.
> 2005-10-12 09:23:21,199 [Thread-3 ] INFO Project - Project ABC: Building anyway, since build was explicitly forced.
> 2005-10-12 09:23:21,199 [Thread-3 ] INFO Project - Project ABC: now building
> 2005-10-12 09:23:21,199 [Thread-3 ] INFO ProjectController - ABC Controller: build progress event: now building
> 2005-10-12 09:23:21,214 [Thread-3 ] DEBUG Commandline - Executing "M:\CrControl_P_ABC_int\CVOB_JJJ_ST\COMP_JJJBuildMaster\JJJBuildMaster\Tools\apache-ant-1.6.2\bin\ant.bat -listener org.apache.tools.ant.XmlLogger -DXmlLogger.file=log.xml -Dcclastbuildtimestamp=20051012000000 -Dclearcasenow=12-oktober-2005.09:23:19 -Dlabel=build.1 -Dcclastgoodbuildtimestamp=20051012000000 -Dlastbuildsuccessful=true -Dclearcaselastbuild=12-oktober-2005.00:00:00 "-Dcvstimestamp=2005-10-12 07:23:19 GMT" -Dcctimestamp=20051012092319 -buildfile ABC_build.xml build" in directory C:\MyCompBase\ContiniousBuild\CruiseControlTest\workdir\ABC
> 2005-10-12 09:23:21,214 [Thread-3 ] INFO Project - Project ABC: idle
> 2005-10-12 09:23:21,214 [Thread-3 ] INFO ProjectController - ABC Controller: build progress event: idle
> 2005-10-12 09:23:21,230 [Thread-3 ] ERROR Project - exception attempting build in project ABC
> net.sourceforge.cruisecontrol.CruiseControlException: Encountered an IO exception while attempting to execute 'net.sourceforge.cruisecontrol.builders.AntScript@...'. CruiseControl cannot continue. : CreateProcess: M:\CrControl_P_ABC_int\CVOB_JJJ_ST\COMP_JJJBuildMaster\JJJBuildMaster\Tools\apache-ant-1.6.2\bin\ant.bat -listener org.apache.tools.ant.XmlLogger -DXmlLogger.file=log.xml -Dcclastbuildtimestamp=20051012000000 -Dclearcasenow=12-oktober-2005.09:23:19 -Dlabel=build.1 -Dcclastgoodbuildtimestamp=20051012000000 -Dlastbuildsuccessful=true -Dclearcaselastbuild=12-oktober-2005.00:00:00 "-Dcvstimestamp=2005-10-12 07:23:19 GMT" -Dcctimestamp=20051012092319 -buildfile ABC_build.xml build error=5
> at net.sourceforge.cruisecontrol.builders.ScriptRunner.runScript(ScriptRunner.java:102)
> at net.sourceforge.cruisecontrol.builders.AntBuilder.build(AntBuilder.java:149)
> at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:146)
> at net.sourceforge.cruisecontrol.Project.build(Project.java:202)
> at net.sourceforge.cruisecontrol.Project.execute(Project.java:155)
> at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
> at java.lang.Thread.run(Thread.java:567)
> 2005-10-12 09:23:21,230 [Thread-3 ] DEBUG Project - Project ABC: build finished
> 2005-10-12 09:23:21,230 [Project ABC thread] DEBUG Schedule - getTimeToNextBuild: initial timeToNextBuild = 300000
> 2005-10-12 09:23:21,230 [Project ABC thread] DEBUG Schedule - multiple=1 builder found that could run on Wed Oct 12 09:28:21 CEST 2005
> 2005-10-12 09:23:21,230 [Project ABC thread] DEBUG Schedule - getTimeToNextBuild: after checkMultipleBuilders = 300000
> 2005-10-12 09:23:21,246 [Project ABC thread] DEBUG Schedule - getTimeToNextBuild: after checkTimeBuilders = 300000
> 2005-10-12 09:23:21,246 [Project ABC thread] DEBUG Schedule - getTimeToNextBuild: after checkPauseBuilders = 300000
> 2005-10-12 09:23:21,246 [Project ABC thread] INFO Project - Project ABC: next build in 5 minutes
> ....
> Config file:
> <cruisecontrol>
> <project name="ABC" buildafterfailed="false" preBuildIncrementer="true">
> <bootstrappers>
> <currentbuildstatusbootstrapper file="logs/ABC/currentbuild.txt" />
> </bootstrappers>
> <modificationset requiremodification="true" quietperiod="60">
> <clearcase
> branch="P_ABC_Integration"
> viewpath="M:/CrControl_P_ABC_int/CVOB_ABC_ST/COMP_ABC">
> </clearcase>
> </modificationset>
> <schedule interval="300">
> <pause starttime="2330" endtime="0300"/>
> <ant antscript="M:/CrControl_P_ABC_int/CVOB_JJJ_ST/COMP_JJJBuildMaster/JJJBuildMaster/Tools/apache-ant-1.6.2/bin/ant.bat"
> antWorkingDir="workdir/ABC"
> buildfile="ABC_build.xml"
> target="build"
> multiple="1"
> uselogger="false"
> usedebug="false"
> timeout="1800">
> <jvmarg arg="-Xmx512m"/>
> </ant>
> </schedule>
> <log dir="logs/ABC" encoding="ISO-8859-1">
> <merge
> dir="./workdir/ABC/junit_logs"
> removeproperties="true" />
> </log>
> <publishers>
> <currentbuildstatuspublisher file="logs/ABC/currentstatus.txt" />
> <email buildresultsurl="http://buildhost.MyComp.net/cc/buildresults/ABC"
> mailhost="mailhost.MyComp.no"
> defaultsuffix="@MyComp.com"
> returnaddress="myname@..."
> returnname="Buildmaster"
> spamwhilebroken="false"
> reportsuccess="fixes"
> skipusers="true"
> subjectprefix="CruiseControl">
> <always address="myname@..."/>
> </email>
> <artifactspublisher
> dir="./workdir/ABC/artifacts"
> dest="artifacts/ABC" />
> <execute command="C:\MyCompBase\Rational\ClearCase\bin\clearlicense -release"/>
> </publishers>
> </project>
> <plugin name="pause" classname="net.sourceforge.cruisecontrol.PauseBuilder"/>
> </cruisecontrol>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|