Closed Bug 709248 Opened 14 years ago Closed 14 years ago

[traceback] [prod] [dev] NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: tallOwen)

Details

(Whiteboard: [prod] [dev])

Hitting https://mozillians-dev.allizom.org/en-US/login, I get: Traceback (most recent call last): File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 150, in get_response response = callback(request, **param_dict) File "/data/www/mozillians-dev.allizom.org/mozillians/urls.py", line 21, in <lambda> handler404 = lambda r: error_page(r, 404) File "/data/www/mozillians-dev.allizom.org/mozillians/urls.py", line 18, in error_page return render(request, '%d.html' % template, status=(status or template)) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/shortcuts/__init__.py", line 44, in render return HttpResponse(loader.render_to_string(*args, **kwargs), File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/template/loader.py", line 176, in render_to_string return t.render(context_instance) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/jingo/jingo/__init__.py", line 166, in render return self.template.render(context_dict) File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/www/mozillians-dev.allizom.org/mozillians/templates/404.html", line 1, in top-level template code {% extends 'base.html' %} File "/data/www/mozillians-dev.allizom.org/mozillians/templates/base.html", line 105, in top-level template code {% block main_content %}{% endblock %} File "/data/www/mozillians-dev.allizom.org/mozillians/templates/404.html", line 22, in block "main_content" {% trans log_in_url=url('login'), join_url=url('register') %} File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/funfactory/funfactory/helpers.py", line 32, in url return reverse(viewname, args=args, kwargs=kwargs) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/funfactory/funfactory/urlresolvers.py", line 28, in reverse url = django_reverse(viewname, urlconf, args, kwargs, prefix) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/core/urlresolvers.py", line 452, in reverse *args, **kwargs))) File "/data/www/mozillians-dev.allizom.org/mozillians/vendor/src/django/django/core/urlresolvers.py", line 379, in reverse "arguments '%s' not found." % (lookup_view_s, args, kwargs)) NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.
(In reply to Stephen Donner [:stephend] from comment #0) Is /en-US/login/ from your awesome bar history, or browsing there? We can put a redirect to home, but /login isn't part of the app anymore. /en-US/favicon.ico - /favicon.ico should be handled by Apache AFAIK, not sure why this hits Django. Did this happen previously on mozillians-dev?
(In reply to Austin King [:ozten] from comment #2) > (In reply to Stephen Donner [:stephend] from comment #0) > > Is /en-US/login/ from your awesome bar history, or browsing there? > We can put a redirect to home, but /login isn't part of the app anymore. It appears to be from my awesomebar history, yeah. > > /en-US/favicon.ico - /favicon.ico should be handled by Apache AFAIK, not > sure why this hits Django. Did this happen previously on mozillians-dev? I don't know, but don't think so, otherwise we'd have seen tracebacks about it before.
(In reply to Austin King [:ozten] from comment #2) > (In reply to Stephen Donner [:stephend] from comment #0) > > Is /en-US/login/ from your awesome bar history, or browsing there? > We can put a redirect to home, but /login isn't part of the app anymore. Let's put a redirect in place then.
Summary: [traceback] NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found. → [traceback] [prod] [dev] NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.
Whiteboard: [prod] [dev]
mozillians.org/login is also a candidate for redirects as well. Causes the an identical traceback
and 'SCRIPT_URL': '/en-US/shareable/Thunderbird/add-ons/Mail-Tweak/about-config-Mail-Tweak.png',
Assignee: nobody → tofumatt
Target Milestone: --- → 1.3
Assignee: tofumatt → owen
We have some infinite redirecting issues going on. I've been able to reproduce it locally, I'll try to come up with a patch shortly.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Post-fix, I'm now getting: "The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete." That's not intended, right?
The server has been throwing 500 errors on every page since we did the migration. I am unable to verify weather this has been fixed or not until davedash resolves that. After we get the server back up I can make sure to verify that.
Verified FIXED, now that -dev is back up: [15:22:48.190] GET https://mozillians-dev.allizom.org/en-US/login [HTTP/1.1 301 MOVED PERMANENTLY 108ms] [15:22:48.332] GET https://mozillians-dev.allizom.org/en-US/ [HTTP/1.1 200 OK 614ms]
Status: RESOLVED → VERIFIED
Component: mozillians.org → Phonebook
Product: Websites → Community Tools
QA Contact: mozillians-org → phonebook
Target Milestone: 1.3 → ---
Version: unspecified → other
You need to log in before you can comment on or make changes to this bug.