wikipendium/wikipendium.no

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/​python​2.​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/​python​2.​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/​python​2.​7/​site-​packages/​django/​core/​handlers/​wsgi.​py",​ line 189,​ in _​_​call_​_​​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​core/​handlers/​base.​py",​ line 164,​ in get_​response​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​response.​py",​ line 158,​ in render​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​response.​py",​ line 135,​ in rendered_​content​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​backends/​django.​py",​ line 74,​ in render​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​base.​py",​ line 209,​ in render​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​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/​python​2.​7/​site-​packages/​django/​template/​base.​py",​ line 201,​ in _​render​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​base.​py",​ line 903,​ in render​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​base.​py",​ line 917,​ in render_​node​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​loader_​tags.​py",​ line 113,​ in render​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​loader_​tags.​py",​ line 110,​ in get_​parent​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​engine.​py",​ line 167,​ in get_​template​
File "/​home/​wikipendium-​web/​wikipendium.​no/​venv/​local/​lib/​python​2.​7/​site-​packages/​django/​template/​engine.​py",​ line 146,​ in find_​template​

Okay, so the error was probably introduced in either #306 or #368

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.