Technical exception page/emails crash when the database is down
|Patch needs improvement:
Description (last modified by )
The technical 500 debug view and admin email shows the currently logged in user.
However, if the database is shutting down or is unavailable, anything that involves the ORM raises
request.user into a string in the template rendering will cause and exception which will cause the rendering to crash. Crashes in the error reporting itself cause hard to debug problem which can be hard to follow (especially for beginners).
I propose that we should catch exceptions when retrieving the user details and state that the user could not be shown while still showing everything else.
Change History (5)
comment:3 by , 7 years ago
|Normal → Release blocker
|Avoid crashes in tecnical exception page/emails when the database is down → Technical exception page/emails crash when the database is down
|master → 1.10