Closed Bug 525310 Opened 15 years ago Closed 15 years ago

[AMO] Cron job files just disappeared?

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: oremj)

Details

We get the output of the cron jobs emailed to us and we just started getting this:

Cron <root@mradm02> $PY_MAINTENANCE	share_count_totals
/bin/sh: line 0: cd: $BIN: No such file or directory


Cron <root@mradm02> $PHP_MAINTENANCE	collection_stats
/bin/sh: line 0: cd: $BIN: No such file or directory

It started about 5 minutes ago.
Looks like oremj just did something with bug 522276 which looks suspicious
I'm sure bug 522276 broke it.
Assignee: server-ops → jeremy.orem+bugs
Should be fixed now :-(

[root@mradm02 cron.d]# perl -i -pne 's|\$PY_MAINTENANCE|cd /data/amo/www/addons.mozilla.org-preview/bin; /usr/bin/python26 maintenance.py|' addons-preview-maint 
[root@mradm02 cron.d]# perl -i -pne 's|\$PHP_MAINTENANCE|cd /data/amo/www/addons.mozilla.org-preview/bin; php -f maintenance.php|' addons-preview-maint 
[root@mradm02 cron.d]# perl -i -pne 's|\$BIN|/data/amo/www/addons.mozilla.org-preview/bin|' addons-preview-maint 
[root@mradm02 cron.d]# perl -i -pne 's|\$PHP|php -f|' addons-preview-maint 
[root@mradm02 cron.d]# perl -i -pne 's|\$PYTHON|/usr/bin/python26|' addons-preview-maint
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.