mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #283] Server Error (500) #213
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mzch on GitHub (Sep 3, 2019).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/283
Hi,
in local_settings.py when set DEBUG = False, healthchecks works well, but when DEBUG = True, only the error message shows 'Server Error (500). How can I fix this issue?
HealthCheck: 1.9.0
Python: 3.7.4
MariaDB: 10.3.15-MariaDB
OS: Debian GNU/Linux 10 (Buster)
@cuu508 commented on GitHub (Sep 3, 2019):
To diagnose this, we need to know the error details. When DEBUG is False, Django sends tracebacks to email addresses listed in the ADMINS setting. Try putting your name and address there and see if you get an email with more details. You may also need to fix the SERVER_EMAIL setting.
Alternatively, you can tweak Django's logging to print error details to console even with DEBUG=False. Details here: https://www.agiliq.com/blog/2017/12/configure-django-log-exceptions-production/
@mzch commented on GitHub (Sep 4, 2019):
Thanks for your reply. I added ADMIN to local_settings and the error report said 'You may need python manage.py compress'. When I did it, everything went well. :) Please add the step to README.md.
@cuu508 commented on GitHub (Sep 4, 2019):
Thanks, good idea – I've updated README with a "Running in Production" section. Some parts of it probably need to be expanded, but it's a start.
@mzch commented on GitHub (Sep 4, 2019):
Great! Thanks, @cuu508 !