Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2023 14:56:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 275376] net-mgmt/netbox -Error during initial migration of netbox config. Invalid STD format in b"<Local time zone must be set--use tzsetup>0"
Message-ID:  <bug-275376-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275376

            Bug ID: 275376
           Summary: net-mgmt/netbox -Error during initial migration of
                    netbox config. Invalid STD format in b"<Local time
                    zone must be set--use tzsetup>0"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kai@FreeBSD.org
          Reporter: admin@support.od.ua
          Assignee: kai@FreeBSD.org
             Flags: maintainer-feedback?(kai@FreeBSD.org)

net-mgmt/netbox - Error during initial migration of netbox config.
Invalid STD format in b'<Local time zone must be set--use tzsetup>0'

I install netbox according to the instructions
https://wiki.freebsd.org/Ports/net-mgmt/netbox#Finalizing_the_installation

I used different netbox configs - configuration_testing.py,
configuration_example.py

The error is the same.

# python3.9 manage.py migrate
Traceback (most recent call last):
  File "/usr/local/share/netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File
"/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py",
line 442, in execute_from_command_line
    utility.execute()
  File
"/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py",
line 416, in execute
    django.setup()
  File "/usr/local/lib/python3.9/site-packages/django/__init__.py", line 24=
, in
setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", li=
ne
116, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.9/site-packages/django/apps/config.py", line
269, in import_models
    self.models_module =3D import_module(models_module_name)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_remo=
ved
  File "/usr/local/share/netbox/circuits/models/__init__.py", line 1, in
<module>
    from .circuits import *
  File "/usr/local/share/netbox/circuits/models/circuits.py", line 7, in
<module>
    from dcim.models import CabledObjectModel
  File "/usr/local/share/netbox/dcim/models/__init__.py", line 7, in <modul=
e>
    from .sites import *
  File "/usr/local/share/netbox/dcim/models/sites.py", line 132, in <module>
    class Site(ContactsMixin, ImageAttachmentsMixin, PrimaryModel):
  File "/usr/local/share/netbox/dcim/models/sites.py", line 191, in Site
    time_zone =3D TimeZoneField(
  File "/usr/local/lib/python3.9/site-packages/timezone_field/fields.py", l=
ine
54, in __init__
    self.default_tzs =3D [self.tz_backend.to_tzobj(v) for v in
self.tz_backend.base_tzstrs]
  File "/usr/local/lib/python3.9/site-packages/timezone_field/fields.py", l=
ine
54, in <listcomp>
    self.default_tzs =3D [self.tz_backend.to_tzobj(v) for v in
self.tz_backend.base_tzstrs]
  File
"/usr/local/lib/python3.9/site-packages/timezone_field/backends/zoneinfo.py=
",
line 23, in to_tzobj
    return zoneinfo.ZoneInfo(tzstr)
ValueError: Invalid STD format in b'<Local time zone must be set--use
tzsetup>0'


# uname -a
FreeBSD core.domain.com 13.2-STABLE FreeBSD 13.2-STABLE 74614fa93
SUPPORT-13-2-0 amd64

I use zoneinfo Europe/Kyiv.

netbox-3.6.5                   IP address management tool
py39-Automat-20.2.0            Finite-state machines in Python
py39-Babel-2.13.0              Collection of tools for internationalizing
Python applications
py39-Jinja2-3.1.2              Fast and easy to use stand-alone template en=
gine
py39-acme-2.6.0,1              ACME protocol implementation in Python
py39-aniso8601-9.0.1           Library for parsing ISO 8601 strings
py39-appdirs-1.4.4             Python module for determining platform-speci=
fic
dirs
py39-asgiref-3.7.2_1           ASGI specs, helper code, and adapters
py39-async_timeout-4.0.3       Timeout context manager for asyncio programs
py39-attrs-23.1.0              Python attributes without boilerplate
py39-bcrypt-3.2.2              Modern password hashing for your software and
your servers
py39-bleach-6.1.0              Easy safelist-based HTML-sanitizing tool
py39-blinker-1.7.0             Fast, simple object-to-object and broadcast
signaling
py39-bottleneck-1.3.7_1        Collection of fast NumPy array functions wri=
tten
in Cython
py39-build-0.10.0_2            PEP517 package builder
py39-calver-2022.6.26_1        Setuptools extension for CalVer package vers=
ions
py39-certbot-2.6.0,1           Let's Encrypt client
py39-certifi-2023.7.22         Mozilla SSL certificates
py39-cffi-1.16.0               Foreign Function Interface for Python callin=
g C
code
py39-charset-normalizer-3.2.0  Real First Universal Charset Detector
py39-click-8.1.7               Python package for creating command line
interfaces
py39-colorama-0.4.5            Cross-platform API to print colored terminal
text from Python applications
py39-configargparse-1.5.3      Drop-in replacement for argparse
py39-configobj-5.0.8           Simple but powerful config file reader and
writer
py39-constantly-15.1.0         Provides symbolic constant support to Python
projects
py39-country-22.3.5            Python API for ISO country, subdivision,
language and currency
py39-cryptography-41.0.4,1     Cryptographic recipes and primitives for Pyt=
hon
developers
py39-cython-0.29.36            Compiler for Writing C Extensions for the Py=
thon
Language
py39-dateutil-2.8.2            Extensions to the standard Python datetime
module
py39-defusedxml-0.7.1          XML bomb protection for Python stdlib modules
py39-distro-1.8.0_2            Linux OS platform information API
py39-dj42-django-cors-headers-4.3.0 Handles server headers required for
Cross-Origin Resource Sharing
py39-dj42-django-debug-toolbar-4.2.0 Configurable set of panels to display
debug information
py39-dj42-django-filter-23.3   Dynamic filtering for querysets with Django
py39-dj42-django-graphiql-debug-toolbar-0.2.0 Django Debug Toolbar for Grap=
hiQL
IDE
py39-dj42-django-js-asset-2.1.0 Insert script tags with additional attribut=
es
for django.forms.Media
py39-dj42-django-mptt-0.14.0   Utilities for implementing Modified Preorder
Tree Traversal in Django
py39-dj42-django-prometheus-2.3.1 Export Django monitoring metrics for
Prometheus.io
py39-dj42-django-redis-5.4.0   Full featured Redis cache/session backend for
Django
py39-dj42-django-rich-1.8.0    Extensions for using Rich with Django
py39-dj42-django-rq-2.8.1      Provides Django integration for RQ (Redis Qu=
eue)
py39-dj42-django-tables2-2.6.0 Table/data-grid framework for Django
py39-dj42-django-taggit-4.0.0  Reusable Django application for simple taggi=
ng
py39-dj42-django-timezone-field-6.0.1 Provides database and form fields for
pytz timezone objects for Django
py39-dj42-djangorestframework-3.14.0 Django REST framework
py39-dj42-drf-spectacular-0.26.5 Sane/flexible OpenAPI 3 schema generation =
for
Django REST framework
py39-dj42-drf-spectacular-sidecar-2023.10.1 Serve self-contained Swagger
UI/Redoc distribution builds with Django
py39-dj42-graphene-django-3.0.0 Graphene Django integration
py39-django-pglocks-1.0.4      Provides useful context managers for advisory
locks for PostgreSQL
py39-django42-4.2.7            High-level Python Web Framework
py39-docstring-parser-0.15     Parse Python docstrings in ReST, Google and
Numpydoc format
py39-ecdsa-0.18.0_1            ECDSA cryptographic signature library (pure
python)
py39-editables-0.5             Editable installations
py39-et_xmlfile-1.1.0          Implementation of lxml.xmlfile for the stand=
ard
library
py39-feedparser-6.0.10         Universal feed parser written in Python
py39-flit-core-3.9.0           Distribution-building parts of Flit
py39-future-0.18.3             Clean single-source support for Python 3 and=
 2
py39-ghp-import-2.1.0          Copy your docs directly to the gh-pages bran=
ch
py39-gmpy2-2.1.5_1             GMP/MPIR, MPFR, and MPC interface to Python
py39-google-i18n-address-3.1.0 Build and validate addresses in localized
formats
py39-graphene-3.2.2            GraphQL Framework for Python
py39-graphql-core-3.2.3        GraphQL implementation for Python
py39-graphql-relay-3.2.0       Relay implementation for Python
py39-gunicorn-21.2.0_1         WSGI HTTP Server for UNIX
py39-h2-4.0.0                  HTTP/2 State-Machine based protocol
implementation
py39-hatch-vcs-0.3.0_2         Hatch plugin for versioning with your prefer=
red
VCS
py39-hatchling-1.18.0          Modern, extensible Python build backend
py39-hpack-4.0.0               HTTP/2 header encoding (HPACK) logic
implementation
py39-hyperframe-6.0.0          Python module that decodes binary streams in=
to
HTTP/2 frames
py39-hyperlink-21.0.0_1        Featureful, correct URL for Python
py39-idna-3.4_1                Internationalized Domain Names in Applicatio=
ns
(IDNA)
py39-importlib-metadata-6.8.0  Read metadata from Python packages
py39-incremental-21.3.0        Library that versions your Python projects
py39-inflection-0.5.1          Ruby on Rails' inflector ported to Python
py39-installer-0.7.0           Library for installing Python wheels
py39-intervaltree-3.1.0        Editable interval tree data structure for Py=
thon
2 and 3
py39-isodate-0.6.1             ISO 8601 date/time/duration parser and forma=
ter
py39-josepy-1.13.0             JOSE protocol implementation in Python
py39-jsonschema-4.20.0         JSON Schema validation for Python
py39-jsonschema-specifications-2023.6.1 JSON Schema meta-schemas and
vocabularies, exposed as a Registry
py39-junos-eznc-2.6.4          Junos easy automation for non-programmers
py39-lxml-4.9.3                Pythonic binding for the libxml2 and libxslt
libraries
py39-markdown-3.3.7_1          Python implementation of Markdown
py39-markdown-callouts-0.3.0   Markdown extension: Classier syntax for
admonitions
py39-markdown-it-py-3.0.0      Python port of markdown-it
py39-markuppy-1.14             HTML/XML generator
py39-markupsafe-2.1.3          Implements XML/HTML/XHTML Markup safe string=
 for
Python
py39-mdurl-0.1.2_2             Markdown URL utilities
py39-mergedeep-1.3.4           Deep merge function for Python
py39-mkdocs-1.5.3              Project documentation with Markdown
py39-mkdocs-autorefs-0.5.0     Automatically link across pages in MkDocs
py39-mkdocs-material-9.4.8     Material Design theme for MkDocs
py39-mkdocs-material-extensions-1.3 Markdown extension resources for MkDocs=
 for
Material
py39-mkdocstrings-0.24.0       Automatic documentation from sources for MkD=
ocs
py39-mkdocstrings-crystal-0.3.7 Crystal language doc generator for mkdocstr=
ings
py39-mkdocstrings-python-legacy-0.2.3 Legacy Python handler for mkdocstrings
py39-napalm-4.1.0              Net Automation and Progr. Abstraction Layer =
with
Multivendor support
py39-ncclient-0.6.13           Python library for NETCONF clients
py39-netaddr-0.9.0             Manipulation of IPv4, IPv6, CIDR, EUI and MAC
network addresses
py39-netmiko-4.3.0             Multi-vendor library to simplify SSH connect=
ions
to network devices
py39-netutils-1.6.0            Common helper functions useful in network
automation
py39-ntc-templates-4.0.1       TextFSM Templates for Network Devices
py39-numexpr-2.8.7             Fast numerical array expression evaluator for
Python and NumPy
py39-numpy-1.25.0_2,1          The New Numeric Extension to Python
py39-oauthlib-3.2.2            Generic, spec-compliant, thorough implementa=
tion
of the OAuth request-signing logic
py39-odfpy-1.4.1_2             Python API and Tools to Manipulate OpenDocum=
ent
Files
py39-olefile-0.46              Python module to read MS OLE2 files
py39-openpyxl-3.1.1            Python library to read/write Excel 2007
xlsx/xlsm files
py39-openssl-23.2.0,1          Python interface to the OpenSSL library
py39-packaging-23.2            Core utilities for Python packages
py39-paginate-0.5.6            Divides large result sets into pages for eas=
ier
browsing
py39-pandas-2.0.3,1            Flexible, high-performance data analysis in
Python
py39-paramiko-2.11.0_1         Python SSH2 protocol library
py39-parsedatetime-2.6         Python module for parsing 'human readable'
date/time expressions
py39-pathspec-0.11.2           Utility library for pattern matching of file
paths
py39-pillow-10.1.0             Fork of the Python Imaging Library (PIL)
py39-platformdirs-3.11.0       Python module for determining appropriate
platform-specific dirs
py39-pluggy-1.3.0              Plugin and hook calling mechanisms for Python
py39-priority1-1.3.0           Pure-Python implementation of the HTTP/2
priority tree
py39-prometheus-client-0.17.1  Official Python client for Prometheus
py39-promise-2.3               Promises/A+ implementation for Python
py39-psycopg-3.1.12            PostgreSQL database adapter for Python
py39-psycopg-c-3.1.12          PostgreSQL database adapter for Python - C
optimization distribution
py39-psycopg-pool-3.2.0        Connection Pool for Psycopg
py39-pyasn1-0.5.0              ASN.1 toolkit for Python
py39-pyasn1-modules-0.3.0      Collection of ASN.1 data structures for
py-pyasn1
py39-pycparser-2.21            C parser in Python
py39-pycryptodome-3.19.0       Cryptographic library for Python
py39-pyeapi-1.0.2              Python client for Arista eAPI
py39-pygments-2.17.2           Syntax highlighter written in Python
py39-pyjwt-2.8.0               JSON Web Token implementation in Python
py39-pymdown-extensions-10.4   Extension pack for Python Markdown
py39-pynacl-1.5.0              Python binding to the Networking and
Cryptography library
py39-pyparsing-3.1.1           General parsing module for Python
py39-pyproject_hooks-1.0.0_2   Wrappers to call pyproject.toml-based build
backend hooks
py39-pyrfc3339-1.1             Generate and parse RFC 3339 timestamps
py39-pyserial-3.5_2            Serial port encapsulation library for Python
py39-pysocks-1.7.1             Python SOCKS module
py39-python-jose-3.3.0_1       Client SDK for TIP API which require
Authentication Tokens
py39-python3-openid-3.2.0_1    Python 3 port of the python-openid library
py39-python3-saml-1.16.0       Add SAML support to your Python software
py39-pytkdocs-0.16.1           Load Python objects documentation
py39-pytz-2023.3,1             World Timezone Definitions for Python
py39-pyyaml_env_tag-0.1        Custom YAML tag for referencing environment
variables in YAML files
py39-redis-5.0.1               Python client for Redis key-value store
py39-referencing-0.30.2        JSON Referencing + Python
py39-regex-2022.9.13           Alternative regular expression module, to
replace re
py39-requests-2.31.0           Python HTTP for Humans
py39-requests-oauthlib-1.3.1   OAuthlib authentication support for Requests
py39-requests-toolbelt-1.0.0   Utility belt for advanced users of
python-requests
py39-rich-13.7.0               Rich text and beautiful formatting in the
terminal
py39-rpds-py-0.12.0            Python bindings to Rust persistent data
structures (rpds)
py39-rq-1.11.1                 Simple library for creating background jobs,=
 and
processing them
py39-rsa-4.9                   Pure-Python RSA implementation
py39-scp-0.14.4                Scp module for paramiko
py39-sentry-sdk-1.21.1         Client for Sentry
py39-service_identity-18.1.0   Service identity verification for pyOpenSSL
py39-setproctitle-1.3.2        Python module to customize the process title
py39-setuptools-63.1.0_1       Python packages installer
py39-setuptools_scm-6.4.2      Setuptools plugin to manage your versions by=
 scm
tags
py39-sgmllib3k-1.0.0           Python 3 port of sgmllib
py39-six-1.16.0                Python 2 and 3 compatibility utilities
py39-social-auth-app-django-5.4.0 Social Authentication and Django integrat=
ion
py39-social-auth-core-4.4.2    Social authentication/registration mechanism=
 for
several frameworks
py39-sortedcontainers-2.4.0    Python Sorted Container Types: SortedList,
SortedDict, and SortedSet
py39-sqlite3-3.9.18_7          Standard Python binding to the SQLite3 libra=
ry
(Python 3.9)
py39-sqlparse-0.4.4            Non-validating SQL parser for Python
py39-svgwrite-1.4.3            Python library to create SVG drawings
py39-sysctl-0.3.3.20210928     Wrapper for the sysctl system functions
py39-tablib-3.5.0              Format agnostic tabular data library (XLS, J=
SON,
YAML, CSV)
py39-tabulate-0.8.9            Pretty-print tabular data in Python
py39-text-unidecode-1.3        Most basic port of Perl's Text::Unidecode mo=
dule
py39-textfsm-1.1.3_1           Parses semi-structured text into Python tabl=
es
py39-tinycss2-1.2.1_2          Low-level CSS parser for Python
py39-tkinter-3.9.18_7          Python bindings to the Tk widget set (Python
3.9)
py39-tomli-2.0.1_2             Lil' TOML parser
py39-transitions-0.8.8         Lightweight, object-oriented Python state
machine implementation
py39-trove-classifiers-2023.9.19 Canonical source for classifiers on PyPI
py39-ttp-0.9.5                 Template Text Parser
py39-ttp-templates-0.3.5       Template Text Parser templates collections
py39-twisted-23.8.0            Asynchronous networking framework written in
Python
py39-typing-extensions-4.8.0   Backported and Experimental Type Hints for
Python 3.5+
py39-tzdata-2023.3_1           Provider of IANA time zone data
py39-uritemplate-3.0.1         Python implementation of URI Template
py39-urllib3-1.26.16_1,1       HTTP library with thread-safe connection
pooling, file post, and more
py39-watchdog-3.0.0            Python API library to monitor file system ev=
ents
py39-wcwidth-0.2.6             Determine the printable width of the terminal
py39-webencodings-0.5.1        Character encoding aliases for legacy web
content
py39-wheel-0.41.2              Built-package format for Python
py39-xlrd-2.0.1                Reading data and formatting information from
Excel files
py39-xlwt-1.3.0                Writing data and formatting information from
Excel files
py39-xml2rfc-3.18.1            Tool to create RFCs and related documents fr=
om
XML
py39-xmlsec-1.3.13_1           Python bindings for XML Security Library
py39-yaml-6.0                  Python YAML parser
py39-yamlordereddictloader-0.4.0 Loader and a dumper for PyYAML allowing to
keep items order
py39-zipp-3.17.0               Backport of pathlib-compatible object wrapper
for zip files
py39-zope.interface-5.3.0      Interfaces for Python

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275376-7788>