500 error when signing up
Closed this issue · 4 comments
Got a report from a user that after completing the signup form, the server responded with a 500 code.
Turns out the user was registered, but an error occured when rendering the template afterwards.
The stack trace was recorded at new relic, but we might not be getting notifcations from there automatically (that should be fixed).
django.template.base:TemplateDoesNotExist: registration/base.html
Traceback (most recent call last):
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/newrelic-2.54.0.41/newrelic/api/web_transaction.py", line 711, in __iter__
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/newrelic-2.54.0.41/newrelic/api/web_transaction.py", line 1087, in __call__
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/response.py", line 158, in render
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/base.py", line 209, in render
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/newrelic-2.54.0.41/newrelic/api/function_trace.py", line 98, in dynamic_wrapper
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/base.py", line 201, in _render
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/base.py", line 903, in render
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/base.py", line 917, in render_node
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 113, in render
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 110, in get_parent
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/engine.py", line 167, in get_template
File "/home/wikipendium-web/wikipendium.no/venv/local/lib/python2.7/site-packages/django/template/engine.py", line 146, in find_template
Seems the error was introduced with this commit (which added accounts/ urls back to the wikipendium/urls.py): b0e2076
That commit was merged on Aug 31 this year, which means we've had a broken signup confirmation since then.
which means we've had a broken signup confirmation since then.
That sucks, but people could still sign up, so it was just the confirmation that broke.
That sucks, but people could still sign up, so it was just the confirmation that broke.
That is correct. And now we should be getting emails when things crash again, which should prevent things like this going on unnoticed in the future.