If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[Peekaboo] Login stopped working after switching off DEBUG

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: IT-Managed Tools
--
major
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: peterbe, Assigned: jd)

Tracking

Details

(Whiteboard: [kanban:webops:https://kanbanize.com/ctrl_board/4/1842] , URL)

(Reporter)

Description

3 years ago
We need to have `BROWSERID_AUDIENCES` set. This used to be called `SITE_URLS`. 

In settings/local.py, if we already have `SITE_URLS` set up, this needs to be changed to BROWSERID_AUDIENCES
(Reporter)

Comment 1

3 years ago
This is actively blocking the offices from logging in to their Peekabook kiosks. 

Can I assign this to you :jd?
Severity: normal → major
Flags: needinfo?(jcrowe)

Updated

3 years ago
Whiteboard: [kanban:webops:https://kanbanize.com/ctrl_board/4/1842]
(Reporter)

Updated

3 years ago
(Reporter)

Comment 2

3 years ago
Apparently JD is heading to the airport right now. 

Anybody else ready to work on it?
Flags: needinfo?(jcrowe)
(Assignee)

Comment 3

3 years ago
ZOMG airport wifi is so slow. I updated that setting on stage and prod and restarted apache.

Let me know if this fixes your issue?
Assignee: server-ops-webops → jcrowe
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

3 years ago
I can log out and log in to peekabook.allizom.org but not on prod peekaboo.mozilla.org

I get:
https://errormill.mozilla.org/webtools/peekaboo-prod/group/174129/
which is::
ImproperlyConfigured: No audience could be found in BROWSERID_AUDIENCES for host `https://peekaboo.mozilla.org`.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 5

3 years ago
On prod I set:
BROWSERID_AUDIENCES = 'https://peekaboo.mozilla.org',

On stage I set:
BROWSERID_AUDIENCES = 'https://peekaboo.allizom.org',

I have no idea what would cause the error since what I did on both was the same. Any clue where I should look or what that error means?
(Reporter)

Comment 6

3 years ago
(In reply to Jason Crowe [:jd] from comment #5)
> On prod I set:
> BROWSERID_AUDIENCES = 'https://peekaboo.mozilla.org',
> 
> On stage I set:
> BROWSERID_AUDIENCES = 'https://peekaboo.allizom.org',
> 
> I have no idea what would cause the error since what I did on both was the
> same. Any clue where I should look or what that error means?

Are you sure there's a comma at the end of both lines?
The setting needs to be a tuple or a list (which they are if you copied in verbatim).

This is what I have on my local development settings/local.py::

  DEBUG = DEBUG_TEMPLATE = False
  BROWSERID_AUDIENCES = 'http://peekaboo',

And that works fine. 


> On prod I set:
> BROWSERID_AUDIENCES = 'https://peekaboo.mozilla.org',
> 
> On stage I set:
BROWSERID_AUDIENCES = 'https://peekaboo.allizom.org',
(Assignee)

Comment 7

3 years ago
Oh, yea, the coma was not on prod, I added it and restarted, can you try again?
(Reporter)

Comment 8

3 years ago
Yay! I can log in again. Thank you Jason! You're a rock!
Status: REOPENED → RESOLVED
Last Resolved: 3 years ago3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.