Hi<div><br></div><div>I've modified the function:</div><div><br></div><div><div>function add_build($build, $clientscheduleid=0)</div><div>{</div><div> require_once('models/buildgroup.php');</div><div> <b>add_log('We start debugging');</b></div>
<div> if(!is_numeric($build->ProjectId) || !is_numeric($build->SiteId))</div><div> {</div><div> return;</div><div> }</div><div><br></div><div> //add_log('subprojectname: '.$build->SubProjectName, 'add_build');</div>
<div> $buildid = $build->GetIdFromName($build->SubProjectName);</div><div> if($buildid > 0 && !$build->Append)</div><div> {</div><div><b> if($buildid == 2574) { add_log('gotcha!!!!');}<span class="Apple-tab-span" style="white-space:pre"> </span></b></div>
<div> remove_build($buildid);</div><div> }</div><div>(...)</div><div><br></div><div>and launched another build, but no signs of buildid 2574 in the logs:</div><div><br></div><div><div>[2011-01-19T11:35:23][INFO][pid=2184](): <b>We start debugging</b></div>
<div>[2011-01-19T11:35:23][ERROR][pid=2184](Build Insert(446)): SQL error: Duplicate entry '2574' for key 'PRIMARY'</div><div>[2011-01-19T11:35:23][ERROR][pid=2184](Build::ComputeDifferences): BuildId is not set</div>
<div>[2011-01-19T11:35:26][INFO][pid=2184](): <b>We start debugging</b></div><div>[2011-01-19T11:35:26][ERROR][pid=2184](Build Insert(446)): SQL error: Duplicate entry '2574' for key 'PRIMARY'</div><div>[2011-01-19T11:35:26][ERROR][pid=2184](Build::ComputeConfigureDifferences): BuildId is not set</div>
<div>[2011-01-19T11:35:28][INFO][pid=2184](): <b>We start debugging</b></div><div>[2011-01-19T11:35:28][ERROR][pid=2184](Build Insert(446)): SQL error: Duplicate entry '2574' for key 'PRIMARY'</div><div>[2011-01-19T11:35:28][ERROR][pid=2184](BuildTest::Insert()): BuildId is not set</div>
<div>[2011-01-19T11:35:28][ERROR][pid=2184](Test::InsertLabelAssociations): No Test::Id or buildid - cannot call $label->Insert...</div><div>[2011-01-19T11:35:28][ERROR][pid=2184](BuildTest::Insert()): BuildId is not set</div>
<div>[2011-01-19T11:35:28][ERROR][pid=2184](Test::InsertLabelAssociations): No Test::Id or buildid - cannot call $label->Insert...</div><div>[2011-01-19T11:35:28][ERROR][pid=2184](BuildTest::Insert()): BuildId is not set</div>
</div>(...)</div><div><br></div><div>Regards</div><div><br></div><div><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 11:51 AM, Julien Jomier <span dir="ltr"><<a href="mailto:julien.jomier@kitware.com">julien.jomier@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sergio,<br>
<br>
I tested the XML on my local CDash and it works. It seems that CDash cannot remove old builds. Could you try to put some logging information in the cdash/ctestparserutils.php file and check if<br>
<br>
line 15: remove_build($buildid);<br>
<br>
is called with the buildid 2574?<br>
<br>
Zach, it seems that the error "Error parsing XML in stream at line 1: syntax error" comes from CTest, do you have any idea?<br>
<br>
Thanks,<br>
Julien<div><div></div><div class="h5"><br>
<br>
On 19/01/2011 10:45, Sergio Vera wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Thanks for your help, Julien.<br>
<br>
First of all my apologies for not sending the full error message in the<br>
first email. I though the DB error was the most relevant when it was not.<br>
<br>
I've sent a build to the Dashboard and here is the result:<br>
<br>
Error message:<br>
*Submit files (using http)*<br>
*1> Using HTTP submit method*<br>
*1> Drop site:<a href="http://frink/CDash/submit.php?project=Alma%20Research*" target="_blank">http://frink/CDash/submit.php?project=Alma%20Research*</a><br>
*1>Error parsing XML in stream at line 1: syntax error*<br>
*1> Server Response:*<br>
*1>SQL error in Build Insert(446)():Duplicate entry '2574' for key<br>
'PRIMARY'<br><cdash version="1.8.2">*<br>
*1> <status>OK</status>*<br>
*1> <message></message>*<br>
*1> <md5>cb766bdced30179f6e8bc29d89cd016c</md5>*<br>
*1></cdash>*<br>
*1> Uploaded:<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110119-0924/Build.xml*<br>
*1>Error parsing XML in stream at line 1: syntax error*<br>
*1> Server Response:*<br>
*1>SQL error in Build Insert(446)():Duplicate entry '2574' for key<br>
'PRIMARY'<br>BuildConfigure::Exists(): BuildId not<br>
setBuildConfigure::Insert(): BuildId not set<cdash version="1.8.2">*<br>
*1> <status>OK</status>*<br>
*1> <message></message>*<br>
*1> <md5>8ce8876b4a8260d546e706de8963b392</md5>*<br>
*1></cdash>*<br>
*1> Uploaded:<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110119-0924/Configure.xml*<br>
*1>Error parsing XML in stream at line 1: syntax error*<br>
*1> Server Response:*<br>
*1>SQL error in Build Insert(446)():Duplicate entry '2574' for key<br>
'PRIMARY'<br><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><cdash version="1.8.2">*<br>
*1> <status>OK</status>*<br>
*1> <message></message>*<br>
*1> <md5>e5abc6b328d727bb0196f7765b77f922</md5>*<br>
*1></cdash>*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1><br />*<br>
*1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*<br>
*1> Uploaded:<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110119-0924/Test.xml*<br>
*1> Errors occurred during submission.*<br>
<br>
tail of cdash.log:<br>
[*2011-01-19T09:26:42][ERROR][pid=2184](Test::InsertLabelAssociations):<br>
No Test::Id or buildid - cannot call $label->Insert...*<br>
*[2011-01-19T09:26:42][ERROR][pid=2184](Build::ComputeTestTiming):<br>
BuildId is not set*<br>
<br>
And attached are the xml files from the debug directory in cdash and the<br>
Testing directory from our Testing directory. They match, and comparing<br>
them to previous (working ones) I see no real difference beside dates<br>
and hours...<br>
<br>
<br>
Many thanks<br>
<br>
On Wed, Jan 19, 2011 at 8:45 AM, Julien Jomier<br></div></div><div><div></div><div class="h5">
<<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a> <mailto:<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a>>> wrote:<br>
<br>
Hi Sergio,<br>
<br>
I think the first error is the most important one:<br>
<br>
<br>
"Error parsing XML in stream at line 1: syntax error"<br>
<br>
Could you check in the backup directory if you have the XML file<br>
being sent to the CDash server? Also could you check the file:<br>
<br>
<br>
<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Build.xml<br>
<br>
I'm wondering if the file is corrupted.<br>
<br>
Let me know,<br>
Julien<br>
<br>
<br>
On 18/01/2011 15:19, Sergio Vera wrote:<br>
<br>
Hello Julien<br>
<br>
I've indeed modified the log messages to see what line is<br>
failing and<br>
the error line is 446 (first one)<br>
<br>
The complete log message is the following:<br>
<br>
Submit files (using http)<br>
1> Using HTTP submit method<br>
1> Drop site:<a href="http://frink/CDash/submit.php?project=Alma%20Research" target="_blank">http://frink/CDash/submit.php?project=Alma%20Research</a><br>
1>Error parsing XML in stream at line 1: syntax error<br>
1> Server Response:<br>
1>SQL error in Build Insert(446)():Duplicate entry '2574' for key<br>
'PRIMARY'<br><cdash version="1.8.2"><br>
1> <status>OK</status><br>
1> <message></message><br>
1> <md5>812b2f4bcfa3f08569434530510772aa</md5><br>
1></cdash><br>
1> Uploaded:<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Build.xml<br>
1>Error parsing XML in stream at line 1: syntax error<br>
1> Server Response:<br>
1>SQL error in Build Insert(446)():Duplicate entry '2574' for key<br>
'PRIMARY'<br>BuildConfigure::Exists(): BuildId not<br>
setBuildConfigure::Insert(): BuildId not set<cdash version="1.8.2"><br>
1> <status>OK</status><br>
1> <message></message><br>
1> <md5>5f45f29a705d50e62de8233acb323ab7</md5><br>
1></cdash><br>
1> Uploaded:<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Configure.xml<br>
1>Error parsing XML in stream at line 1: syntax error<br>
1> Server Response:<br>
1>SQL error in Build Insert(446)():Duplicate entry '2574' for key<br>
'PRIMARY'<br><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><cdash version="1.8.2"><br>
1> <status>OK</status><br>
1> <message></message><br>
1> <md5>5599eeae5c27846decb110dbc24acd7b</md5><br>
1></cdash><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1><br /><br>
1><b>Notice</b>: Undefined variable: buildid in<br>
<b>C:\wamp\www\CDash\models\buildtest.php</b> on line<br>
<b>35</b><br /><br>
1> Uploaded:<br>
C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Test.xml<br>
1> Errors occurred during submission.<br>
<br>
<br>
I've checked and the database's lastest build has id 2573. No Record<br>
exists with id 2574. Trying to manually insert a record with id 2575<br>
fails too.<br>
<br>
To my knowledge, no one has touched the BD at all. Also, no<br>
weird error<br>
messages appear on the MySQL log file<br>
<br>
Thanks again<br>
<br>
On Tue, Jan 18, 2011 at 11:31 AM, Julien Jomier<br>
<<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a> <mailto:<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a>><br>
<mailto:<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a><br>
<mailto:<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a>>>> wrote:<br>
<br>
Hi Sergio,<br>
<br>
This is strange. It might be an issue with the group table, if<br>
someone modified it.<br>
<br>
In the CDash/models/build.php there are three places with<br>
this log<br>
error: "Build Insert". Could you try to change the two: line<br>
455 and<br>
line 469 so that they have different names and try to resubmit a<br>
build to see where it fails?<br>
<br>
Julien<br>
<br>
<br>
On 18/01/2011 11:00, Sergio Vera wrote:<br>
<br>
Hello there.<br>
<br>
Suddenly, our server refuses our builds (either<br>
experimental or<br>
nightly)<br>
with the following errors:<br>
<br>
Error parsing XML in stream at line 1: syntax error<br>
1> Server Response:<br>
1>SQL error in Build Insert():Duplicate entry '2574' for key<br>
'PRIMARY'<br><cdash version="1.8.2"><br>
<br>
As far as I know no one has messed with the DB recently.<br>
Any idea on<br>
what is causing this or how we can solve the issue?<br>
<br>
Thanks in advance<br>
--<br>
Sergio Vera<br>
<br>
Alma IT Systems<br>
C/ Vilana, 4B, 4º 1ª<br>
08022 Barcelona<br>
T. (+34) 932 380 592<br>
<a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a> <<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>> <<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>><br>
<<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>><br>
<br>
<br>
<br>
_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a> <mailto:<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a>><br></div></div>
<mailto:<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a> <mailto:<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a>>><div class="im">
<br>
<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
<br>
<br>
<br>
<br>
--<br>
Sergio Vera<br>
<br>
Alma IT Systems<br>
C/ Vilana, 4B, 4º 1ª<br>
08022 Barcelona<br>
T. (+34) 932 380 592<br></div>
<a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a> <<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>> <<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>><div class="im">
<br>
<br>
<br>
<br>
<br>
--<br>
Sergio Vera<br>
<br>
Alma IT Systems<br>
C/ Vilana, 4B, 4º 1ª<br>
08022 Barcelona<br>
T. (+34) 932 380 592<br>
</div><a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a> <<a href="http://www.alma3d.com" target="_blank">http://www.alma3d.com</a>><br>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>
</div>