Red Hat Bugzilla – Bug 223747
Bugzilla cron jobs should run automatically
Last modified: 2007-11-30 17:11:53 EST
Description of problem:
Bugzilla comes with several scripts that are meant to be run regularly. These are:
- collectstats.pl, that is meant to be run from cron daily as the webserver
user to generate graph/reporting stuff
- whine.pl, to be run every 15 minutes
(whineatnew.pl mentioned in the docs is obsolete, replaced by the web-based
per-user stuff in whine.pl)
A crontab entry should be created to run these. Note that they need to be run as
the webserver user, so that permissions are correct on the generated files.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install bugzilla RPM
2. Try to view reports/get whinemails
Get error that file doesn't exist/don't get whines
See data, and get whine mails
Scripts in place in cron.daily, cron.d - new packages built.
That won't work - it needs to run from /usr/share/bugzilla, with that as the
Copying collectstats like that also has the problem that it needs to run as the
apache user to have the permissions on the created files end up correct.
Actually, there does seem to be something odd wrt permissions, and the initial
running vs later ones....
Let me follow it up upstream first...
Let me know what upstream tells you - I'm setting this NEEDINFO until you get
word back from upstream.
OK, so the scripts do need to be run as root, but that will cause problems for
the initial creation - a checksetup.pl run will fix that, but I've raised that
upstream. Hopefully will have a patch shortly.
It does, however, need to run with CWD as /usr/share/bugzilla/, so the copying
Cron job created, seems to run correctly for me. Please verify 2.22-10 fixes