Replies: 1 comment
-
upgrade.sh destroys and recreates the virtual environment, so any python package(s) you've manually installed will be blown away. To fix this, you need to create
then re-run upgrade.sh |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All,
I am trying to upgrade Netbox from 3.3.2 to 3.3.3 on Red Hat 8.10 (Ootpa) following the Netbox documentation (https://netboxlabs.com/docs/netbox/en/stable/installation/upgrading/) and I get stuck right after I ran the ./upgrade.sh, I get this error:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/netbox/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib64/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/lib64/python3.11/site-packages/django/core/management/base.py", line 405, in run_from_argv
parser = self.create_parser(argv[0], argv[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/core/management/base.py", line 368, in create_parser
self.add_arguments(parser)
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/core/management/commands/migrate.py", line 50, in add_arguments
choices=tuple(connections),
^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/utils/connection.py", line 73, in iter
return iter(self.settings)
^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/utils/functional.py", line 47, in get
res = instance.dict[self.name] = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/utils/connection.py", line 45, in settings
self._settings = self.configure_settings(self._settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/db/utils.py", line 148, in configure_settings
databases = super().configure_settings(databases)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/utils/connection.py", line 50, in configure_settings
settings = getattr(django_settings, self.settings_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/conf/init.py", line 81, in getattr
self._setup(name)
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/conf/init.py", line 68, in _setup
self._wrapped = Settings(settings_module)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox/venv/lib64/python3.11/site-packages/django/conf/init.py", line 166, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/netbox/netbox/netbox/settings.py", line 658, in
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Unable to import plugin django3_saml2_nbplugin: Module not found. Check that the plugin module has been installed within the correct Python environment.
[root@cyp-netbox-d01 netbox]#
Here are some info that might be helpful:
Python 3.11.9
(venv) [root@cyp-netbox-d01 netbox]#
(venv) [root@cyp-netbox-d01 netbox]# pip list | grep saml
django3-auth-saml2 0.6.1
pysaml2 7.5.0
(venv) [root@cyp-netbox-d01 netbox]#
(venv) [root@cyp-netbox-d01 netbox]# pip list | grep django
django-auth-ldap 5.1.0
django-cors-headers 3.13.0
django-debug-toolbar 3.6.0
django-filter 22.1
django-graphiql-debug-toolbar 0.2.0
django-js-asset 2.2.0
django-mptt 0.13.4
django-pglocks 1.0.4
django-prometheus 2.2.0
django-redis 5.2.0
django-rich 1.4.0
django-rq 2.5.1
django-tables2 2.4.1
django-taggit 3.0.0
django-timezone-field 5.0
django3-auth-saml2 0.6.1
djangorestframework 3.13.1
graphene-django 2.15.0
social-auth-app-django 5.0.0
(venv) [root@cyp-netbox-d01 netbox]#
/opt/netbox/netbox/netbox/configuration.py:
Enable installed plugins. Add the name of each plugin to the list.
PLUGINS = ['django3_saml2_nbplugin']
PLUGINS_CONFIG = {
'django3_saml2_nbplugin': {
How can I solve this ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions