error during update / NoneType object has no attribute model #8260
Unanswered
jehrhardt-bego
asked this question in
Q&A
Replies: 1 comment
-
solved with "git pull", sorry for the noise |
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.
-
Happens when running upgrade. Any hints to solve it?
Thank you!
Joerg
Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.7/site-packages (from jinja2->netbox-capirca-plugin->-r local_requirements.txt (line 2)) (2.0.1)
Requirement already satisfied: typing-extensions in ./venv/lib/python3.7/site-packages (from asgiref<4,>=3.3.2->Django>=2.2->django-auth-ldap->-r local_requirements.txt (line 1)) (4.0.1)
Installing collected packages: pyasn1, pyasn1-modules, ply, mock, ipaddress, importlib, absl-py, qrcode, python-ldap, pycryptodome, netbox-plugin-extensions, capirca, netbox-secretstore, netbox-qrcode, netbox-ipcalculator, netbox-dns, netbox-capirca-plugin, django-auth-ldap
Successfully installed absl-py-1.0.0 capirca-2.0.4 django-auth-ldap-4.0.0 importlib-1.0.4 ipaddress-1.0.23 mock-4.0.3 netbox-capirca-plugin-1.0.9 netbox-dns-0.8.0 netbox-ipcalculator-1.1 netbox-plugin-extensions-1.1.1 netbox-qrcode-0.0.7 netbox-secretstore-1.0.14 ply-3.11 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycryptodome-3.12.0 python-ldap-3.4.0 qrcode-7.3.1
Applying database migrations ( netbox/manage.py migrate)...
Traceback (most recent call last):
File "netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 75, in handle
self.check(databases=[database])
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/management/base.py", line 423, in check
databases=databases,
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/checks/registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/data/netbox/venv/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/data/netbox/venv/lib/python3.7/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/data/netbox/venv/lib/python3.7/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/data/netbox/venv/lib/python3.7/site-packages/django/urls/resolvers.py", line 598, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/data/netbox/venv/lib/python3.7/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/data/netbox/venv/lib/python3.7/site-packages/django/urls/resolvers.py", line 591, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/data/netbox/netbox/netbox/urls.py", line 9, in
from extras.plugins.urls import plugin_admin_patterns, plugin_patterns, plugin_api_patterns
File "/data/netbox/netbox/extras/plugins/urls.py", line 28, in
urlpatterns = import_object(f"{plugin_path}.urls.urlpatterns")
File "/data/netbox/netbox/extras/plugins/utils.py", line 31, in import_object
spec.loader.exec_module(module)
File "/data/netbox/venv/lib/python3.7/site-packages/netbox_secretstore/urls.py", line 4, in
from .views import *
File "/data/netbox/venv/lib/python3.7/site-packages/netbox_secretstore/views.py", line 22, in
from .filtersets import *
File "/data/netbox/venv/lib/python3.7/site-packages/netbox_secretstore/filtersets.py", line 18, in
class SecretRoleFilterSet(ChangeLoggedModelFilterSet):
File "/data/netbox/venv/lib/python3.7/site-packages/django_filters/filterset.py", line 71, in new
new_class.base_filters = new_class.get_filters()
File "/data/netbox/netbox/netbox/filtersets.py", line 156, in get_filters
resolve_field(field, lookup_expr) # Will raise FieldLookupError if the lookup is invalid
File "/data/netbox/venv/lib/python3.7/site-packages/django_filters/utils.py", line 196, in resolve_field
query = model_field.model._default_manager.all().query
AttributeError: 'NoneType' object has no attribute 'model'
Beta Was this translation helpful? Give feedback.
All reactions