[ZendTo] my server became full
Elston, Ian
I.Elston at bolton.ac.uk
Tue Apr 2 11:01:16 BST 2024
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
[University of Bolton]<https://www.bolton.ac.uk>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20240402/4ecbd680/attachment.html>
More information about the ZendTo
mailing list