Closed
Bug 508491
Opened 16 years ago
Closed 16 years ago
Set up QMO Bugzilla cron for QMO stage
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: paulc, Assigned: fox2mike)
References
Details
As per bug 499361, the QMO Bugzilla module is now enabled and working on QMO stage. Next step is setting up its cron to run.
The file should be in the website root, named cron-qmo_bugzilla.php
| Reporter | ||
Comment 1•16 years ago
|
||
A great frequency would be 10 minutes. Is that too often?
| Assignee | ||
Comment 2•16 years ago
|
||
No really major is it? :p
10 is cool, I'll set it up.
Assignee: server-ops → shyam
Severity: major → normal
| Assignee | ||
Comment 3•16 years ago
|
||
Done and running.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 4•16 years ago
|
||
Just to check, the output is something like "QMO Bugzilla ran successfully"?
The chart doesn't seem to be getting updated...
| Assignee | ||
Comment 5•16 years ago
|
||
No output.
[root@mrapp-stage02 quality.mozilla.org]# php -f cron-qmo_bugzilla.php
[root@mrapp-stage02 quality.mozilla.org]#
Maybe something wrong with the php script?
| Assignee | ||
Comment 6•16 years ago
|
||
Okay, so here's your issue :
On Khan, where things work -
[root@khan qmo]# php -a
Interactive shell
php > include_once './includes/bootstrap.inc';
php > drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
php >
On mrapp-stage02 where things don't work -
[root@mrapp-stage02 quality.mozilla.org]# php -a
Interactive shell
php > include_once './includes/bootstrap.inc';
php > drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
[root@mrapp-stage02 quality.mozilla.org]#
So basically, drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); bails out on stage02, without any error whatsoever.
Hence your cron never gets to run...on stage02. Any thoughts on what's causing this?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 7•16 years ago
|
||
Haven't found much. I'm thinking you should go into drupal_bootstrap() to figure out where it dies.
| Assignee | ||
Comment 8•16 years ago
|
||
Hahaha. This is where I'm starting to not like Drupal ;)
I'll see if I can find more info.
| Reporter | ||
Comment 9•16 years ago
|
||
Sorry man :( I'm willing to do the work but I'd need access :P
| Assignee | ||
Comment 10•16 years ago
|
||
Okay, poked around a bit more and got nowhere.
mrz, I'm wondering if we can give paul access to staging to debug this issue further? Don't know our policies on that.
| Reporter | ||
Comment 12•16 years ago
|
||
Another good way to try and debug this is by disabling all modules on stage except for the core modules and running cron again. If it runs, trace back to see which module makes it die out.
| Assignee | ||
Comment 13•16 years ago
|
||
How would I go about disabling modules? Comment out stuff in the drupal_bootstrap function?
| Reporter | ||
Comment 14•16 years ago
|
||
1. Make sure the email fields of users are "cleared up" (shoulda mentioned this for staging), i.e. in users table, clear up the emails column for non-admin users. This is so we don't spam people if emails get sent out... And i'm not sure that stage is cleaned up.
2. You need an admin user which I think I created for you. The best way to disable modules is through the UI at https://quality.authstage.mozilla.com/admin/build/modules
However, you can also do this from the db by going to the system table and setting status = 0 to various modules (careful not to disable core modules!)
Let me know if you need any help.
| Reporter | ||
Comment 15•16 years ago
|
||
So, after a bunch of investigation from buchanae, kourge and fox2mike, we learned that Drupal is special and requires cron.php to be run through http://
Hence, the actual set up requires using ./scripts/drupal.sh (which probably uses wget).
This worked for me on khan:
/home/pcraciunoiu/public_html/qmo/scripts/drupal.sh --root /home/pcraciunoiu/public_html/qmo/ http://default/cron.php
Generic:
/full/path/to/site/scripts/drupal.sh --root /full/path/to/site/ http://default/cron.php
| Assignee | ||
Comment 16•16 years ago
|
||
[root@mrapp-stage02 ~]# /data/www/quality.mozilla.org/scripts/drupal.sh --root /data/www/quality.mozilla.org/ http://default/cron.php
[root@mrapp-stage02 ~]# /data/www/quality.mozilla.org/scripts/drupal.sh --root /data/www/quality.mozilla.org/ http://default/cron-qmo_bugzilla.php
Didn't really do much. the Admin page showed cron wasn't run and when I clicked on run cron manually seemed to work fine.
Bah. Replacing default with quality.mozilla.org doesn't help either.
| Assignee | ||
Comment 17•16 years ago
|
||
oooh, but replacing default with quality.authstage.mozilla.com seems to work, I'm shoving this into cron, let's watch it.
| Assignee | ||
Comment 18•16 years ago
|
||
w00t! Works.
Re-open if you see any issues. Boy am I glad we got this one closed down :)
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 19•16 years ago
|
||
Woot! Amazing!!
Aakash, Tomcat: please QA stage for various things, including the QMO Bugzilla stuff (although you can leave that for later).
There are two cron jobs set up (as you can see in comment 16): general cron + QMO Bugzilla cron, hence we can enable cron on prod first (helps with spam control, commentcloser, etc), and once QMO Bugzilla is tested better, we can do that one too.
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•