CSSS / wall_e

CSSS Discord Bot (Wall-E)
GNU General Public License v3.0
19 stars 19 forks source link

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

Closed csss-admin closed 8 months ago

csss-admin commented 8 months ago
2024-01-15 22:06:30 = ERROR = Ban = [Reminders get_messages()] Ignoring exception when generating reminder:
2024-01-15 22:06:30 = ERROR = Ban = Traceback (most recent call last):

2024-01-15 22:06:30 = 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:06:30 = 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:06:30 = ERROR = Ban =   File "/usr/local/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
    return await fut

2024-01-15 22:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = 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:06:30 = ERROR = Ban = FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/zoneinfo/Canada/Pacific'
modernNeo commented 8 months ago

fixed with https://github.com/CSSS/wall_e/commit/5d81916aada77aeaf8978680992c8517fdc0b7cb