[AMO] Cron job files just disappeared?

RESOLVED FIXED

Status

mozilla.org Graveyard
Server Operations
RESOLVED FIXED
8 years ago
3 years ago

People

(Reporter: clouserw, Assigned: oremj)

Tracking

Details

(Reporter)

Description

8 years ago
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.
(Reporter)

Comment 1

8 years ago
Looks like oremj just did something with bug 522276 which looks suspicious
(Assignee)

Comment 2

8 years ago
I'm sure bug 522276 broke it.
Assignee: server-ops → jeremy.orem+bugs
(Assignee)

Comment 3

8 years ago
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
Last Resolved: 8 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.