CSSS/wall_e

Ban = FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/zoneinfo/Canada/Pacific'

Closed this issue · 1 comments

2024-01-15 22:09:03 = ERROR = Ban = [Reminders get_messages()] Ignoring exception when generating reminder:
2024-01-15 22:09:03 = ERROR = Ban = Traceback (most recent call last):

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/src/app/extensions/ban.py", line 716, in purge_messages_task
    await BanRecord.marked_user_as_purged(un_purged_ban_record.ban_id)

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 444, in __call__
    ret = await asyncio.wait_for(future, timeout=None)

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
    return await fut

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/asgiref/sync.py", line 486, in thread_handler
    return func(*args, **kwargs)

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/wall_e_models/models.py", line 117, in marked_user_as_purged
    record_obj.save()

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 739, in save
    self.save_base(using=using, force_insert=force_insert,

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 776, in save_base
    updated = self._save_table(

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 855, in _save_table
    values = [(f, None, (getattr(self, f.attname) if raw else f.pre_save(self, False)))

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 855, in <listcomp>
    values = [(f, None, (getattr(self, f.attname) if raw else f.pre_save(self, False)))

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/wall_e_models/customFields.py", line 188, in pre_save
    elif date.tzinfo == tzfile('/usr/share/zoneinfo/Canada/Pacific'):

2024-01-15 22:09:03 = ERROR = Ban =   File "/usr/local/lib/python3.8/site-packages/dateutil/tz/tz.py", line 464, in __init__
    fileobj = open(fileobj, 'rb')

2024-01-15 22:09:03 = ERROR = Ban = FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/zoneinfo/Canada/Pacific'


fixed with 5d81916