Cannot sign in MozTrap - HTTP/1.1 500 INTERNAL SERVER ERROR

RESOLVED WORKSFORME

Status

--
critical
RESOLVED WORKSFORME
4 years ago
3 years ago

People

(Reporter: whsu, Unassigned)

Tracking

Version 3

Details

Attachments

(2 attachments)

(Reporter)

Description

4 years ago
Created attachment 8598398 [details]
Moztrap - 500 ERROR.png

@ Description:
  Access "https://moztrap.mozilla.org/results/runs/" and try to login.
  Server responses HTTP Status Code - "500 Internal server error"
  As attachment (Moztrap - 500 ERROR.png)

@ Reproduction:
  1. Access "https://moztrap.mozilla.org/results/runs/"
  2. Click "Sign in" hyperlink at the top-right corner
  3. Sign in Moztrap service via Mozilla Persona.

@ Expected result:
 - User can sign in MozTrap

@ Actual result:
 - Server returns HTTP Status Code - "500 Internal server error"

@ Response Headers:
HTTP/1.1 500 INTERNAL SERVER ERROR
Server: Apache
Vary: Cookie
Vary: Accept-Encoding
X-Backend-Server: generic2.webapp.phx1.mozilla.com
Content-Type: text/html; charset=utf-8
strict-transport-security: max-age=86400
Date: Tue, 28 Apr 2015 02:43:31 GMT
Connection: close
x-frame-options: DENY
X-Cache-Info: not cacheable; request wasn't a GET or HEAD
Content-Length: 2771
(Reporter)

Updated

4 years ago
Severity: normal → critical
OS: Unspecified → Windows 7
Hardware: Unspecified → x86_64
Thanks for filing this, William.

https://rpm.newrelic.com/accounts/263620/applications/4786646/traced_errors/3698639922 is the New Relic entry:

Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/newrelic-2.18.1.15/newrelic/hooks/framework_django.py", line 492, in wrapper return wrapped(*args, **kwargs)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs)
File "/usr/lib64/python2.6/site-packages/newrelic-2.18.1.15/newrelic/hooks/framework_django.py", line 829, in wrapper return wrapped(*args, **kwargs)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django/views/generic/edit.py", line 171, in post return self.form_valid(form)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django_browserid/views.py", line 50, in form_valid audience=self.audience)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django/contrib/auth/__init__.py", line 49, in authenticate user = backend.authenticate(**credentials)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django_browserid/auth.py", line 74, in authenticate result = verify(assertion, audience)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django_browserid/base.py", line 127, in verify 'audience': audience
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/django_browserid/base.py", line 106, in _verify_http_request r = requests.post(url, **parameters)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/requests/api.py", line 98, in post return request('post', url, data=data, **kwargs)
File "/usr/lib64/python2.6/site-packages/newrelic-2.18.1.15/newrelic/api/external_trace.py", line 118, in dynamic_wrapper return wrapped(*args, **kwargs)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/requests/safe_mode.py", line 39, in wrapped return function(method, url, **kwargs)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/requests/api.py", line 51, in request return session.request(method=method, url=url, **kwargs)
File "/usr/lib64/python2.6/site-packages/newrelic-2.18.1.15/newrelic/api/external_trace.py", line 118, in dynamic_wrapper return wrapped(*args, **kwargs)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/requests/sessions.py", line 241, in request r.send(prefetch=prefetch)
File "/data/www/moztrap.allizom.org/moz-trap/requirements/vendor/lib/python/requests/models.py", line 631, in send raise ConnectionError(sockerr)
ConnectionError: [Errno -5] No address associated with hostname

This is when doing a POST to /browserid/browserid/verify/ from HTTP_REFERER	https://moztrap.allizom.org/users/login/
OS: Windows 7 → All
Hardware: x86_64 → All
12:00 AM <Osmose> stephend: I suspect it's because browserid.org is gone
12:00 AM <stephend> oh man, I didn't even check
12:00 AM <Osmose> https://github.com/mozilla/moztrap-vendor-lib/blob/master/lib/python/django_browserid/base.py#L24 unless they've customized it (which I'm checking) it's pointing to that
Restored browserid.org's a record. It was going to be replaced during an upgrade, but ended up only getting removed instead, at around 4pm PDT on 4/27/2015. I restored it to it's previous value.
(Reporter)

Comment 7

3 years ago
Great! Thanks for Stephen and Daniel's prompt help.
I can use my LDAP account to log in MozTrap now!

Close this bug.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.