[Cdash] cdash backup directory not being cleaned up

clinton at elemtech.com clinton at elemtech.com
Fri Apr 3 04:13:35 UTC 2015


I found out why this wasn't working for me.  Its related to my apache setup putting cdash on a virtual host.

In cdash/do_submit.php, I can fix this by changing the 
  if(function_exists("curl_init") == TRUE)
    {
    $currentURI = get_server_URI(true);
    ...
    }

to
  if(function_exists("curl_init") == TRUE)
    {
    $currentURI = get_server_URI(false);
    ...
    }


Alternatively, I can change to
$CDASH_CURL_REQUEST_LOCALHOST='0';
in the config.

If the intent of the setting is to account for virtual hosts, its not obvious from the comments nor from the name of the variable.

Nor is it obvious what the interaction is between these settings:
$CDASH_CURL_REQUEST_LOCALHOST='0';
$CDASH_CURL_LOCALHOST_PREFIX='';
$CDASH_BASE_URL='';

I first tried setting CDASH_BASE_URL, but that had no effect.
So anyway, for now I have
$CDASH_CURL_REQUEST_LOCALHOST='0';
because I see several places where get_server_URI(true) is called.

Clint


----- Original Message -----
> Dave, Clinton,
> 
> I'm guessing the asynchronous call is not working properly.
> Are you getting daily file changed at the top of the dashboard?
> 
> Can you try to call the dailyupdates directly from your browser?
> Something like:
> 
>    http://localhost/CDash/cdash/dailyupdatescurl.php?projectid=1
> 
> with the projectid being the id of your project.
> 
> Let me know if that works (or not),
> Julien
> 
> On 27/03/2015 19:50, David Cole via Cdash wrote:
> > Ah ha! I just checked mine, and I have 3.8 G worth of *.xml files
> > dating all the way back to May 22, 2013 in my backup folder: the week
> > that I set it up...
> >
> > I have this in my config.local.php, intending to keep things around for a
> > week:
> > $CDASH_BACKUP_TIMEFRAME = '168'; // in hours
> >
> > Good thing it's not a high-volume CDash server!
> >
> > Looking forward to a fix for this one. ;-)
> >
> >
> >
> > On Fri, Mar 27, 2015 at 1:19 PM, Clinton Stimpson <clinton at elemtech.com>
> > wrote:
> >> Hi,
> >>
> >> I have another problem with cdash.
> >>
> >> The backup directory contains the submitted .xml files.
> >> I have in my cdash/config.php file
> >> $CDASH_BACKUP_TIMEFRAME = '48'; // 48 hours
> >>
> >> According to this, the .xml files older than 48 hours are supposed to be
> >> cleaned up when new submissions arrive.
> >> http://www.vtk.org/Wiki/CDash:Administration#Backup_mechanism
> >>
> >> This is not the case for me.  My backup directory is accumulating and
> >> contains
> >> files from the distant past.  Much more than 48 hours ago.
> >>
> >> Is anyone else seeing this, or could it be specific to my setup?
> >> For example, I install cdash in a version specific folder, and then make a
> >> softlink for apache.  I don't know if something like that would prevent
> >> the
> >> cleanup.  Permissions shouldn't be a problem because apache can put the
> >> files
> >> there, so it should be able to remove them.
> >>
> >> Clint
> >> _______________________________________________
> >> Cdash mailing list
> >> Cdash at public.kitware.com
> >> http://public.kitware.com/mailman/listinfo/cdash
> > _______________________________________________
> > Cdash mailing list
> > Cdash at public.kitware.com
> > http://public.kitware.com/mailman/listinfo/cdash
> >
> 



More information about the CDash mailing list