Cannot upgrade to 4.0.1 #9652

Closed
opened 2025-12-29 21:20:24 +01:00 by adam · 10 comments
Owner

Originally created by @deanfourie1 on GitHub (May 11, 2024).

Deployment Type

Self-hosted

NetBox Version

v4.0.1

Python Version

3.11

Steps to Reproduce

Upgrade from v3.7.7

Error when upgrading via upgrade.sh

Expected Behavior

Version 4.0.1 to be installed.

Observed Behavior

pplying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
  File "/opt/netbox/netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 103, in wrapper
    saved_locale = translation.get_language()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/translation/__init__.py", line 210, in get_language
    return _trans.get_language()
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/translation/__init__.py", line 65, in __getattr__
    if settings.USE_I18N:
       ^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__
    self._setup(name)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup
    self._wrapped = Settings(settings_module)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/netbox/netbox/netbox/settings.py", line 801, in <module>
    plugin_config.validate(PLUGINS_CONFIG[plugin_name], VERSION)
  File "/opt/netbox/netbox/netbox/plugins/__init__.py", line 135, in validate
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Plugin netbox_dns requires NetBox minimum version 4.0.0.
root@netbox-local:/opt/netbox#
Originally created by @deanfourie1 on GitHub (May 11, 2024). ### Deployment Type Self-hosted ### NetBox Version v4.0.1 ### Python Version 3.11 ### Steps to Reproduce Upgrade from v3.7.7 Error when upgrading via upgrade.sh ### Expected Behavior Version 4.0.1 to be installed. ### Observed Behavior ``` pplying database migrations (python3 netbox/manage.py migrate)... Traceback (most recent call last): File "/opt/netbox/netbox/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line utility.execute() File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv self.execute(*args, **cmd_options) File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute output = self.handle(*args, **options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 103, in wrapper saved_locale = translation.get_language() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/translation/__init__.py", line 210, in get_language return _trans.get_language() ^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/utils/translation/__init__.py", line 65, in __getattr__ if settings.USE_I18N: ^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 102, in __getattr__ self._setup(name) File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 89, in _setup self._wrapped = Settings(settings_module) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 217, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/opt/netbox/netbox/netbox/settings.py", line 801, in <module> plugin_config.validate(PLUGINS_CONFIG[plugin_name], VERSION) File "/opt/netbox/netbox/netbox/plugins/__init__.py", line 135, in validate raise ImproperlyConfigured( django.core.exceptions.ImproperlyConfigured: Plugin netbox_dns requires NetBox minimum version 4.0.0. root@netbox-local:/opt/netbox# ```
adam closed this issue 2025-12-29 21:20:24 +01:00
Author
Owner

@markkuleinio commented on GitHub (May 11, 2024):

When running upgrade.sh, does it show that you are installing 4.0.1? Line numbers suggest that you are still having some other NetBox version.

@markkuleinio commented on GitHub (May 11, 2024): When running `upgrade.sh`, does it show that you are installing 4.0.1? Line numbers suggest that you are still having some other NetBox version.
Author
Owner

@deanfourie1 commented on GitHub (May 11, 2024):

I dont really see anywhere that it reports the version, but i did clone git with the master branch, then ran ran the upgrade script too.

I did resolve this by removing all my plugins from the configuration.py. Then running the upgrade script.

Is 4.0.1 not compatible with the plugins?

@deanfourie1 commented on GitHub (May 11, 2024): I dont really see anywhere that it reports the version, but i did clone git with the master branch, then ran ran the upgrade script too. I did resolve this by removing all my plugins from the configuration.py. Then running the upgrade script. Is 4.0.1 not compatible with the plugins?
Author
Owner

@markkuleinio commented on GitHub (May 11, 2024):

The first output line of upgrade.sh shows the NetBox version.

@markkuleinio commented on GitHub (May 11, 2024): The first output line of `upgrade.sh` shows the NetBox version.
Author
Owner

@Daniel-Dietz commented on GitHub (May 11, 2024):

Have you tried disabling the netbox_dns pkugin?

django.core.exceptions.ImproperlyConfigured: Plugin netbox_dns requires NetBox minimum version 4.0.0.

Please also check the plugin you have installed:
https://github.com/auroraresearchlab/netbox-dns/issues/300

@Daniel-Dietz commented on GitHub (May 11, 2024): Have you tried disabling the netbox_dns pkugin? `django.core.exceptions.ImproperlyConfigured: Plugin netbox_dns requires NetBox minimum version 4.0.0.` Please also check the plugin you have installed: https://github.com/auroraresearchlab/netbox-dns/issues/300
Author
Owner

@uppsju commented on GitHub (May 13, 2024):

just a sidenote here, I believe the plugin netbox_dns is no longer actively maintained, so perhaps some planning is needed to migrate to netbox-plugin-dns

@uppsju commented on GitHub (May 13, 2024): just a sidenote here, I believe the plugin netbox_dns is no longer actively maintained, so perhaps some planning is needed to migrate to netbox-plugin-dns
Author
Owner

@deanfourie1 commented on GitHub (May 13, 2024):

The only way I got a successful upgrade was to disable all plugins. I also tried enabling one at a time in local_requirements.txt and configuration.py but everytime I did, migrations failed.

I guess this makes sense as the plugins will need to be updates to be compatible with v4?

@deanfourie1 commented on GitHub (May 13, 2024): The only way I got a successful upgrade was to disable all plugins. I also tried enabling one at a time in local_requirements.txt and configuration.py but everytime I did, migrations failed. I guess this makes sense as the plugins will need to be updates to be compatible with v4?
Author
Owner

@jorblad commented on GitHub (May 13, 2024):

I have a simliar problem even if my error is a bit different and even after deactivating all plugins I get this

You are installing (or upgrading to) NetBox version 4.0.1
Using Python 3.11.2
Removing old virtual environment...
Creating a new virtual environment at /opt/netbox/venv...
Updating pip (pip install --upgrade pip)...
Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (23.0.1)
Collecting pip
  Using cached pip-24.0-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-24.0
pip 24.0 from /opt/netbox/venv/lib/python3.11/site-packages/pip (python 3.11)
Installing Python system packages (pip install wheel)...
Collecting wheel
  Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
Installing collected packages: wheel
Successfully installed wheel-0.43.0
Installing core dependencies (pip install -r requirements.txt)...
Collecting Django==5.0.6 (from -r requirements.txt (line 1))
  Using cached Django-5.0.6-py3-none-any.whl.metadata (4.1 kB)
Collecting django-cors-headers==4.3.1 (from -r requirements.txt (line 2))
  Using cached django_cors_headers-4.3.1-py3-none-any.whl.metadata (16 kB)
Collecting django-debug-toolbar==4.3.0 (from -r requirements.txt (line 3))
  Using cached django_debug_toolbar-4.3.0-py3-none-any.whl.metadata (4.0 kB)
Collecting django-filter==24.2 (from -r requirements.txt (line 4))
  Using cached django_filter-24.2-py3-none-any.whl.metadata (5.1 kB)
Collecting django-htmx==1.17.3 (from -r requirements.txt (line 5))
  Using cached django_htmx-1.17.3-py3-none-any.whl.metadata (2.7 kB)
Collecting django-graphiql-debug-toolbar==0.2.0 (from -r requirements.txt (line 6))
  Using cached django_graphiql_debug_toolbar-0.2.0-py3-none-any.whl.metadata (3.5 kB)
Collecting django-mptt==0.16.0 (from -r requirements.txt (line 7))
  Using cached django_mptt-0.16.0-py3-none-any.whl.metadata (5.2 kB)
Collecting django-pglocks==1.0.4 (from -r requirements.txt (line 8))
  Using cached django_pglocks-1.0.4-py3-none-any.whl
Collecting django-prometheus==2.3.1 (from -r requirements.txt (line 9))
  Using cached django_prometheus-2.3.1-py2.py3-none-any.whl.metadata (9.4 kB)
Collecting django-redis==5.4.0 (from -r requirements.txt (line 10))
  Using cached django_redis-5.4.0-py3-none-any.whl.metadata (32 kB)
Collecting django-rich==1.8.0 (from -r requirements.txt (line 11))
  Using cached django_rich-1.8.0-py3-none-any.whl.metadata (6.8 kB)
Collecting django-rq==2.10.2 (from -r requirements.txt (line 12))
  Using cached django_rq-2.10.2-py2.py3-none-any.whl.metadata (18 kB)
Collecting django-taggit==5.0.1 (from -r requirements.txt (line 13))
  Using cached django_taggit-5.0.1-py3-none-any.whl.metadata (3.4 kB)
Collecting django-tables2==2.7.0 (from -r requirements.txt (line 14))
  Using cached django_tables2-2.7.0-py2.py3-none-any.whl.metadata (3.9 kB)
Collecting django-timezone-field==6.1.0 (from -r requirements.txt (line 15))
  Using cached django_timezone_field-6.1.0-py3-none-any.whl.metadata (12 kB)
Collecting djangorestframework==3.15.1 (from -r requirements.txt (line 16))
  Using cached djangorestframework-3.15.1-py3-none-any.whl.metadata (11 kB)
Collecting drf-spectacular==0.27.2 (from -r requirements.txt (line 17))
  Using cached drf_spectacular-0.27.2-py3-none-any.whl.metadata (14 kB)
Collecting drf-spectacular-sidecar==2024.5.1 (from -r requirements.txt (line 18))
  Using cached drf_spectacular_sidecar-2024.5.1-py3-none-any.whl.metadata (3.4 kB)
Collecting feedparser==6.0.11 (from -r requirements.txt (line 19))
  Using cached feedparser-6.0.11-py3-none-any.whl.metadata (2.4 kB)
Collecting gunicorn==22.0.0 (from -r requirements.txt (line 20))
  Using cached gunicorn-22.0.0-py3-none-any.whl.metadata (4.4 kB)
Collecting Jinja2==3.1.4 (from -r requirements.txt (line 21))
  Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting Markdown==3.6 (from -r requirements.txt (line 22))
  Using cached Markdown-3.6-py3-none-any.whl.metadata (7.0 kB)
Collecting mkdocs-material==9.5.21 (from -r requirements.txt (line 23))
  Using cached mkdocs_material-9.5.21-py3-none-any.whl.metadata (17 kB)
Collecting mkdocstrings==0.25.1 (from mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24))
  Using cached mkdocstrings-0.25.1-py3-none-any.whl.metadata (7.6 kB)
Collecting netaddr==1.2.1 (from -r requirements.txt (line 25))
  Using cached netaddr-1.2.1-py3-none-any.whl.metadata (5.0 kB)
Collecting nh3==0.2.17 (from -r requirements.txt (line 26))
  Using cached nh3-0.2.17-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.7 kB)
Collecting Pillow==10.3.0 (from -r requirements.txt (line 27))
  Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting psycopg==3.1.18 (from psycopg[c,pool]==3.1.18->-r requirements.txt (line 28))
  Using cached psycopg-3.1.18-py3-none-any.whl.metadata (4.2 kB)
Collecting PyYAML==6.0.1 (from -r requirements.txt (line 29))
  Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting requests==2.31.0 (from -r requirements.txt (line 30))
  Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting social-auth-app-django==5.4.1 (from -r requirements.txt (line 31))
  Using cached social_auth_app_django-5.4.1-py3-none-any.whl.metadata (3.2 kB)
Collecting social-auth-core==4.5.4 (from -r requirements.txt (line 32))
  Using cached social_auth_core-4.5.4-py3-none-any.whl.metadata (4.1 kB)
Collecting strawberry-graphql==0.227.4 (from -r requirements.txt (line 33))
  Using cached strawberry_graphql-0.227.4-py3-none-any.whl.metadata (7.8 kB)
Collecting strawberry-graphql-django==0.39.2 (from -r requirements.txt (line 34))
  Using cached strawberry_graphql_django-0.39.2-py3-none-any.whl.metadata (5.0 kB)
Collecting svgwrite==1.4.3 (from -r requirements.txt (line 35))
  Using cached svgwrite-1.4.3-py3-none-any.whl.metadata (8.8 kB)
Collecting tablib==3.6.1 (from -r requirements.txt (line 36))
  Using cached tablib-3.6.1-py3-none-any.whl.metadata (3.8 kB)
Collecting tzdata==2024.1 (from -r requirements.txt (line 37))
  Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting asgiref<4,>=3.7.0 (from Django==5.0.6->-r requirements.txt (line 1))
  Using cached asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB)
Collecting sqlparse>=0.3.1 (from Django==5.0.6->-r requirements.txt (line 1))
  Using cached sqlparse-0.5.0-py3-none-any.whl.metadata (3.9 kB)
Collecting graphene-django>=2.0.0 (from django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6))
  Using cached graphene_django-3.2.1-py2.py3-none-any.whl.metadata (8.3 kB)
Collecting django-js-asset (from django-mptt==0.16.0->-r requirements.txt (line 7))
  Using cached django_js_asset-2.2.0-py3-none-any.whl.metadata (3.5 kB)
Collecting six>=1.0.0 (from django-pglocks==1.0.4->-r requirements.txt (line 8))
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting prometheus-client>=0.7 (from django-prometheus==2.3.1->-r requirements.txt (line 9))
  Using cached prometheus_client-0.20.0-py3-none-any.whl.metadata (1.8 kB)
Collecting redis!=4.0.0,!=4.0.1,>=3 (from django-redis==5.4.0->-r requirements.txt (line 10))
  Using cached redis-5.0.4-py3-none-any.whl.metadata (9.3 kB)
Collecting rich>=10.0.0 (from django-rich==1.8.0->-r requirements.txt (line 11))
  Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)
Collecting rq>=1.14 (from django-rq==2.10.2->-r requirements.txt (line 12))
  Using cached rq-1.16.2-py3-none-any.whl.metadata (5.7 kB)
Collecting uritemplate>=2.0.0 (from drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached uritemplate-4.1.1-py2.py3-none-any.whl.metadata (2.9 kB)
Collecting jsonschema>=2.6.0 (from drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached jsonschema-4.22.0-py3-none-any.whl.metadata (8.2 kB)
Collecting inflection>=0.3.1 (from drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached inflection-0.5.1-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting sgmllib3k (from feedparser==6.0.11->-r requirements.txt (line 19))
  Using cached sgmllib3k-1.0.0-py3-none-any.whl
Collecting packaging (from gunicorn==22.0.0->-r requirements.txt (line 20))
  Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting MarkupSafe>=2.0 (from Jinja2==3.1.4->-r requirements.txt (line 21))
  Using cached MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB)
Collecting babel~=2.10 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached Babel-2.15.0-py3-none-any.whl.metadata (1.5 kB)
Collecting colorama~=0.4 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting mkdocs-material-extensions~=1.3 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached mkdocs_material_extensions-1.3.1-py3-none-any.whl.metadata (6.9 kB)
Collecting mkdocs~=1.6 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached mkdocs-1.6.0-py3-none-any.whl.metadata (6.0 kB)
Collecting paginate~=0.5 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached paginate-0.5.6-py3-none-any.whl
Collecting pygments~=2.16 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting pymdown-extensions~=10.2 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached pymdown_extensions-10.8.1-py3-none-any.whl.metadata (3.0 kB)
Collecting regex>=2022.4 (from mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached regex-2024.5.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB)
Collecting click>=7.0 (from mkdocstrings==0.25.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24))
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting mkdocs-autorefs>=0.3.1 (from mkdocstrings==0.25.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24))
  Using cached mkdocs_autorefs-1.0.1-py3-none-any.whl.metadata (6.9 kB)
Collecting platformdirs>=2.2.0 (from mkdocstrings==0.25.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24))
  Using cached platformdirs-4.2.1-py3-none-any.whl.metadata (11 kB)
Collecting typing-extensions>=4.1 (from psycopg==3.1.18->psycopg[c,pool]==3.1.18->-r requirements.txt (line 28))
  Using cached typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB)
Collecting charset-normalizer<4,>=2 (from requests==2.31.0->-r requirements.txt (line 30))
  Using cached charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests==2.31.0->-r requirements.txt (line 30))
  Using cached idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->-r requirements.txt (line 30))
  Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests==2.31.0->-r requirements.txt (line 30))
  Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting oauthlib>=1.0.3 (from social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB)
Collecting requests-oauthlib>=0.6.1 (from social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl.metadata (11 kB)
Collecting PyJWT>=2.7.0 (from social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached PyJWT-2.8.0-py3-none-any.whl.metadata (4.2 kB)
Collecting cryptography>=1.4 (from social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached cryptography-42.0.7-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.3 kB)
Collecting defusedxml>=0.5.0rc1 (from social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached defusedxml-0.8.0rc2-py2.py3-none-any.whl.metadata (33 kB)
Collecting python3-openid>=3.0.10 (from social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached python3_openid-3.2.0-py3-none-any.whl.metadata (1.6 kB)
Collecting graphql-core<3.3.0,>=3.2.0 (from strawberry-graphql==0.227.4->-r requirements.txt (line 33))
  Using cached graphql_core-3.2.3-py3-none-any.whl.metadata (10 kB)
Collecting python-dateutil<3.0.0,>=2.7.0 (from strawberry-graphql==0.227.4->-r requirements.txt (line 33))
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting mkdocstrings-python-legacy>=0.2.1 (from mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24))
  Using cached mkdocstrings_python_legacy-0.2.3-py3-none-any.whl.metadata (5.1 kB)
Collecting psycopg-c==3.1.18 (from psycopg[c,pool]==3.1.18->-r requirements.txt (line 28))
  Using cached psycopg_c-3.1.18-cp311-cp311-linux_x86_64.whl
Collecting psycopg-pool (from psycopg[c,pool]==3.1.18->-r requirements.txt (line 28))
  Using cached psycopg_pool-3.2.2-py3-none-any.whl.metadata (2.6 kB)
Collecting cffi>=1.12 (from cryptography>=1.4->social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting graphene<4,>=3.0 (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6))
  Using cached graphene-3.3-py2.py3-none-any.whl.metadata (7.7 kB)
Collecting graphql-relay<4,>=3.1.1 (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6))
  Using cached graphql_relay-3.2.0-py3-none-any.whl.metadata (12 kB)
Collecting promise>=2.1 (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6))
  Using cached promise-2.3-py3-none-any.whl
Collecting text-unidecode (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6))
  Using cached text_unidecode-1.3-py2.py3-none-any.whl.metadata (2.4 kB)
Collecting attrs>=22.2.0 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17))
  Using cached rpds_py-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
Collecting ghp-import>=1.0 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached ghp_import-2.1.0-py3-none-any.whl.metadata (7.2 kB)
Collecting mergedeep>=1.3.4 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached mergedeep-1.3.4-py3-none-any.whl.metadata (4.3 kB)
Collecting mkdocs-get-deps>=0.2.0 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached mkdocs_get_deps-0.2.0-py3-none-any.whl.metadata (4.0 kB)
Collecting pathspec>=0.11.1 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)
Collecting pyyaml-env-tag>=0.1 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached pyyaml_env_tag-0.1-py3-none-any.whl.metadata (4.1 kB)
Collecting watchdog>=2.0 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23))
  Using cached watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl.metadata (37 kB)
Collecting pytkdocs>=0.14 (from mkdocstrings-python-legacy>=0.2.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24))
  Using cached pytkdocs-0.16.1-py3-none-any.whl.metadata (8.8 kB)
Collecting async-timeout>=4.0.3 (from redis!=4.0.0,!=4.0.1,>=3->django-redis==5.4.0->-r requirements.txt (line 10))
  Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.0.0->django-rich==1.8.0->-r requirements.txt (line 11))
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pycparser (from cffi>=1.12->cryptography>=1.4->social-auth-core==4.5.4->-r requirements.txt (line 32))
  Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Collecting aniso8601<10,>=8 (from graphene<4,>=3.0->graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6))
  Using cached aniso8601-9.0.1-py2.py3-none-any.whl.metadata (23 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.0.0->django-rich==1.8.0->-r requirements.txt (line 11))
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Using cached Django-5.0.6-py3-none-any.whl (8.2 MB)
Using cached django_cors_headers-4.3.1-py3-none-any.whl (12 kB)
Using cached django_debug_toolbar-4.3.0-py3-none-any.whl (223 kB)
Using cached django_filter-24.2-py3-none-any.whl (94 kB)
Using cached django_htmx-1.17.3-py3-none-any.whl (6.9 kB)
Using cached django_graphiql_debug_toolbar-0.2.0-py3-none-any.whl (7.3 kB)
Using cached django_mptt-0.16.0-py3-none-any.whl (115 kB)
Using cached django_prometheus-2.3.1-py2.py3-none-any.whl (29 kB)
Using cached django_redis-5.4.0-py3-none-any.whl (31 kB)
Using cached django_rich-1.8.0-py3-none-any.whl (7.1 kB)
Using cached django_rq-2.10.2-py2.py3-none-any.whl (56 kB)
Using cached django_taggit-5.0.1-py3-none-any.whl (61 kB)
Using cached django_tables2-2.7.0-py2.py3-none-any.whl (95 kB)
Using cached django_timezone_field-6.1.0-py3-none-any.whl (12 kB)
Using cached djangorestframework-3.15.1-py3-none-any.whl (1.1 MB)
Using cached drf_spectacular-0.27.2-py3-none-any.whl (102 kB)
Using cached drf_spectacular_sidecar-2024.5.1-py3-none-any.whl (2.4 MB)
Using cached feedparser-6.0.11-py3-none-any.whl (81 kB)
Using cached gunicorn-22.0.0-py3-none-any.whl (84 kB)
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Using cached Markdown-3.6-py3-none-any.whl (105 kB)
Using cached mkdocs_material-9.5.21-py3-none-any.whl (8.8 MB)
Using cached mkdocstrings-0.25.1-py3-none-any.whl (29 kB)
Using cached netaddr-1.2.1-py3-none-any.whl (2.3 MB)
Using cached nh3-0.2.17-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (777 kB)
Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB)
Using cached psycopg-3.1.18-py3-none-any.whl (178 kB)
Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached social_auth_app_django-5.4.1-py3-none-any.whl (26 kB)
Using cached social_auth_core-4.5.4-py3-none-any.whl (410 kB)
Using cached strawberry_graphql-0.227.4-py3-none-any.whl (290 kB)
Using cached strawberry_graphql_django-0.39.2-py3-none-any.whl (84 kB)
Using cached svgwrite-1.4.3-py3-none-any.whl (67 kB)
Using cached tablib-3.6.1-py3-none-any.whl (47 kB)
Using cached tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Using cached asgiref-3.8.1-py3-none-any.whl (23 kB)
Using cached Babel-2.15.0-py3-none-any.whl (9.6 MB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Using cached cryptography-42.0.7-cp39-abi3-manylinux_2_28_x86_64.whl (3.8 MB)
Using cached defusedxml-0.8.0rc2-py2.py3-none-any.whl (25 kB)
Using cached graphene_django-3.2.1-py2.py3-none-any.whl (114 kB)
Using cached graphql_core-3.2.3-py3-none-any.whl (202 kB)
Using cached idna-3.7-py3-none-any.whl (66 kB)
Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
Using cached jsonschema-4.22.0-py3-none-any.whl (88 kB)
Using cached MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)
Using cached mkdocs-1.6.0-py3-none-any.whl (3.9 MB)
Using cached mkdocs_autorefs-1.0.1-py3-none-any.whl (13 kB)
Using cached mkdocs_material_extensions-1.3.1-py3-none-any.whl (8.7 kB)
Using cached mkdocstrings_python_legacy-0.2.3-py3-none-any.whl (26 kB)
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached platformdirs-4.2.1-py3-none-any.whl (17 kB)
Using cached prometheus_client-0.20.0-py3-none-any.whl (54 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached PyJWT-2.8.0-py3-none-any.whl (22 kB)
Using cached pymdown_extensions-10.8.1-py3-none-any.whl (250 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB)
Using cached redis-5.0.4-py3-none-any.whl (251 kB)
Using cached regex-2024.5.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (785 kB)
Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)
Using cached rich-13.7.1-py3-none-any.whl (240 kB)
Using cached rq-1.16.2-py3-none-any.whl (90 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached sqlparse-0.5.0-py3-none-any.whl (43 kB)
Using cached typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Using cached uritemplate-4.1.1-py2.py3-none-any.whl (10 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached django_js_asset-2.2.0-py3-none-any.whl (4.7 kB)
Using cached psycopg_pool-3.2.2-py3-none-any.whl (38 kB)
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
Using cached cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464 kB)
Using cached ghp_import-2.1.0-py3-none-any.whl (11 kB)
Using cached graphene-3.3-py2.py3-none-any.whl (128 kB)
Using cached graphql_relay-3.2.0-py3-none-any.whl (16 kB)
Using cached jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached mergedeep-1.3.4-py3-none-any.whl (6.4 kB)
Using cached mkdocs_get_deps-0.2.0-py3-none-any.whl (9.5 kB)
Using cached pathspec-0.12.1-py3-none-any.whl (31 kB)
Using cached pytkdocs-0.16.1-py3-none-any.whl (37 kB)
Using cached pyyaml_env_tag-0.1-py3-none-any.whl (3.9 kB)
Using cached referencing-0.35.1-py3-none-any.whl (26 kB)
Using cached rpds_py-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
Using cached watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Using cached aniso8601-9.0.1-py2.py3-none-any.whl (52 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: text-unidecode, sgmllib3k, paginate, nh3, aniso8601, watchdog, urllib3, uritemplate, tzdata, typing-extensions, tablib, svgwrite, sqlparse, six, rpds-py, regex, PyYAML, pytkdocs, PyJWT, pygments, pycparser, psycopg-c, prometheus-client, platformdirs, Pillow, pathspec, packaging, oauthlib, netaddr, mkdocs-material-extensions, mergedeep, mdurl, MarkupSafe, Markdown, inflection, idna, graphql-core, feedparser, defusedxml, colorama, click, charset-normalizer, certifi, babel, attrs, async-timeout, asgiref, requests, referencing, redis, pyyaml-env-tag, python3-openid, python-dateutil, pymdown-extensions, psycopg-pool, psycopg, promise, mkdocs-get-deps, markdown-it-py, Jinja2, gunicorn, graphql-relay, django-prometheus, django-pglocks, Django, cffi, strawberry-graphql, rq, rich, requests-oauthlib, jsonschema-specifications, graphene, ghp-import, drf-spectacular-sidecar, djangorestframework, django-timezone-field, django-taggit, django-tables2, django-redis, django-js-asset, django-htmx, django-filter, django-debug-toolbar, django-cors-headers, cryptography, strawberry-graphql-django, social-auth-core, mkdocs, jsonschema, graphene-django, django-rq, django-rich, django-mptt, social-auth-app-django, mkdocs-material, mkdocs-autorefs, drf-spectacular, django-graphiql-debug-toolbar, mkdocstrings, mkdocstrings-python-legacy
Successfully installed Django-5.0.6 Jinja2-3.1.4 Markdown-3.6 MarkupSafe-2.1.5 Pillow-10.3.0 PyJWT-2.8.0 PyYAML-6.0.1 aniso8601-9.0.1 asgiref-3.8.1 async-timeout-4.0.3 attrs-23.2.0 babel-2.15.0 certifi-2024.2.2 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 cryptography-42.0.7 defusedxml-0.8.0rc2 django-cors-headers-4.3.1 django-debug-toolbar-4.3.0 django-filter-24.2 django-graphiql-debug-toolbar-0.2.0 django-htmx-1.17.3 django-js-asset-2.2.0 django-mptt-0.16.0 django-pglocks-1.0.4 django-prometheus-2.3.1 django-redis-5.4.0 django-rich-1.8.0 django-rq-2.10.2 django-tables2-2.7.0 django-taggit-5.0.1 django-timezone-field-6.1.0 djangorestframework-3.15.1 drf-spectacular-0.27.2 drf-spectacular-sidecar-2024.5.1 feedparser-6.0.11 ghp-import-2.1.0 graphene-3.3 graphene-django-3.2.1 graphql-core-3.2.3 graphql-relay-3.2.0 gunicorn-22.0.0 idna-3.7 inflection-0.5.1 jsonschema-4.22.0 jsonschema-specifications-2023.12.1 markdown-it-py-3.0.0 mdurl-0.1.2 mergedeep-1.3.4 mkdocs-1.6.0 mkdocs-autorefs-1.0.1 mkdocs-get-deps-0.2.0 mkdocs-material-9.5.21 mkdocs-material-extensions-1.3.1 mkdocstrings-0.25.1 mkdocstrings-python-legacy-0.2.3 netaddr-1.2.1 nh3-0.2.17 oauthlib-3.2.2 packaging-24.0 paginate-0.5.6 pathspec-0.12.1 platformdirs-4.2.1 prometheus-client-0.20.0 promise-2.3 psycopg-3.1.18 psycopg-c-3.1.18 psycopg-pool-3.2.2 pycparser-2.22 pygments-2.18.0 pymdown-extensions-10.8.1 python-dateutil-2.9.0.post0 python3-openid-3.2.0 pytkdocs-0.16.1 pyyaml-env-tag-0.1 redis-5.0.4 referencing-0.35.1 regex-2024.5.10 requests-2.31.0 requests-oauthlib-2.0.0 rich-13.7.1 rpds-py-0.18.1 rq-1.16.2 sgmllib3k-1.0.0 six-1.16.0 social-auth-app-django-5.4.1 social-auth-core-4.5.4 sqlparse-0.5.0 strawberry-graphql-0.227.4 strawberry-graphql-django-0.39.2 svgwrite-1.4.3 tablib-3.6.1 text-unidecode-1.3 typing-extensions-4.11.0 tzdata-2024.1 uritemplate-4.1.1 urllib3-2.2.1 watchdog-4.0.0
Installing local dependencies (pip install -r local_requirements.txt)...
Applying database migrations (python3 netbox/manage.py migrate)...
Operations to perform:
  Apply all migrations: account, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless
Running migrations:
  Applying extras.0109_script_model...Traceback (most recent call last):
  File "/opt/netbox/netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 413, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 459, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 107, in wrapper
    res = handle_func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/commands/migrate.py", line 356, in handle
    post_migrate_state = executor.migrate(
                         ^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/executor.py", line 135, in migrate
    state = self._migrate_all_forwards(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
    state = self.apply_migration(
            ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
    state = migration.apply(state, schema_editor)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/migration.py", line 132, in apply
    operation.database_forwards(
  File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards
    self.code(from_state.apps, schema_editor)
  File "/opt/netbox/netbox/extras/migrations/0109_script_model.py", line 96, in update_scripts
    for script_name in get_module_scripts(module):
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox/netbox/extras/migrations/0109_script_model.py", line 64, in get_module_scripts
    module = loader.load_module()
             ^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 1120, in load_module
  File "<frozen importlib._bootstrap_external>", line 945, in load_module
  File "<frozen importlib._bootstrap>", line 290, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/netbox/netbox/reports/RackGroupAssignment.py", line 1, in <module>
    from dcim.models import Rack, RackGroup
ImportError: cannot import name 'RackGroup' from 'dcim.models' (/opt/netbox/netbox/dcim/models/__init__.py)

And if I try to access netbox in the web browser I get

Server Error
There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.db.utils.ProgrammingError'>

relation "users_user" does not exist
LINE 1: ...ser"."is_active", "users_user"."date_joined" FROM "users_use...
                                                             ^

Python version: 3.11.2
NetBox version: 4.0.1
Plugins: None installed
@jorblad commented on GitHub (May 13, 2024): I have a simliar problem even if my error is a bit different and even after deactivating all plugins I get this ``` You are installing (or upgrading to) NetBox version 4.0.1 Using Python 3.11.2 Removing old virtual environment... Creating a new virtual environment at /opt/netbox/venv... Updating pip (pip install --upgrade pip)... Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (23.0.1) Collecting pip Using cached pip-24.0-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 23.0.1 Uninstalling pip-23.0.1: Successfully uninstalled pip-23.0.1 Successfully installed pip-24.0 pip 24.0 from /opt/netbox/venv/lib/python3.11/site-packages/pip (python 3.11) Installing Python system packages (pip install wheel)... Collecting wheel Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB) Using cached wheel-0.43.0-py3-none-any.whl (65 kB) Installing collected packages: wheel Successfully installed wheel-0.43.0 Installing core dependencies (pip install -r requirements.txt)... Collecting Django==5.0.6 (from -r requirements.txt (line 1)) Using cached Django-5.0.6-py3-none-any.whl.metadata (4.1 kB) Collecting django-cors-headers==4.3.1 (from -r requirements.txt (line 2)) Using cached django_cors_headers-4.3.1-py3-none-any.whl.metadata (16 kB) Collecting django-debug-toolbar==4.3.0 (from -r requirements.txt (line 3)) Using cached django_debug_toolbar-4.3.0-py3-none-any.whl.metadata (4.0 kB) Collecting django-filter==24.2 (from -r requirements.txt (line 4)) Using cached django_filter-24.2-py3-none-any.whl.metadata (5.1 kB) Collecting django-htmx==1.17.3 (from -r requirements.txt (line 5)) Using cached django_htmx-1.17.3-py3-none-any.whl.metadata (2.7 kB) Collecting django-graphiql-debug-toolbar==0.2.0 (from -r requirements.txt (line 6)) Using cached django_graphiql_debug_toolbar-0.2.0-py3-none-any.whl.metadata (3.5 kB) Collecting django-mptt==0.16.0 (from -r requirements.txt (line 7)) Using cached django_mptt-0.16.0-py3-none-any.whl.metadata (5.2 kB) Collecting django-pglocks==1.0.4 (from -r requirements.txt (line 8)) Using cached django_pglocks-1.0.4-py3-none-any.whl Collecting django-prometheus==2.3.1 (from -r requirements.txt (line 9)) Using cached django_prometheus-2.3.1-py2.py3-none-any.whl.metadata (9.4 kB) Collecting django-redis==5.4.0 (from -r requirements.txt (line 10)) Using cached django_redis-5.4.0-py3-none-any.whl.metadata (32 kB) Collecting django-rich==1.8.0 (from -r requirements.txt (line 11)) Using cached django_rich-1.8.0-py3-none-any.whl.metadata (6.8 kB) Collecting django-rq==2.10.2 (from -r requirements.txt (line 12)) Using cached django_rq-2.10.2-py2.py3-none-any.whl.metadata (18 kB) Collecting django-taggit==5.0.1 (from -r requirements.txt (line 13)) Using cached django_taggit-5.0.1-py3-none-any.whl.metadata (3.4 kB) Collecting django-tables2==2.7.0 (from -r requirements.txt (line 14)) Using cached django_tables2-2.7.0-py2.py3-none-any.whl.metadata (3.9 kB) Collecting django-timezone-field==6.1.0 (from -r requirements.txt (line 15)) Using cached django_timezone_field-6.1.0-py3-none-any.whl.metadata (12 kB) Collecting djangorestframework==3.15.1 (from -r requirements.txt (line 16)) Using cached djangorestframework-3.15.1-py3-none-any.whl.metadata (11 kB) Collecting drf-spectacular==0.27.2 (from -r requirements.txt (line 17)) Using cached drf_spectacular-0.27.2-py3-none-any.whl.metadata (14 kB) Collecting drf-spectacular-sidecar==2024.5.1 (from -r requirements.txt (line 18)) Using cached drf_spectacular_sidecar-2024.5.1-py3-none-any.whl.metadata (3.4 kB) Collecting feedparser==6.0.11 (from -r requirements.txt (line 19)) Using cached feedparser-6.0.11-py3-none-any.whl.metadata (2.4 kB) Collecting gunicorn==22.0.0 (from -r requirements.txt (line 20)) Using cached gunicorn-22.0.0-py3-none-any.whl.metadata (4.4 kB) Collecting Jinja2==3.1.4 (from -r requirements.txt (line 21)) Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB) Collecting Markdown==3.6 (from -r requirements.txt (line 22)) Using cached Markdown-3.6-py3-none-any.whl.metadata (7.0 kB) Collecting mkdocs-material==9.5.21 (from -r requirements.txt (line 23)) Using cached mkdocs_material-9.5.21-py3-none-any.whl.metadata (17 kB) Collecting mkdocstrings==0.25.1 (from mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24)) Using cached mkdocstrings-0.25.1-py3-none-any.whl.metadata (7.6 kB) Collecting netaddr==1.2.1 (from -r requirements.txt (line 25)) Using cached netaddr-1.2.1-py3-none-any.whl.metadata (5.0 kB) Collecting nh3==0.2.17 (from -r requirements.txt (line 26)) Using cached nh3-0.2.17-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.7 kB) Collecting Pillow==10.3.0 (from -r requirements.txt (line 27)) Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.2 kB) Collecting psycopg==3.1.18 (from psycopg[c,pool]==3.1.18->-r requirements.txt (line 28)) Using cached psycopg-3.1.18-py3-none-any.whl.metadata (4.2 kB) Collecting PyYAML==6.0.1 (from -r requirements.txt (line 29)) Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB) Collecting requests==2.31.0 (from -r requirements.txt (line 30)) Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting social-auth-app-django==5.4.1 (from -r requirements.txt (line 31)) Using cached social_auth_app_django-5.4.1-py3-none-any.whl.metadata (3.2 kB) Collecting social-auth-core==4.5.4 (from -r requirements.txt (line 32)) Using cached social_auth_core-4.5.4-py3-none-any.whl.metadata (4.1 kB) Collecting strawberry-graphql==0.227.4 (from -r requirements.txt (line 33)) Using cached strawberry_graphql-0.227.4-py3-none-any.whl.metadata (7.8 kB) Collecting strawberry-graphql-django==0.39.2 (from -r requirements.txt (line 34)) Using cached strawberry_graphql_django-0.39.2-py3-none-any.whl.metadata (5.0 kB) Collecting svgwrite==1.4.3 (from -r requirements.txt (line 35)) Using cached svgwrite-1.4.3-py3-none-any.whl.metadata (8.8 kB) Collecting tablib==3.6.1 (from -r requirements.txt (line 36)) Using cached tablib-3.6.1-py3-none-any.whl.metadata (3.8 kB) Collecting tzdata==2024.1 (from -r requirements.txt (line 37)) Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB) Collecting asgiref<4,>=3.7.0 (from Django==5.0.6->-r requirements.txt (line 1)) Using cached asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB) Collecting sqlparse>=0.3.1 (from Django==5.0.6->-r requirements.txt (line 1)) Using cached sqlparse-0.5.0-py3-none-any.whl.metadata (3.9 kB) Collecting graphene-django>=2.0.0 (from django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6)) Using cached graphene_django-3.2.1-py2.py3-none-any.whl.metadata (8.3 kB) Collecting django-js-asset (from django-mptt==0.16.0->-r requirements.txt (line 7)) Using cached django_js_asset-2.2.0-py3-none-any.whl.metadata (3.5 kB) Collecting six>=1.0.0 (from django-pglocks==1.0.4->-r requirements.txt (line 8)) Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB) Collecting prometheus-client>=0.7 (from django-prometheus==2.3.1->-r requirements.txt (line 9)) Using cached prometheus_client-0.20.0-py3-none-any.whl.metadata (1.8 kB) Collecting redis!=4.0.0,!=4.0.1,>=3 (from django-redis==5.4.0->-r requirements.txt (line 10)) Using cached redis-5.0.4-py3-none-any.whl.metadata (9.3 kB) Collecting rich>=10.0.0 (from django-rich==1.8.0->-r requirements.txt (line 11)) Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB) Collecting rq>=1.14 (from django-rq==2.10.2->-r requirements.txt (line 12)) Using cached rq-1.16.2-py3-none-any.whl.metadata (5.7 kB) Collecting uritemplate>=2.0.0 (from drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached uritemplate-4.1.1-py2.py3-none-any.whl.metadata (2.9 kB) Collecting jsonschema>=2.6.0 (from drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached jsonschema-4.22.0-py3-none-any.whl.metadata (8.2 kB) Collecting inflection>=0.3.1 (from drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached inflection-0.5.1-py2.py3-none-any.whl.metadata (1.7 kB) Collecting sgmllib3k (from feedparser==6.0.11->-r requirements.txt (line 19)) Using cached sgmllib3k-1.0.0-py3-none-any.whl Collecting packaging (from gunicorn==22.0.0->-r requirements.txt (line 20)) Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB) Collecting MarkupSafe>=2.0 (from Jinja2==3.1.4->-r requirements.txt (line 21)) Using cached MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB) Collecting babel~=2.10 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached Babel-2.15.0-py3-none-any.whl.metadata (1.5 kB) Collecting colorama~=0.4 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting mkdocs-material-extensions~=1.3 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached mkdocs_material_extensions-1.3.1-py3-none-any.whl.metadata (6.9 kB) Collecting mkdocs~=1.6 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached mkdocs-1.6.0-py3-none-any.whl.metadata (6.0 kB) Collecting paginate~=0.5 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached paginate-0.5.6-py3-none-any.whl Collecting pygments~=2.16 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB) Collecting pymdown-extensions~=10.2 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached pymdown_extensions-10.8.1-py3-none-any.whl.metadata (3.0 kB) Collecting regex>=2022.4 (from mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached regex-2024.5.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB) Collecting click>=7.0 (from mkdocstrings==0.25.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24)) Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting mkdocs-autorefs>=0.3.1 (from mkdocstrings==0.25.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24)) Using cached mkdocs_autorefs-1.0.1-py3-none-any.whl.metadata (6.9 kB) Collecting platformdirs>=2.2.0 (from mkdocstrings==0.25.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24)) Using cached platformdirs-4.2.1-py3-none-any.whl.metadata (11 kB) Collecting typing-extensions>=4.1 (from psycopg==3.1.18->psycopg[c,pool]==3.1.18->-r requirements.txt (line 28)) Using cached typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB) Collecting charset-normalizer<4,>=2 (from requests==2.31.0->-r requirements.txt (line 30)) Using cached charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB) Collecting idna<4,>=2.5 (from requests==2.31.0->-r requirements.txt (line 30)) Using cached idna-3.7-py3-none-any.whl.metadata (9.9 kB) Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->-r requirements.txt (line 30)) Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB) Collecting certifi>=2017.4.17 (from requests==2.31.0->-r requirements.txt (line 30)) Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB) Collecting oauthlib>=1.0.3 (from social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached oauthlib-3.2.2-py3-none-any.whl.metadata (7.5 kB) Collecting requests-oauthlib>=0.6.1 (from social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl.metadata (11 kB) Collecting PyJWT>=2.7.0 (from social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached PyJWT-2.8.0-py3-none-any.whl.metadata (4.2 kB) Collecting cryptography>=1.4 (from social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached cryptography-42.0.7-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.3 kB) Collecting defusedxml>=0.5.0rc1 (from social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached defusedxml-0.8.0rc2-py2.py3-none-any.whl.metadata (33 kB) Collecting python3-openid>=3.0.10 (from social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached python3_openid-3.2.0-py3-none-any.whl.metadata (1.6 kB) Collecting graphql-core<3.3.0,>=3.2.0 (from strawberry-graphql==0.227.4->-r requirements.txt (line 33)) Using cached graphql_core-3.2.3-py3-none-any.whl.metadata (10 kB) Collecting python-dateutil<3.0.0,>=2.7.0 (from strawberry-graphql==0.227.4->-r requirements.txt (line 33)) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Collecting mkdocstrings-python-legacy>=0.2.1 (from mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24)) Using cached mkdocstrings_python_legacy-0.2.3-py3-none-any.whl.metadata (5.1 kB) Collecting psycopg-c==3.1.18 (from psycopg[c,pool]==3.1.18->-r requirements.txt (line 28)) Using cached psycopg_c-3.1.18-cp311-cp311-linux_x86_64.whl Collecting psycopg-pool (from psycopg[c,pool]==3.1.18->-r requirements.txt (line 28)) Using cached psycopg_pool-3.2.2-py3-none-any.whl.metadata (2.6 kB) Collecting cffi>=1.12 (from cryptography>=1.4->social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB) Collecting graphene<4,>=3.0 (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6)) Using cached graphene-3.3-py2.py3-none-any.whl.metadata (7.7 kB) Collecting graphql-relay<4,>=3.1.1 (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6)) Using cached graphql_relay-3.2.0-py3-none-any.whl.metadata (12 kB) Collecting promise>=2.1 (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6)) Using cached promise-2.3-py3-none-any.whl Collecting text-unidecode (from graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6)) Using cached text_unidecode-1.3-py2.py3-none-any.whl.metadata (2.4 kB) Collecting attrs>=22.2.0 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB) Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB) Collecting referencing>=0.28.4 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB) Collecting rpds-py>=0.7.1 (from jsonschema>=2.6.0->drf-spectacular==0.27.2->-r requirements.txt (line 17)) Using cached rpds_py-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB) Collecting ghp-import>=1.0 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached ghp_import-2.1.0-py3-none-any.whl.metadata (7.2 kB) Collecting mergedeep>=1.3.4 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached mergedeep-1.3.4-py3-none-any.whl.metadata (4.3 kB) Collecting mkdocs-get-deps>=0.2.0 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached mkdocs_get_deps-0.2.0-py3-none-any.whl.metadata (4.0 kB) Collecting pathspec>=0.11.1 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached pathspec-0.12.1-py3-none-any.whl.metadata (21 kB) Collecting pyyaml-env-tag>=0.1 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached pyyaml_env_tag-0.1-py3-none-any.whl.metadata (4.1 kB) Collecting watchdog>=2.0 (from mkdocs~=1.6->mkdocs-material==9.5.21->-r requirements.txt (line 23)) Using cached watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl.metadata (37 kB) Collecting pytkdocs>=0.14 (from mkdocstrings-python-legacy>=0.2.1->mkdocstrings[python-legacy]==0.25.1->-r requirements.txt (line 24)) Using cached pytkdocs-0.16.1-py3-none-any.whl.metadata (8.8 kB) Collecting async-timeout>=4.0.3 (from redis!=4.0.0,!=4.0.1,>=3->django-redis==5.4.0->-r requirements.txt (line 10)) Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB) Collecting markdown-it-py>=2.2.0 (from rich>=10.0.0->django-rich==1.8.0->-r requirements.txt (line 11)) Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB) Collecting pycparser (from cffi>=1.12->cryptography>=1.4->social-auth-core==4.5.4->-r requirements.txt (line 32)) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Collecting aniso8601<10,>=8 (from graphene<4,>=3.0->graphene-django>=2.0.0->django-graphiql-debug-toolbar==0.2.0->-r requirements.txt (line 6)) Using cached aniso8601-9.0.1-py2.py3-none-any.whl.metadata (23 kB) Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.0.0->django-rich==1.8.0->-r requirements.txt (line 11)) Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB) Using cached Django-5.0.6-py3-none-any.whl (8.2 MB) Using cached django_cors_headers-4.3.1-py3-none-any.whl (12 kB) Using cached django_debug_toolbar-4.3.0-py3-none-any.whl (223 kB) Using cached django_filter-24.2-py3-none-any.whl (94 kB) Using cached django_htmx-1.17.3-py3-none-any.whl (6.9 kB) Using cached django_graphiql_debug_toolbar-0.2.0-py3-none-any.whl (7.3 kB) Using cached django_mptt-0.16.0-py3-none-any.whl (115 kB) Using cached django_prometheus-2.3.1-py2.py3-none-any.whl (29 kB) Using cached django_redis-5.4.0-py3-none-any.whl (31 kB) Using cached django_rich-1.8.0-py3-none-any.whl (7.1 kB) Using cached django_rq-2.10.2-py2.py3-none-any.whl (56 kB) Using cached django_taggit-5.0.1-py3-none-any.whl (61 kB) Using cached django_tables2-2.7.0-py2.py3-none-any.whl (95 kB) Using cached django_timezone_field-6.1.0-py3-none-any.whl (12 kB) Using cached djangorestframework-3.15.1-py3-none-any.whl (1.1 MB) Using cached drf_spectacular-0.27.2-py3-none-any.whl (102 kB) Using cached drf_spectacular_sidecar-2024.5.1-py3-none-any.whl (2.4 MB) Using cached feedparser-6.0.11-py3-none-any.whl (81 kB) Using cached gunicorn-22.0.0-py3-none-any.whl (84 kB) Using cached jinja2-3.1.4-py3-none-any.whl (133 kB) Using cached Markdown-3.6-py3-none-any.whl (105 kB) Using cached mkdocs_material-9.5.21-py3-none-any.whl (8.8 MB) Using cached mkdocstrings-0.25.1-py3-none-any.whl (29 kB) Using cached netaddr-1.2.1-py3-none-any.whl (2.3 MB) Using cached nh3-0.2.17-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (777 kB) Using cached pillow-10.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB) Using cached psycopg-3.1.18-py3-none-any.whl (178 kB) Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Using cached social_auth_app_django-5.4.1-py3-none-any.whl (26 kB) Using cached social_auth_core-4.5.4-py3-none-any.whl (410 kB) Using cached strawberry_graphql-0.227.4-py3-none-any.whl (290 kB) Using cached strawberry_graphql_django-0.39.2-py3-none-any.whl (84 kB) Using cached svgwrite-1.4.3-py3-none-any.whl (67 kB) Using cached tablib-3.6.1-py3-none-any.whl (47 kB) Using cached tzdata-2024.1-py2.py3-none-any.whl (345 kB) Using cached asgiref-3.8.1-py3-none-any.whl (23 kB) Using cached Babel-2.15.0-py3-none-any.whl (9.6 MB) Using cached certifi-2024.2.2-py3-none-any.whl (163 kB) Using cached charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB) Using cached click-8.1.7-py3-none-any.whl (97 kB) Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Using cached cryptography-42.0.7-cp39-abi3-manylinux_2_28_x86_64.whl (3.8 MB) Using cached defusedxml-0.8.0rc2-py2.py3-none-any.whl (25 kB) Using cached graphene_django-3.2.1-py2.py3-none-any.whl (114 kB) Using cached graphql_core-3.2.3-py3-none-any.whl (202 kB) Using cached idna-3.7-py3-none-any.whl (66 kB) Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB) Using cached jsonschema-4.22.0-py3-none-any.whl (88 kB) Using cached MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB) Using cached mkdocs-1.6.0-py3-none-any.whl (3.9 MB) Using cached mkdocs_autorefs-1.0.1-py3-none-any.whl (13 kB) Using cached mkdocs_material_extensions-1.3.1-py3-none-any.whl (8.7 kB) Using cached mkdocstrings_python_legacy-0.2.3-py3-none-any.whl (26 kB) Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB) Using cached packaging-24.0-py3-none-any.whl (53 kB) Using cached platformdirs-4.2.1-py3-none-any.whl (17 kB) Using cached prometheus_client-0.20.0-py3-none-any.whl (54 kB) Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB) Using cached PyJWT-2.8.0-py3-none-any.whl (22 kB) Using cached pymdown_extensions-10.8.1-py3-none-any.whl (250 kB) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB) Using cached python3_openid-3.2.0-py3-none-any.whl (133 kB) Using cached redis-5.0.4-py3-none-any.whl (251 kB) Using cached regex-2024.5.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (785 kB) Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB) Using cached rich-13.7.1-py3-none-any.whl (240 kB) Using cached rq-1.16.2-py3-none-any.whl (90 kB) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Using cached sqlparse-0.5.0-py3-none-any.whl (43 kB) Using cached typing_extensions-4.11.0-py3-none-any.whl (34 kB) Using cached uritemplate-4.1.1-py2.py3-none-any.whl (10 kB) Using cached urllib3-2.2.1-py3-none-any.whl (121 kB) Using cached django_js_asset-2.2.0-py3-none-any.whl (4.7 kB) Using cached psycopg_pool-3.2.2-py3-none-any.whl (38 kB) Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB) Using cached attrs-23.2.0-py3-none-any.whl (60 kB) Using cached cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464 kB) Using cached ghp_import-2.1.0-py3-none-any.whl (11 kB) Using cached graphene-3.3-py2.py3-none-any.whl (128 kB) Using cached graphql_relay-3.2.0-py3-none-any.whl (16 kB) Using cached jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB) Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB) Using cached mergedeep-1.3.4-py3-none-any.whl (6.4 kB) Using cached mkdocs_get_deps-0.2.0-py3-none-any.whl (9.5 kB) Using cached pathspec-0.12.1-py3-none-any.whl (31 kB) Using cached pytkdocs-0.16.1-py3-none-any.whl (37 kB) Using cached pyyaml_env_tag-0.1-py3-none-any.whl (3.9 kB) Using cached referencing-0.35.1-py3-none-any.whl (26 kB) Using cached rpds_py-0.18.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB) Using cached watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl (82 kB) Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB) Using cached aniso8601-9.0.1-py2.py3-none-any.whl (52 kB) Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Installing collected packages: text-unidecode, sgmllib3k, paginate, nh3, aniso8601, watchdog, urllib3, uritemplate, tzdata, typing-extensions, tablib, svgwrite, sqlparse, six, rpds-py, regex, PyYAML, pytkdocs, PyJWT, pygments, pycparser, psycopg-c, prometheus-client, platformdirs, Pillow, pathspec, packaging, oauthlib, netaddr, mkdocs-material-extensions, mergedeep, mdurl, MarkupSafe, Markdown, inflection, idna, graphql-core, feedparser, defusedxml, colorama, click, charset-normalizer, certifi, babel, attrs, async-timeout, asgiref, requests, referencing, redis, pyyaml-env-tag, python3-openid, python-dateutil, pymdown-extensions, psycopg-pool, psycopg, promise, mkdocs-get-deps, markdown-it-py, Jinja2, gunicorn, graphql-relay, django-prometheus, django-pglocks, Django, cffi, strawberry-graphql, rq, rich, requests-oauthlib, jsonschema-specifications, graphene, ghp-import, drf-spectacular-sidecar, djangorestframework, django-timezone-field, django-taggit, django-tables2, django-redis, django-js-asset, django-htmx, django-filter, django-debug-toolbar, django-cors-headers, cryptography, strawberry-graphql-django, social-auth-core, mkdocs, jsonschema, graphene-django, django-rq, django-rich, django-mptt, social-auth-app-django, mkdocs-material, mkdocs-autorefs, drf-spectacular, django-graphiql-debug-toolbar, mkdocstrings, mkdocstrings-python-legacy Successfully installed Django-5.0.6 Jinja2-3.1.4 Markdown-3.6 MarkupSafe-2.1.5 Pillow-10.3.0 PyJWT-2.8.0 PyYAML-6.0.1 aniso8601-9.0.1 asgiref-3.8.1 async-timeout-4.0.3 attrs-23.2.0 babel-2.15.0 certifi-2024.2.2 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 cryptography-42.0.7 defusedxml-0.8.0rc2 django-cors-headers-4.3.1 django-debug-toolbar-4.3.0 django-filter-24.2 django-graphiql-debug-toolbar-0.2.0 django-htmx-1.17.3 django-js-asset-2.2.0 django-mptt-0.16.0 django-pglocks-1.0.4 django-prometheus-2.3.1 django-redis-5.4.0 django-rich-1.8.0 django-rq-2.10.2 django-tables2-2.7.0 django-taggit-5.0.1 django-timezone-field-6.1.0 djangorestframework-3.15.1 drf-spectacular-0.27.2 drf-spectacular-sidecar-2024.5.1 feedparser-6.0.11 ghp-import-2.1.0 graphene-3.3 graphene-django-3.2.1 graphql-core-3.2.3 graphql-relay-3.2.0 gunicorn-22.0.0 idna-3.7 inflection-0.5.1 jsonschema-4.22.0 jsonschema-specifications-2023.12.1 markdown-it-py-3.0.0 mdurl-0.1.2 mergedeep-1.3.4 mkdocs-1.6.0 mkdocs-autorefs-1.0.1 mkdocs-get-deps-0.2.0 mkdocs-material-9.5.21 mkdocs-material-extensions-1.3.1 mkdocstrings-0.25.1 mkdocstrings-python-legacy-0.2.3 netaddr-1.2.1 nh3-0.2.17 oauthlib-3.2.2 packaging-24.0 paginate-0.5.6 pathspec-0.12.1 platformdirs-4.2.1 prometheus-client-0.20.0 promise-2.3 psycopg-3.1.18 psycopg-c-3.1.18 psycopg-pool-3.2.2 pycparser-2.22 pygments-2.18.0 pymdown-extensions-10.8.1 python-dateutil-2.9.0.post0 python3-openid-3.2.0 pytkdocs-0.16.1 pyyaml-env-tag-0.1 redis-5.0.4 referencing-0.35.1 regex-2024.5.10 requests-2.31.0 requests-oauthlib-2.0.0 rich-13.7.1 rpds-py-0.18.1 rq-1.16.2 sgmllib3k-1.0.0 six-1.16.0 social-auth-app-django-5.4.1 social-auth-core-4.5.4 sqlparse-0.5.0 strawberry-graphql-0.227.4 strawberry-graphql-django-0.39.2 svgwrite-1.4.3 tablib-3.6.1 text-unidecode-1.3 typing-extensions-4.11.0 tzdata-2024.1 uritemplate-4.1.1 urllib3-2.2.1 watchdog-4.0.0 Installing local dependencies (pip install -r local_requirements.txt)... Applying database migrations (python3 netbox/manage.py migrate)... Operations to perform: Apply all migrations: account, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless Running migrations: Applying extras.0109_script_model...Traceback (most recent call last): File "/opt/netbox/netbox/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line utility.execute() File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 413, in run_from_argv self.execute(*args, **cmd_options) File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 459, in execute output = self.handle(*args, **options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/base.py", line 107, in wrapper res = handle_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/core/management/commands/migrate.py", line 356, in handle post_migrate_state = executor.migrate( ^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/executor.py", line 135, in migrate state = self._migrate_all_forwards( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards state = self.apply_migration( ^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/executor.py", line 252, in apply_migration state = migration.apply(state, schema_editor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/migration.py", line 132, in apply operation.database_forwards( File "/opt/netbox/venv/lib/python3.11/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards self.code(from_state.apps, schema_editor) File "/opt/netbox/netbox/extras/migrations/0109_script_model.py", line 96, in update_scripts for script_name in get_module_scripts(module): ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/netbox/netbox/extras/migrations/0109_script_model.py", line 64, in get_module_scripts module = loader.load_module() ^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap_external>", line 605, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 1120, in load_module File "<frozen importlib._bootstrap_external>", line 945, in load_module File "<frozen importlib._bootstrap>", line 290, in _load_module_shim File "<frozen importlib._bootstrap>", line 721, in _load File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/opt/netbox/netbox/reports/RackGroupAssignment.py", line 1, in <module> from dcim.models import Rack, RackGroup ImportError: cannot import name 'RackGroup' from 'dcim.models' (/opt/netbox/netbox/dcim/models/__init__.py) ``` And if I try to access netbox in the web browser I get ``` Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'django.db.utils.ProgrammingError'> relation "users_user" does not exist LINE 1: ...ser"."is_active", "users_user"."date_joined" FROM "users_use... ^ Python version: 3.11.2 NetBox version: 4.0.1 Plugins: None installed ```
Author
Owner

@jeremystretch commented on GitHub (May 13, 2024):

@jorblad Yours is an unrelated issue. At least one of your reports in RackGroupAssignment.py needs to be updated. The old RackGroup model was renamed to Location way back in v2.11 (see #5895).

@jeremystretch commented on GitHub (May 13, 2024): @jorblad Yours is an unrelated issue. At least one of your reports in `RackGroupAssignment.py` needs to be updated. The old RackGroup model was renamed to Location way back in v2.11 (see #5895).
Author
Owner

@jorblad commented on GitHub (May 13, 2024):

Thank you that made me look at the reports that I had missed that I had so should be able to get it back up now :)

@jorblad commented on GitHub (May 13, 2024): Thank you that made me look at the reports that I had missed that I had so should be able to get it back up now :)
Author
Owner

@jeffgdotorg commented on GitHub (May 13, 2024):

@deanfourie1 the netbox_dns plugin formerly maintained by Aurora Research Lab is no longer maintained. Please switch to the continuation fork that @peteeckel now diligently maintains, and which is already compatible with NetBox 4.0. Note that the new plugin's PyPI package name is netbox-plugin-dns (versus the old netbox-dns).

Also, I'm converting this issue to a discussion since it's clear that it does not describe a discrete bug.

@jeffgdotorg commented on GitHub (May 13, 2024): @deanfourie1 the `netbox_dns` plugin formerly maintained by Aurora Research Lab is no longer maintained. Please switch to the [continuation fork](https://github.com/peteeckel/netbox-plugin-dns) that @peteeckel now diligently maintains, and which is already compatible with NetBox 4.0. Note that the new plugin's PyPI package name is `netbox-plugin-dns ` (versus the old `netbox-dns`). Also, I'm converting this issue to a discussion since it's clear that it does not describe a discrete bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9652