healthchecks: Healthchecks is not working after update
Hi! I recently updated HC to version 2.10 And after update, I can reach main menu with projects, but I can’t reach project. After I’m clicking on project, everything I have is “This page is not working”. In logs, one error that I have is:
ValueError: The ADMINS setting must be a list of 2-tuples.
File "/usr/lib/python3.11/logging/__init__.py", line 1518, in error
getattr(logger, level)(
raise ValueError("The ADMINS setting must be a list of 2-tuples.")
File "/lsiopy/lib/python3.11/site-packages/django/core/mail/__init__.py", line 124, in mail_admins
File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 131, in send_mail
mail.mail_admins(
self.send_mail(subject, message, fail_silently=True, html_message=html_message)
File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 128, in emit
self.emit(record)
File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle
hdlr.handle(record)
File "/usr/lib/python3.11/logging/__init__.py", line 1706, in callHandlers
self.callHandlers(record)
File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle
self.handle(record)
self._log(ERROR, msg, args, **kwargs)
File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log
log_response(
File "/lsiopy/lib/python3.11/site-packages/django/utils/log.py", line 241, in log_response
File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 143, in response_for_exception
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/exception.py", line 57, in inner
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
response = response_for_exception(request, exc)
response = self._middleware_chain(request)
File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/base.py", line 140, in get_response
response = self.get_response(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "/lsiopy/lib/python3.11/site-packages/django/core/handlers/wsgi.py", line 124, in __call__
Could you please help me with that?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (11 by maintainers)
Done, found the problem, it was related to quotes. I had
SECRET_KEY='randomsafetystring'I changed toSECRET_KEY=randomsafetystringAnd now in python shell I see the same key that I set in env section. So for now all problems are solved.Thank you very much for your help! I really appreciate your support.
You can check what SECRET_KEY value the python code sees like so:
It should show the same value you specified in
docker-compose.yml. If it shows anything different, your task is to debug where and why your SECRET_KEY value is lost.Database runs in container, but without docker compose. Like if I replace docker-compose.yml file of HC, it will not affect DB. So I will give it a try and get back to you if I would have any problems further.