[ZendTo] Incoming folder filling up
jules at zend.to
jules at zend.to
Thu Jul 1 09:42:18 BST 2021
Hi Liam,
There are changes made by the rpm and deb packages that add to
/etc/profile.d (sets "ZENDTOPREFS"), /etc/logrotate.d (rotates the
/var/log/zendto log files), and /etc/cron.d. I've attached the file that
needs to go into /etc/cron.d which does all the regular housekeeping tasks.
Cheers,
Jules.
On 01/07/2021 09:26, Gretton, Liam via ZendTo wrote:
>
> Hi Jules,
>
> Yes, that's pretty much it. I use the tarball download of ZendTo
> rather than the installer, and must have overlooked a step somewhere,
> as I haven't got that cronjob at all. I'll pick it apart and see if
> there's anything else I've overlooked.
>
> Thanks very much for your help as always,
>
> Liam
>
> *Liam Gretton
> Systems Specialist***
>
> **
>
> IT Services,
> University of Leicester, University Road, Leicester, LE1 7RH, UK
>
> *t:*+44 (0)116 252 2254
> *e:*liam.gretton at leicester.ac.uk
> *w:*www.le.ac.uk <http://www.le.ac.uk/>_
> _
> Follow us on Twitter <https://twitter.com/uniofleicester> or visit our
> Facebook <http://www.facebook.com/uniofleicester> page
>
> *From:*Jules <Jules at Zend.To>
> *Sent:* 30 June 2021 11:24
> *To:* ZendTo Users <zendto at zend.to>
> *Cc:* Gretton, Liam <liam.gretton at leicester.ac.uk>
> *Subject:* Re: [ZendTo] Incoming folder filling up
>
> Hi Liam,
>
> In /etc/cron.d/zendto you should see, among other lines, a "find"
> command which does this:
> 5 */4 * * * root find -H /var/zendto/incoming -type f -mmin +1440
> -delete >/dev/null 2>&1
>
> Every 4 hours, at 5 minutes past the hour, that should delete all
> files in the "/var/zendto/incoming" directory that are more than 24
> hours (1440 minutes) old.
>
> Check your /etc/cron.d/zendto has that line, which 6.03-5 certainly
> should have.
> Have you moved the /var/zendto/incoming directory to somewhere else?
> If so, fix the path in this line or ensure there is a link from
> /var/zendto/incoming to wherever your "incoming" directory is now.
>
> Cheers,
> Jules.
>
> On 23/06/2021 11:52, Gretton, Liam via ZendTo wrote:
>
> Hi,
>
> I've only just noticed that over the last few months the Filedrop
> incoming folder has accumulated hundreds of files. The files in
> question don't appear to match what's in the dropoff area
> (obviously those older than a couple of weeks are no longer
> dropoffs anyway). Therefore I guess these left-over files are a
> result of interrupted or abandoned uploads.
>
> Does Filedrop have a mechanism for clearing up the incoming
> folder? I'm not sure of the mechanism for recognising a completed
> upload and turning it into a dropoff, and how this could go wrong.
> The start of the problem roughly coincides with the point that AV
> (not ClamAV) was installed on the server: could the AV be locking
> the file and preventing Filedrop from deleting it?
>
> If there's not an existing mechanism to clean this folder up I'll
> create a simple cron job to delete old files there. Would I be
> right in thinking that there should only ever be in-flight uploads
> present there?
>
> I'm still on 6.03-5, planning to upgrade over the summer.
>
> Thanks,
>
> Liam
>
> (I first sent this to the list on June 18 but it didn't appear)
>
> *Liam Gretton
> Systems Specialist*
>
> **
>
> IT Services,
> University of Leicester, University Road, Leicester, LE1 7RH, UK
>
> *t:* +44 (0)116 252 2254
> *e:* liam.gretton at leicester.ac.uk
> *w:* www.le.ac.uk
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.le.ac.uk%2F&data=04%7C01%7Cliam.gretton%40leicester.ac.uk%7C49d036125dd14cdb851008d93bb13cd3%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637606454686665360%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=nSx%2B9OqLuFgly9s2hUorpyttJr1Szstz3x5r3cjUxaM%3D&reserved=0>_
> _
> Follow us on Twitter
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Funiofleicester&data=04%7C01%7Cliam.gretton%40leicester.ac.uk%7C49d036125dd14cdb851008d93bb13cd3%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637606454686675315%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=m1PX1%2FCg6wQjk2oaxqmBrS1ew7Z2IsVult%2BXxp19cNQ%3D&reserved=0>
> or visit our Facebook
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.facebook.com%2Funiofleicester&data=04%7C01%7Cliam.gretton%40leicester.ac.uk%7C49d036125dd14cdb851008d93bb13cd3%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637606454686685274%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=tjwsHUOScsHItVzVTve%2BLVq9zcXuaptspUBprLfUj0I%3D&reserved=0>
> page
>
>
>
> _______________________________________________
>
> ZendTo mailinglist
>
> ZendTo at zend.to
>
> http://jul.es/mailman/listinfo/zendto <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjul.es%2Fmailman%2Flistinfo%2Fzendto&data=04%7C01%7Cliam.gretton%40leicester.ac.uk%7C49d036125dd14cdb851008d93bb13cd3%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637606454686685274%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ybg5Md9djILOZryQKQ6iiA1rBG8thDtcpWLpe8%2Fkl6w%3D&reserved=0>
>
>
>
> Jules
> --
> Julian Field MEng CEng CITP MBCS MIEEE MACM
> 'I have lost friends, some by death ... others through sheerinability
> to cross the street.' - Virginia Woolf
> www.Zend.To <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zend.to%2F&data=04%7C01%7Cliam.gretton%40leicester.ac.uk%7C49d036125dd14cdb851008d93bb13cd3%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637606454686685274%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MQ%2F8y2SKzJ5li4kg0kHdrl6HenGmZXSUC8CPRDBmBFE%3D&reserved=0>
> Twitter: @JulesFM
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://jul.es/mailman/listinfo/zendto
Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Remember me when I am gone away,
Gone far away into the silent land;
When you can no more hold me by the hand,
Nor I half turn to go yet turning stay.
Remember me when no more day by day
You tell me of our future that you planned:
Only remember me; you understand
It will be late to counsel then or pray.
Yet if you should forget me for a while
And afterwards remember, do not grieve:
For if the darkness and corruption leave
A vestige of the thoughts that once I had,
Better by far you should forget and smile
Than that you should remember and be sad.'
- Christina Rossetti
www.Zend.To
Twitter: @JulesFM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20210701/7886fda1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 3340 bytes
Desc: not available
URL: <http://jul.es/pipermail/zendto/attachments/20210701/7886fda1/attachment-0001.gif>
-------------- next part --------------
5 0 * * * root /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php >/dev/null 2>&1
25 * * * * root /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php --no-warnings >/dev/null 2>&1
15 0 * * * root /usr/bin/php /opt/zendto/sbin/emailSummary.php /opt/zendto/config/preferences.php >/dev/null 2>&1
5 */4 * * * root find -H /var/zendto/incoming -type f -mmin +1440 -delete >/dev/null 2>&1
1 1 * * * root /usr/bin/php /opt/zendto/sbin/rrdInit.php /opt/zendto/config/preferences.php 2>&1 | /bin/grep -iv 'illegal attempt to update using time'
3 3 * * * root /usr/bin/php /opt/zendto/sbin/rrdUpdate.php /opt/zendto/config/preferences.php 2>&1 | grep -v '^[0-9]*x[0-9]*$'
More information about the ZendTo
mailing list