Upgrade from v4.5.4 to v4.5.5 #21717
Replies: 1 comment
-
|
Hi, @mackermann-psi, thanks for sharing the traceback. This looks very similar to the other recent report about the same error, so there may be a common cause here. Based on the Could you share a few more details about your environment, especially the OS, Python version, and any installed plugins (including their versions)? As a first check, I’d suggest disabling all plugins and trying the upgrade again. If NetBox starts successfully, re-enable them one by one to identify the plugin causing the problem. If one turns out to be the cause, the next step would be to open an issue with that plugin’s maintainer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to upgrade my test environment from v4.5.4 to v4.5.5 but I got following errors.
Thanks in advance.
Traceback (most recent call last):
File "/opt/netbox_qs/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/management/base.py", line 420, in run_from_argv
self.execute(*args, **cmd_options)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/management/base.py", line 461, in execute
self.check(**check_kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/management/base.py", line 496, in check
all_issues = checks.run_checks(
app_configs=app_configs,
...<2 lines>...
databases=databases,
)
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/checks/registry.py", line 89, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/core/checks/urls.py", line 136, in check_custom_error_handlers
handler = resolver.resolve_error_handler(status_code)
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/urls/resolvers.py", line 732, in resolve_error_handler
callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
^^^^^^^^^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/utils/functional.py", line 47, in get
res = instance.dict[self.name] = self.func(instance)
~~~~~~~~~^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/django/urls/resolvers.py", line 711, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/opt/netbox_qs/netbox/netbox/urls.py", line 9, in
from netbox.graphql.schema import schema
File "/opt/netbox_qs/netbox/netbox/graphql/schema.py", line 37, in
schema = strawberry.Schema(
query=Query,
...<4 lines>...
]
)
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema.py", line 353, in init
raise error.cause from None
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/graphql/type/definition.py", line 1495, in fields
fields = resolve_thunk(self._fields)
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/graphql/type/definition.py", line 318, in resolve_thunk
return thunk() if callable(thunk) else thunk
~~~~~^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 531, in
fields=lambda: self.get_graphql_input_fields(type_definition),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 488, in get_graphql_input_fields
return get_thunk_mapping(
type_definition=type_definition,
...<2 lines>...
get_fields=self.get_fields,
)
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 143, in get_thunk_mapping
thunk_mapping[name_converter(field)] = field_converter(
~~~~~~~~~~~~~~~^
field,
^^^^^^
type_definition=type_definition,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 453, in from_input_field
self.from_maybe_optional(
~~~~~~~~~~~~~~~~~~~~~~~~^
field.resolve_type(type_definition=type_definition)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 866, in from_maybe_optional
return self.from_type(type.of_type)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 876, in from_type
return self.from_input_object(type)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 503, in from_input_object
self.validate_same_type_definition(type_name, type_definition, cached_type)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/netbox_qs/venv/lib/python3.13/site-packages/strawberry/schema/schema_converter.py", line 1040, in validate_same_type_definition
raise DuplicatedTypeName(first_origin, second_origin, name)
strawberry.exceptions.duplicated_type_name.DuplicatedTypeName: Type StrFilterLookup is defined multiple times in the schema
Beta Was this translation helpful? Give feedback.
All reactions