All users were logged out of Bugzilla on October 13th, 2018

Basket updates, Tues 7/20 @ anytime

RESOLVED FIXED

Status

--
blocker
RESOLVED FIXED
8 years ago
5 years ago

People

(Reporter: abuchanan, Assigned: chizu)

Tracking

Details

(Reporter)

Description

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

Comment 1

8 years ago
i'm okay pushing this whenever.
(Reporter)

Comment 2

8 years ago
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/

Updated

8 years ago
Assignee: server-ops → jeremy.orem+bugs
(Reporter)

Comment 3

8 years ago
Want to pick a time to do this today?  4pm?

Comment 4

8 years ago
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
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Reporter)

Comment 5

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

Updated

8 years ago
Assignee: server-ops → thardcastle
(Assignee)

Comment 6

8 years ago
Did each of those steps.
Status: REOPENED → RESOLVED
Last Resolved: 8 years ago8 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.