[Cdash] Problems sending builds to our Cdash

Julien Jomier julien.jomier at kitware.com
Wed Jan 19 05:51:43 EST 2011


Sergio,

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

line 15: remove_build($buildid);

is called with the buildid 2574?

Zach, it seems that the error "Error parsing XML in stream at line 1: 
syntax error" comes from CTest, do you have any idea?

Thanks,
Julien

On 19/01/2011 10:45, Sergio Vera wrote:
> Thanks for your help, Julien.
>
> First of all my apologies for not sending the full error message in the
> first email. I though the DB error was the most relevant when it was not.
>
> I've sent a build to the Dashboard and here is the result:
>
> Error message:
> *Submit files (using http)*
> *1>   Using HTTP submit method*
> *1>   Drop site:http://frink/CDash/submit.php?project=Alma%20Research*
> *1>Error parsing XML in stream at line 1: syntax error*
> *1>   Server Response:*
> *1>SQL error in Build Insert(446)():Duplicate entry '2574' for key
> 'PRIMARY'<br><cdash version="1.8.2">*
> *1> <status>OK</status>*
> *1> <message></message>*
> *1> <md5>cb766bdced30179f6e8bc29d89cd016c</md5>*
> *1></cdash>*
> *1>   Uploaded:
> C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110119-0924/Build.xml*
> *1>Error parsing XML in stream at line 1: syntax error*
> *1>   Server Response:*
> *1>SQL error in Build Insert(446)():Duplicate entry '2574' for key
> 'PRIMARY'<br>BuildConfigure::Exists(): BuildId not
> setBuildConfigure::Insert(): BuildId not set<cdash version="1.8.2">*
> *1> <status>OK</status>*
> *1> <message></message>*
> *1> <md5>8ce8876b4a8260d546e706de8963b392</md5>*
> *1></cdash>*
> *1>   Uploaded:
> C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110119-0924/Configure.xml*
> *1>Error parsing XML in stream at line 1: syntax error*
> *1>   Server Response:*
> *1>SQL error in Build Insert(446)():Duplicate entry '2574' for key
> 'PRIMARY'<br><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><cdash version="1.8.2">*
> *1> <status>OK</status>*
> *1> <message></message>*
> *1> <md5>e5abc6b328d727bb0196f7765b77f922</md5>*
> *1></cdash>*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1><br />*
> *1><b>Notice</b>:  Undefined variable: buildid in
> <b>C:\wamp\www\CDash\models\buildtest.php</b> on line <b>35</b><br />*
> *1>   Uploaded:
> C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110119-0924/Test.xml*
> *1>   Errors occurred during submission.*
>
> tail of cdash.log:
> [*2011-01-19T09:26:42][ERROR][pid=2184](Test::InsertLabelAssociations):
> No Test::Id or buildid - cannot call $label->Insert...*
> *[2011-01-19T09:26:42][ERROR][pid=2184](Build::ComputeTestTiming):
> BuildId is not set*
>
> And attached are the xml files from the debug directory in cdash and the
> Testing directory from our Testing directory. They match, and comparing
> them to previous (working ones) I see no real difference beside dates
> and hours...
>
>
> Many thanks
>
> On Wed, Jan 19, 2011 at 8:45 AM, Julien Jomier
> <julien.jomier at kitware.com <mailto:julien.jomier at kitware.com>> wrote:
>
>     Hi Sergio,
>
>     I think the first error is the most important one:
>
>
>     "Error parsing XML in stream at line 1: syntax error"
>
>     Could you check in the backup directory if you have the XML file
>     being sent to the CDash server? Also could you check the file:
>
>
>
>     C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Build.xml
>
>     I'm wondering if the file is corrupted.
>
>     Let me know,
>     Julien
>
>
>     On 18/01/2011 15:19, Sergio Vera wrote:
>
>         Hello Julien
>
>         I've indeed modified the log messages to see what line is
>         failing and
>         the error line is 446 (first one)
>
>         The complete log message is the following:
>
>         Submit files (using http)
>         1>   Using HTTP submit method
>         1>   Drop site:http://frink/CDash/submit.php?project=Alma%20Research
>         1>Error parsing XML in stream at line 1: syntax error
>         1>   Server Response:
>         1>SQL error in Build Insert(446)():Duplicate entry '2574' for key
>         'PRIMARY'<br><cdash version="1.8.2">
>         1> <status>OK</status>
>         1> <message></message>
>         1> <md5>812b2f4bcfa3f08569434530510772aa</md5>
>         1></cdash>
>         1>   Uploaded:
>         C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Build.xml
>         1>Error parsing XML in stream at line 1: syntax error
>         1>   Server Response:
>         1>SQL error in Build Insert(446)():Duplicate entry '2574' for key
>         'PRIMARY'<br>BuildConfigure::Exists(): BuildId not
>         setBuildConfigure::Insert(): BuildId not set<cdash version="1.8.2">
>         1> <status>OK</status>
>         1> <message></message>
>         1> <md5>5f45f29a705d50e62de8233acb323ab7</md5>
>         1></cdash>
>         1>   Uploaded:
>         C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Configure.xml
>         1>Error parsing XML in stream at line 1: syntax error
>         1>   Server Response:
>         1>SQL error in Build Insert(446)():Duplicate entry '2574' for key
>         'PRIMARY'<br><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><cdash version="1.8.2">
>         1> <status>OK</status>
>         1> <message></message>
>         1> <md5>5599eeae5c27846decb110dbc24acd7b</md5>
>         1></cdash>
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1><br />
>         1><b>Notice</b>:  Undefined variable: buildid in
>         <b>C:\wamp\www\CDash\models\buildtest.php</b> on line
>         <b>35</b><br />
>         1>   Uploaded:
>         C:/work/projects-bin/AuxTools/AuxITK/AuxITKLib/static/VC9-Debug/Testing/20110118-1353/Test.xml
>         1>   Errors occurred during submission.
>
>
>         I've checked and the database's lastest build has id 2573. No Record
>         exists with id 2574. Trying to manually insert a record with id 2575
>         fails too.
>
>         To my knowledge, no one has touched the BD at all. Also, no
>         weird error
>         messages appear on the MySQL log file
>
>         Thanks again
>
>         On Tue, Jan 18, 2011 at 11:31 AM, Julien Jomier
>         <julien.jomier at kitware.com <mailto:julien.jomier at kitware.com>
>         <mailto:julien.jomier at kitware.com
>         <mailto:julien.jomier at kitware.com>>> wrote:
>
>             Hi Sergio,
>
>             This is strange. It might be an issue with the group table, if
>             someone modified it.
>
>             In the CDash/models/build.php there are three places with
>         this log
>             error: "Build Insert". Could you try to change the two: line
>         455 and
>             line 469 so that they have different names and try to resubmit a
>             build to see where it fails?
>
>             Julien
>
>
>             On 18/01/2011 11:00, Sergio Vera wrote:
>
>                 Hello there.
>
>                 Suddenly, our server refuses our builds (either
>         experimental or
>                 nightly)
>                 with the following errors:
>
>                 Error parsing XML in stream at line 1: syntax error
>                 1>   Server Response:
>                 1>SQL error in Build Insert():Duplicate entry '2574' for key
>         'PRIMARY'<br><cdash version="1.8.2">
>
>                 As far as I know no one has messed with the DB recently.
>         Any idea on
>                 what is causing this or how we can solve the issue?
>
>                 Thanks in advance
>                 --
>                 Sergio Vera
>
>                   Alma IT Systems
>                   C/ Vilana, 4B, 4º 1ª
>                   08022 Barcelona
>                   T. (+34) 932 380 592
>         www.alma3d.com <http://www.alma3d.com> <http://www.alma3d.com>
>         <http://www.alma3d.com>
>
>
>
>                 _______________________________________________
>                 Cdash mailing list
>         Cdash at public.kitware.com <mailto:Cdash at public.kitware.com>
>         <mailto:Cdash at public.kitware.com <mailto:Cdash at public.kitware.com>>
>
>         http://public.kitware.com/cgi-bin/mailman/listinfo/cdash
>
>
>
>
>         --
>         Sergio Vera
>
>           Alma IT Systems
>           C/ Vilana, 4B, 4º 1ª
>           08022 Barcelona
>           T. (+34) 932 380 592
>         www.alma3d.com <http://www.alma3d.com> <http://www.alma3d.com>
>
>
>
>
> --
> Sergio Vera
>
>   Alma IT Systems
>   C/ Vilana, 4B, 4º 1ª
>   08022 Barcelona
>   T. (+34) 932 380 592
> www.alma3d.com <http://www.alma3d.com>


More information about the Cdash mailing list