tzdata error when upgrading from 3.1.8 to 3.1.9 #6179

Closed
opened 2025-12-29 19:37:46 +01:00 by adam · 5 comments
Owner

Originally created by @abrahamvegh on GitHub (Mar 7, 2022).

NetBox version

3.1.8

Python version

3.9

Steps to Reproduce

I appear to have hit the same problem as #8683, but not involving any beta.

Expected Behavior

Upgrade succeeds.

Observed Behavior

Upgrade fails. 😥

Originally created by @abrahamvegh on GitHub (Mar 7, 2022). ### NetBox version 3.1.8 ### Python version 3.9 ### Steps to Reproduce I appear to have hit the same problem as #8683, but not involving any beta. ### Expected Behavior Upgrade succeeds. ### Observed Behavior Upgrade fails. 😥
adam added the type: bugstatus: accepted labels 2025-12-29 19:37:46 +01:00
adam closed this issue 2025-12-29 19:37:46 +01:00
Author
Owner

@abrahamvegh commented on GitHub (Mar 7, 2022):

I added tzdata to my local_requirements.txt, re-ran upgrade.sh, and then everything worked fine, but others may hit this too.

@abrahamvegh commented on GitHub (Mar 7, 2022): I added `tzdata` to my `local_requirements.txt`, re-ran `upgrade.sh`, and then everything worked fine, but others may hit this too.
Author
Owner

@sim0nx commented on GitHub (Mar 7, 2022):

I am experiencing the exact same issue and applied the same workaround which did the trick.

@sim0nx commented on GitHub (Mar 7, 2022): I am experiencing the exact same issue and applied the same workaround which did the trick.
Author
Owner

@awfki commented on GitHub (Mar 7, 2022):

Same. I added to tzdata to local_requirements.txt but not smart enough to remember how to make it install from that (I think re-run upgrade.sh) so I did pip3 install tzdata and it's working now. I was in the venv first (source /opt/netbox/venv/bin/activate).

@awfki commented on GitHub (Mar 7, 2022): Same. I added to `tzdata` to `local_requirements.txt` but not smart enough to remember how to make it install from that (I think re-run upgrade.sh) so I did `pip3 install tzdata` and it's working now. I was in the venv first (`source /opt/netbox/venv/bin/activate`).
Author
Owner

@jeremystretch commented on GitHub (Mar 7, 2022):

I'm just going to repackage the release to include tzdata as a dependency. It seems to fail on systems which don't include local timezone data. I'm not sure why django-timezone-field doesn't just pull it in anyway.

@jeremystretch commented on GitHub (Mar 7, 2022): I'm just going to repackage the release to include `tzdata` as a dependency. It seems to fail on systems which don't include local timezone data. I'm not sure why `django-timezone-field` doesn't just pull it in anyway.
Author
Owner

@jeremystretch commented on GitHub (Mar 7, 2022):

Ok, the release should be fixed for future installations from this point forward. Thanks for the quick report!

@jeremystretch commented on GitHub (Mar 7, 2022): Ok, the release should be fixed for future installations from this point forward. Thanks for the quick report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6179