ccnet - nant task is hanging while nant process completed

120 views
Skip to first unread message

K$

unread,
Jul 5, 2011, 3:54:17 AM7/5/11
to ccnet-user
I'm using ccnet 1.6.7981.1 and nant 0.91alpha1. It's showing that nant
is running until timeout 600 seconds and turn fail.

<buildresults>
<message>Command line 'E:\BuildSys\Executables\nant-0.91-alpha1-fl
\nant.exe -nologo -buildfile:E:\BuildSys\ccnetprojects
\genericlibrary.build -logger:NAnt.Core.XmlLogger -logfile:E:\BuildSys
\CCNetProjects\svn\dealersprocess\trunk\DP.Business\artifacts\nant-
results-a6f7977c-472d-4aa6-bc25-11c180507f8f.xml -
listener:NAnt.Core.DefaultLogger -debug -
D:EquationProject=dealersprocess -D:Project=DP.Business -
D:solutionorprojectfilename=DP.Business.vbproj -
D:solutionlist=dealersprocess -D:branch=trunk -
D:CCNetArtifactDirectory=E:\BuildSys\CCNetProjects\svn\dealersprocess
\trunk\DP.Business\artifacts -D:CCNetBuildCondition=ForceBuild -
D:CCNetBuildDate=2011-07-05 -D:CCNetBuildTime=14:08:30 -
D:CCNetFailureUsers=knguyen -D:CCNetIntegrationStatus=Unknown -
D:CCNetLabel=4 -D:CCNetLastIntegrationStatus=Failure -
D:CCNetListenerFile=E:\BuildSys\CCNetProjects\svn\dealersprocess\trunk
\DP.Business\artifacts\DP.DP.Business_ListenFile.xml -
D:CCNetModifyingUsers= -D:CCNetNumericLabel=4 -
D:CCNetProject=DP.DP.Business -D:CCNetProjectUrl=http://
build.equationits.com:8081 -D:CCNetRequestSource=DEV -
D:CCNetUser=knguyen -D:CCNetWorkingDirectory=E:\BuildSys\CCNetProjects
\svn\dealersprocess\trunk\DP.Business compile' timed out after 600
seconds.</message>
</buildresults>

But when i took the command line above to run it on command line
window, it takes about less then a minute to finish. So I guess ccnet
was not able to recognize that the nant process finished. This is the
log I got when executing nant in separated command line window:

...
[msbuild] E:\BuildSys\ccnetprojects\svn\dealersprocess\trunk
\DP.Business\Web
References\DCSales\Reference.vb(9463): warning BC40031: Name '__ID'
is not CLS-
compliant.
[msbuild]
[msbuild] 231 Warning(s)
[msbuild] 0 Error(s)
[msbuild]
[msbuild] Time Elapsed 00:00:10.45

TriggerSolutionBuild:

[echo] trigger build solution dealersprocess
[exec]
[exec] E:\BuildSys\CCNetProjects\svn\dealersprocess\trunk
\DP.Business>time
/T 1>uniquefile.txt
[exec]
[exec] E:\BuildSys\CCNetProjects\svn\dealersprocess\trunk
\DP.Business>date
/T 1>>uniquefile.txt
[exec]
[exec] Committed revision 20.
[exec] Adding E:\BuildSys\CCNetProjects\svn\dealersprocess
\trunk\DP
.Business\uniquefile.txt
[exec]
[exec] Committed revision 21.

BUILD SUCCEEDED

Total time: 21.8 seconds.

Does anyone face this issue before? I appreciate any help. This issue
has been taking my time since last week.

Thank you.

Bruce Jia

unread,
Jul 5, 2011, 4:41:25 AM7/5/11
to ccnet-user
I occasionally got this issue before and finally failed to find the
root cause. So I created a Windows Service to monitor nant (and other)
processes if they are timed out.

Bruce

Khoi Nguyen

unread,
Jul 5, 2011, 4:56:07 AM7/5/11
to ccnet...@googlegroups.com
I figured out the issue.

I trigger the build and open Task Manager to monitor nant.exe process, I see this process is running forever. But if I run the command line, the process is closed by itself after finish. So we could conclude that ccnet was waiting for nant process finish, but it has never, so ccnet has to kill the process when timeout.

The reason is I was running the ccnet service under different account. So I have to login into that account and make sure SVN actions works properly.

The issue now has gone away.

Thanks Bruce.
Reply all
Reply to author
Forward
0 new messages