Closed Bug 580060 Opened 15 years ago Closed 15 years ago

Basket updates, Tues 7/20 @ anytime

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: abuchanan, Assigned: chizu)

Details

I'll have some code ready to push on 7/20, including better SMTP connection handling, and enabling the Firefox Home reminder emails and LDAP checking. **Not ready yet** just filing this as a heads up, I'll comment here when everything is ready.
i'm okay pushing this whenever.
Ok, I'm ready. For stage, 1) in settings_local.py, remove the EMAIL_BACKEND line (if it exists) For production 1) git pull 2) in settings_local.py, remove the EMAIL_BACKEND line (if it exists) 3) re-enable the reminder email and sync ldap cron jobs (we disabled these during launch) 4) add a new cron job ./manage.py unsubscribe firefox-home-instructions --conditional=ageutils.subscription_older_than_ten_days 5) I added a nagios check to keep an eye on the email backlog, in case sending stops working for some reason. In this case, it will print something like "ERROR: email backlog is 123" I believe you're already pointing nagios at this, it's at basket.mozilla.com/nagios/
Assignee: server-ops → jeremy.orem+bugs
Want to pick a time to do this today? 4pm?
Cron now looks like this: * * * * * apache cd /data/generic/www/django/basket.mozilla.com/basket; /usr/bin/python26 manage.py sendmail --template iphone-reg firefox-home-instructions > /dev/null * * * * * apache cd /data/generic/www/django/basket.mozilla.com/basket; /usr/bin/python26 manage.py sendmail --template iphone-reminder firefox-home-instructions > /dev/null * * * * * apache cd /data/generic/www/django/basket.mozilla.com/basket; /usr/bin/python26 manage.py unsubscribe firefox-home-instructions --conditional=ldaputils.subscription_has_account > /dev/null * * * * * apache cd /data/generic/www/django/basket.mozilla.com/basket; /usr/bin/python26 manage.py unsubscribe firefox-home-instructions --conditional=ageutils.subscription_older_than_ten_days > /dev/null
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
There was an issue with lock file names, which I've fixed. Emails are currently being delayed, so marking this blocker so someone picks it up soon. 1) git pull 2) kick apache 3) kill any running cron jobs 4) delete any lock files thanks
Assignee: jeremy.orem+bugs → server-ops
Severity: normal → blocker
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: server-ops → thardcastle
Did each of those steps.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.