Hi,
Sorry, but the files are not automatically deleted.
I'm running under Redhat (Centos) kernel 2.6.18 x86_64.
Apache serveur running 2.2.3 with user and group apacahe.
When I created a ticket with the following parameters :
Expire in total # of days : 0 or 0
Expire in # of hours after last dl : 0 or 1
Expire after # of downloads : 1 or 0
Permanent ticket / upload Do not expire : (not selected)
# ls -alR /var/spool/dl
/var/spool/dl:
total 32
drwxrwx--- 3 apache apache 4096 jun 25 08:23 .
drwxr-xr-x 17 root root 4096 jun 24 16:06 ..
drwxr-xr-x 2 apache apache 4096 jun 25 08:23 data
-rw------- 1 apache apache 16384 jun 25 08:23 data.sdb
/var/spool/dl/data:
total 24
drwxr-xr-x 2 apache apache 4096 jun 25 08:23 .
drwxrwx--- 3 apache apache 4096 jun 25 08:23 ..
-rw-r--r-- 1 apache apache 1757 jun 25 08:22 0ab543903a1497928d0b7b3a630b341d
-rw-r--r-- 1 apache apache 9839 jun 24 16:44 9f889eea9ea277c33b16699caf1ee23f
[r...@irlin137 dl]#
The files are ONLY removed from the server if they are not expired in the web
interface and when I can acces to it in the "active ticket" and purge the file
automatically. In this case, yes the file is removed from the server and I
received an email about this purge acton.
If the file is expired from the web interface, it'is not possible to acces to
purge action manually and the file is always store on the spool directory
/var/spool/dl/data
When I created a new ticket I have the following message in error.log from
apacahe
PHP Notice: Undefined offset: 7 in
/var/www/html/htdocs/include/gettext/gettext.inc on line 86, referer:
http://testdl/dl/admin.php?a=newt
When the file is download the following message
[error] [client X.X.X.X] PHP Notice: Undefined offset: 7 in
/var/www/html/htdocs/include/gettext/gettext.inc on line 86
-----Message d'origine-----
De : Yuri D'Elia [mailto:[email protected]]
Envoyé : jeudi 24 juin 2010 15:55
À : Download Ticket Service
Objet : Re: [dl-ticket-service] how to clean spool directory
On Thu, 24 Jun 2010 15:51:22 +0200
"MOKRANI Rachid" <[email protected]> wrote:
> When I created a ticket and it expired, the file disappeared from the
> web interface, but this file is not remove in the spool direcory
> /var/spool/dl/data.
>
> How to remove properly expired files (and clean the
> /var/spool/dl/data.sdb) in the spool directory ?
The files are automatically deleted.
Check the permissions of /var/spool/dl.
Check the apache's error.log for PHP warnings/errors.
__________________________
Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et
établi à l'intention exclusive de ses destinataires. Toute utilisation de ce
message non conforme à sa destination, toute diffusion ou toute publication,
totale ou partielle, est interdite, sauf autorisation expresse. L'IFP décline
toute responsabilité au titre de ce message.
This message and any attachments (the message) are confidential and intended
solely for the addressees. Any unauthorised use or dissemination is prohibited.
IFP should not be liable for this message.
Visitez notre site Web / Visit our web site : http://www.ifp.fr
__________________________