Archive for the ‘Cronjobs’ Category

Every five minutes or so, I’m getting an error message like this:

Traceback (most recent call last):
 File "/usr/lib/mailman/cron/gate_news", line 284, in ?
   main()
 File "/usr/lib/mailman/cron/gate_news", line 264, in main
   process_lists(lock)
 File "/usr/lib/mailman/cron/gate_news", line 194, in process_lists
   for listname in Utils.list_names():
 File "/usr/lib/mailman/Mailman/Utils.py", line 96, in list_names
   return Site.get_listnames()
 File "/usr/lib/mailman/Mailman/Site.py", line 110, in get_listnames
   for fn in os.listdir(mm_cfg.LIST_DATA_DIR):
OSError: [Errno 2] No such file or directory: '/var/lib/mailman/lists'

In /etc/cron.d/mailman,

# Every 5 mins, try to gate news to mail.  You can comment this one out
# if you don't want to allow gating, or don't have any going on right now,
# or want to exclusively use a callback strategy instead of polling.
#0,5,10,15,20,25,30,35,40,45,50,55 * * * * mailman /usr/lib/mailman/cron/gate_news

I don’t really understand what gating is and I don’t think we’re using it. So I’ve commented it out.

In the upgrade, I missed installing the hypermail package. I installed the rpm as soon as I noticed. We probably don’t need to use this now that we’re running mailman. But, just in case, I’ve installed it anyway. It’s invoked from the crontab with:

/usr/bin/hypermail -m /var/spool/mail/theta13mail -d /web/mwtheta13/archive
/usr/bin/hypermail -m /var/spool/mail/apsmail -d /web/apsreactor/archive

I wrote a couple of perl scripts that run on each machine and find out how many files each user has on each data disk. The way this works is that there are two scripts that run on each machine. First is gen_disk_listing, which is just a find command that generates a list of all the files on the data disks. Second is find_data_disk_hogs which separates the files by owner. The last script is run on cdf which creates a webpage from all the data gathered.