linuxserver / docker-healthchecks

GNU General Public License v3.0
177 stars 37 forks source link

Cannot open details: ZoneInfoNotFoundError at `/checks/<guid>/details/` #108

Closed abobija closed 1 year ago

abobija commented 1 year ago

Is there an existing issue for this?

Current Behavior

Cannot open details of the check when clicking on check's far-left three dots.

I have opened an issue on the official healthchecks repo as well, there you can see Traceback of the exception.

Expected Behavior

Details should be open but Server Error 500 has returned.

Steps To Reproduce

  1. Use linuxserver/healthchecks:latest image
  2. Create check
  3. Try to open details by clicking on the far-left three dots of one of the checks

Environment

CPU architecture

x86-64

Docker creation

docker-compose.yml

  healthchecks:
    container_name: healthchecks
    depends_on:
      healthchecks-mysql:
        condition: service_healthy
    environment:
      DB: mysql
      DB_HOST: healthchecks-mysql
      DB_NAME: hc
      DB_PASSWORD: ...
      DB_PORT: 3306
      DB_USER: hc
      DEFAULT_FROM_EMAIL: ...
      DISCORD_CLIENT_ID: '123456789'
      DISCORD_CLIENT_SECRET: ...
      EMAIL_HOST: ...
      EMAIL_HOST_PASSWORD: ...
      EMAIL_HOST_USER: ...
      EMAIL_PORT: '587'
      EMAIL_USE_TLS: "True"
      PGID: '1000'
      PUID: '1000'
      SECRET_KEY: ...
      SITE_NAME: Alija Bobija's Healthchecks
      SITE_ROOT: ...
      SUPERUSER_EMAIL: ...
      SUPERUSER_PASSWORD: ...
      TZ: Europe/Sarajevo
    image: linuxserver/healthchecks:latest
    networks:
      abnet:
        ipv4_address: 172.24.0.104
    restart: unless-stopped
    volumes:
      - /.../healthchecks/config:/config:rw
  healthchecks-mysql:
    container_name: healthchecks-mysql
    environment:
      MYSQL_DATABASE: hc
      MYSQL_PASSWORD: ...
      MYSQL_ROOT_PASSWORD: ...
      MYSQL_USER: hc
      PGID: '1000'
      PUID: '1000'
      TZ: Europe/Sarajevo
    healthcheck:
      interval: 10s
      retries: 3
      start_period: 3s
      test: mysql --database="$$MYSQL_DATABASE" --host=localhost --user="$$MYSQL_USER"
        --password="$$MYSQL_PASSWORD" --execute="use $$MYSQL_DATABASE"
      timeout: 5s
    image: linuxserver/mariadb:alpine
    networks:
      - abnet
    restart: unless-stopped
    volumes:
      - /.../healthchecks-mysql/config:/config:rw

Container logs

docker-compose logs --tail 400 healthchecks
Attaching to healthchecks
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] throttling "python3 ./manage.py sendreports --loop" for 300 seconds
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] throttling "python3 ./manage.py sendreports --loop" for 300 seconds
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] throttling "python3 ./manage.py sendreports --loop" for 300 seconds
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
healthchecks          | [uwsgi-daemons] respawning "python3 ./manage.py sendreports --loop" (uid: 1000 gid: 1000)
healthchecks          | sendreports is now running
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 12, in load_tzdata
healthchecks          |     return resources.files(package_name).joinpath(resource_name).open("rb")
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
healthchecks          |     return from_package(get_package(package))
healthchecks          |                         ^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 53, in get_package
healthchecks          |     resolved = resolve(package)
healthchecks          |                ^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/resources/_common.py", line 44, in resolve
healthchecks          |     return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
healthchecks          |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
healthchecks          |     return _bootstrap._gcd_import(name[level:], package, level)
healthchecks          |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
healthchecks          |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
healthchecks          |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
healthchecks          |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
healthchecks          |   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
healthchecks          | ModuleNotFoundError: No module named 'tzdata'
healthchecks          |
healthchecks          | During handling of the above exception, another exception occurred:
healthchecks          |
healthchecks          | Traceback (most recent call last):
healthchecks          |   File "/app/healthchecks/./manage.py", line 17, in <module>
healthchecks          |     raise e
healthchecks          |   File "/app/healthchecks/./manage.py", line 13, in <module>
healthchecks          |     execute_from_command_line(sys.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
healthchecks          |     utility.execute()
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
healthchecks          |     self.fetch_command(subcommand).run_from_argv(self.argv)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
healthchecks          |     self.execute(*args, **cmd_options)
healthchecks          |   File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
healthchecks          |     output = self.handle(*args, **options)
healthchecks          |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 110, in handle
healthchecks          |     while not self.shutdown and self.handle_one_report():
healthchecks          |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/api/management/commands/sendreports.py", line 56, in handle_one_report
healthchecks          |     qq.update(next_report_date=profile.choose_next_report_date())
healthchecks          |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
healthchecks          |   File "/app/healthchecks/hc/accounts/models.py", line 331, in choose_next_report_date
healthchecks          |     dt = now().astimezone(ZoneInfo(self.tz))
healthchecks          |                           ^^^^^^^^^^^^^^^^^
healthchecks          |   File "/usr/lib/python3.11/zoneinfo/_common.py", line 24, in load_tzdata
healthchecks          |     raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
healthchecks          | zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC+1'
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

abobija commented 1 year ago

The issue is not related to the container and this project but to the user data in the healthchecks database and application itself.

If you are interested in what actually happened, here is the link.