[ZendTo] my server became full

Elston, Ian I.Elston at bolton.ac.uk
Tue Apr 2 16:18:15 BST 2024


I don’t appear to have such a log file, or any cron log file.





-----------------------------------------------
Ian Elston
Senior Networks officer
Information Systems & Technology
The University of Bolton
http://www.bolton.ac.uk

-----Original Message-----
From: Sangster, Mark <m.v.sangster at abdn.ac.uk>
Sent: 02 April 2024 14:19
To: ZendTo Users <zendto at zend.to>
Cc: Elston, Ian <I.Elston at bolton.ac.uk>
Subject: RE: my server became full

[You don't often get email from m.v.sangster at abdn.ac.uk. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

WARNING: This message originated from outside the University. Use caution when following links or opening attachments.

The cron log (/var/log/cron.log), would at least acknowledge that it ran and when.

e.g. Apr  2 12:05:01 (server) CROND[92540]: (root) CMD (find -H /var/zendto/incoming -type f -mmin +1440 -delete >/dev/null 2>&1)

Cheers
Mark

-----Original Message-----
From: ZendTo <zendto-bounces at zend.to> On Behalf Of Elston, Ian via ZendTo
Sent: Tuesday, April 2, 2024 2:12 PM
To: ZendTo Users <zendto at zend.to>
Cc: Elston, Ian <I.Elston at bolton.ac.uk>
Subject: Re: [ZendTo] my server became full

CAUTION: External email. Ensure this message is from a trusted source and exercise caution before clicking links/opening attachments.


> First, I'd check the log files to see if cron actually ran the job

This was my first thought, but I don't *think* it logs anywhere... Looking at the entries in the cron they output to /dev/null and not to a log file.

> 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?

Not that I can see



-----------------------------------------------
Ian Elston
Senior Networks officer
Information Systems & Technology
The University of Bolton
http://www.bolton.ac.uk/

-----Original Message-----
From: ZendTo <zendto-bounces at zend.to> On Behalf Of Dippery, Kyle D. via ZendTo
Sent: 02 April 2024 13:53
To: ZendTo Users <zendto at zend.to>
Cc: Dippery, Kyle D. <kyle.dippery at uky.edu>
Subject: Re: [ZendTo] my server became full

WARNING: This message originated from outside the University. Use caution when following links or opening attachments.

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/<http://www.bolton.ac.uk/>

[https://www.bolton.ac.uk/assets/109433-UoB-Email-footer.png]<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.

_______________________________________________
ZendTo mailing list
ZendTo at zend.to
http://jul.es/mailman/listinfo/zendto
[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.

_______________________________________________
ZendTo mailing list
ZendTo at zend.to
http://jul.es/mailman/listinfo/zendto


The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir. SC013683.
[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.


More information about the ZendTo mailing list