[ZendTo] my server became full

Dippery, Kyle D. kyle.dippery at uky.edu
Tue Apr 2 13:52:45 BST 2024


First, I'd check the log files to see if cron actually ran the job; if not maybe there's some info about why not.

I haven't looked at the preferences file in ages; maybe there's an option in there that needs to be set to enable the cleanup?



Kyle Dippery, PhD
219 Robotics Building
Stanley and Karen Pigman College of Engineering
859-257-1346

________________________________________
From: ZendTo <zendto-bounces at zend.to> on behalf of Elston, Ian via ZendTo <zendto at zend.to>
Sent: Tuesday, April 2, 2024 6:01 AM
To: 'ZendTo Users'
Cc: Elston, Ian
Subject: [ZendTo] my server became full

CAUTION: External Sender

Hello all,

Two posts in two [working] days, sorry about this....

My zendto was down this morning, due to being full.  Turns out the /var/zendto/incoming was very large and had files in from January

root at zeus:/home/nads# du -h /var/zendto/incoming
28G     /var/zendto/incoming


I found an older mail list thread from June 2021 about a cron job which should exist to tidy up that directory.  I've checked and my crontab does appear to have the required entry

# Cron jobs for ZendTo to remove expired drop-offs and update usage graphs
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 | sed '$ d' | /bin/grep -v '^[0-9]*x[0-9]*$'



Looks like the entry to tidy up /incoming is not running, but I also have blank graphs, which suggests the rrd ones might not be working either... which also make me worry about the other entries...

Is there any way I can troubleshoot these cron jobs?

Installed version is the latest I think, server was only built (in January) using the installer

Listing... Done
zendto/lynx,trusty,xenial,bionic,now 6.13-3 all [installed]


To get my space back I have run (ran?) the command from the crontab
find -H /var/zendto/incoming -type f -mmin +1440 -delete >/dev/null 2>&1

root at zeus:/home/nads# du -h /var/zendto/incoming
12K     /var/zendto/incoming

And now I have plenty of space back.


-----------------------------------------------
Ian Elston
Senior Networks officer
Information Systems & Technology
The University of Bolton
http://www.bolton.ac.uk<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.bolton.ac.uk%2F&data=05%7C02%7Ckyle.dippery%40uky.edu%7C19fb89c3b1e1486ecd5308dc52fbe435%7C2b30530b69b64457b818481cb53d42ae%7C0%7C0%7C638476489048614720%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=ScNmw%2Bj5%2BJDYylIkvHiwL9zwGlDB1El74n0AXkM7E4I%3D&reserved=0>

[https://www.bolton.ac.uk/assets/109433-UoB-Email-footer.png]<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bolton.ac.uk%2F&data=05%7C02%7Ckyle.dippery%40uky.edu%7C19fb89c3b1e1486ecd5308dc52fbe435%7C2b30530b69b64457b818481cb53d42ae%7C0%7C0%7C638476489048626025%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=K0H4JqtJpijmsY2XJllIvpYm9oZ%2B7rXx3XXHZF%2BgvNA%3D&reserved=0>
This email (and any attachments) is confidential and may contain personal views which are not the views of the University of Bolton unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose information in any way nor act in reliance on it and notify the sender immediately. Please note the University of Bolton monitors emails sent or received. Further communication will signify your consent to this.



More information about the ZendTo mailing list