Hi,
Thanks for reply and sorry for the delay in getting back to you. I’ve redeployed 22.4.0 so that I can run the commands you asked and it has broken again in the same way.
awx-manage showmigrations errors with the following output:
bash-5.1$ awx-manage showmigrations
Traceback (most recent call last):
File “/usr/bin/awx-manage”, line 8, in
sys.exit(manage())
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/init.py”, line 200, in manage
execute_from_command_line(sys.argv)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/init.py”, line 442, in execute_from_command_line
utility.execute()
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/init.py”, line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/base.py”, line 412, in run_from_argv
self.execute(*args, **cmd_options)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/base.py”, line 453, in execute
self.check()
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/base.py”, line 485, in check
all_issues = checks.run_checks(
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/checks/registry.py”, line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/checks/urls.py”, line 14, in check_url_config
return check_resolver(resolver)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/checks/urls.py”, line 24, in check_resolver
return check_method()
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/urls/resolvers.py”, line 494, in check
for pattern in self.url_patterns:
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/utils/functional.py”, line 57, in get
res = instance.dict[self.name] = self.func(instance)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/urls/resolvers.py”, line 715, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/utils/functional.py”, line 57, in get
res = instance.dict[self.name] = self.func(instance)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/urls/resolvers.py”, line 708, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib64/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/urls.py”, line 13, in
re_path(r’^api/‘, include(‘awx.api.urls’, namespace=‘api’)),
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/urls/conf.py”, line 38, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib64/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/api/urls/init.py”, line 5, in
from .urls import urlpatterns
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/api/urls/urls.py”, line 83, in
from .oauth2_root import urls as oauth2_root_urls
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/api/urls/oauth2_root.py”, line 10, in
from oauth2_provider import views
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/oauth2_provider/views/init.py”, line 18, in
from .oidc import ConnectDiscoveryInfoView, JwksInfoView, UserInfoView
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/oauth2_provider/views/oidc.py”, line 16, in
Application = get_application_model()
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/oauth2_provider/models.py”, line 571, in get_application_model
return apps.get_model(oauth2_settings.APPLICATION_MODEL)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/init.py”, line 119, in oauth2_getattribute
val = settings.OAUTH2_PROVIDER.get(attr)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/conf/settings.py”, line 527, in getattr_without_cache
return getattr(self._wrapped, name)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/conf/settings.py”, line 425, in getattr
value = self._get_local_with_cache(name)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cachetools/init.py”, line 724, in wrapper
v = method(self, *args, **kwargs)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/conf/settings.py”, line 420, in _get_local_with_cache
return self._get_local(name)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/conf/settings.py”, line 339, in _get_local
self._preload_cache()
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/conf/settings.py”, line 309, in _preload_cache
if settings_to_cache[setting.key] != SETTING_CACHE_NOTSET:
KeyError: b’AUTH_LDAP_GROUP_TYPE_PARAMS’
I’ve attached the output of the \dt and select commands as separate files as they’re a bit large to paste directly into the message body.
Thanks again for your help,
Neil
(attachments)
tables.txt (371 KB)
django_migrations.txt (31.3 KB)