missing timezone data causing upgrade script to break #9991
andy-shady-org
started this conversation in
General
Replies: 3 comments 1 reply
-
I've just been experiencing the same, although it's Asia/Hanoi that's causing the problem for me (consistently over two tries)
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Please see bug report #9986 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for this update, sorry for the duplication :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
zone data for Hanoi and Kyiv is causing the upgrade script to break:
python3 netbox/manage.py migrate
Traceback (most recent call last):
File "/usr/lib64/python3.9/zoneinfo/_common.py", line 12, in load_tzdata
return importlib.resources.open_binary(package_name, resource_name)
File "/usr/lib64/python3.9/importlib/resources.py", line 91, in open_binary
return reader.open_resource(resource)
File "", line 1055, in open_resource
FileNotFoundError: [Errno 2] No such file or directory: '/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/tzdata/zoneinfo/Europe/Kyiv'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/netbox-3.2.8/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/django/core/management/init.py", line 420, in execute
django.setup()
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/django/apps/config.py", line 228, in create
import_module(entry)
File "/usr/lib64/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/timezone_field/init.py", line 1, in
from timezone_field.fields import TimeZoneField
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/timezone_field/fields.py", line 11, in
class TimeZoneField(models.Field):
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/timezone_field/fields.py", line 41, in TimeZoneField
default_zoneinfo_tzs = [ZoneInfo(tz) for tz in pytz.common_timezones]
File "/opt/netbox-3.2.8/venv/lib64/python3.9/site-packages/timezone_field/fields.py", line 41, in
default_zoneinfo_tzs = [ZoneInfo(tz) for tz in pytz.common_timezones]
File "/usr/lib64/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key Europe/Kyiv'
Beta Was this translation helpful? Give feedback.
All reactions