Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 223747 - Bugzilla cron jobs should run automatically
Bugzilla cron jobs should run automatically
Product: Fedora
Classification: Fedora
Component: bugzilla (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: John Berninger
Fedora Extras Quality Assurance
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2007-01-21 23:14 EST by Bradley
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-31 17:11:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Mozilla Foundation 368250 None None None Never

  None (edit)
Description Bradley 2007-01-21 23:14:25 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):


How reproducible:


Steps to Reproduce:
1. Install bugzilla RPM
2. Try to view reports/get whinemails
Actual results:

Get error that file doesn't exist/don't get whines

Expected results:

See data, and get whine mails

Additional info:

See http://www.bugzilla.org/docs/2.22/html/extraconfig.html
Comment 1 John Berninger 2007-01-22 19:22:12 EST
Scripts in place in cron.daily, cron.d - new packages built.
Comment 2 Bradley 2007-01-22 19:45:47 EST
That won't work - it needs to run from /usr/share/bugzilla, with that as the
CWD, too.

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.
Comment 3 Bradley 2007-01-23 17:01:03 EST
Actually, there does seem to be something odd wrt permissions, and the initial
running vs later ones....

Let me follow it up upstream first...
Comment 4 John Berninger 2007-01-23 17:09:52 EST
Let me know what upstream tells you - I'm setting this NEEDINFO until you get
word back from upstream.
Comment 5 Bradley 2007-01-25 20:19:53 EST
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
is wrong.
Comment 6 John Berninger 2007-01-27 12:08:28 EST
Cron job created, seems to run correctly for me.  Please verify 2.22-10 fixes
this issue.

Note You need to log in before you can comment on or make changes to this bug.