-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
Unspecified
-
None
-
False
-
-
False
-
Moderate
Description
I've pulled the container from quay.io/pulp/galaxy:4.9.2 and container is failing to install the rest of galaxy_ng
```
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/nginx/template_nginx.py", line 26, in <module>
django.setup()
File "/usr/local/lib/python3.9/site-packages/django/_init_.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", line 124, in populate
app_config.ready()
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/apps.py", line 245, in ready
super().ready()
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/apps.py", line 121, in ready
self.import_viewsets()
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/apps.py", line 158, in import_viewsets
from pulpcore.app.viewsets import NamedModelViewSet
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/viewsets/_init_.py", line 1, in <module>
from .base import (
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/viewsets/base.py", line 11, in <module>
from rest_framework import viewsets
File "/usr/local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 27, in <module>
from rest_framework import generics, mixins, views
File "/usr/local/lib/python3.9/site-packages/rest_framework/generics.py", line 9, in <module>
from rest_framework import mixins, views
File "/usr/local/lib/python3.9/site-packages/rest_framework/views.py", line 17, in <module>
from rest_framework.schemas import DefaultSchema
File "/usr/local/lib/python3.9/site-packages/rest_framework/schemas/_init_.py", line 33, in <module>
authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES,
File "/usr/local/lib/python3.9/site-packages/rest_framework/settings.py", line 225, in _getattr_
val = perform_import(val, attr)
File "/usr/local/lib/python3.9/site-packages/rest_framework/settings.py", line 168, in perform_import
return [import_from_string(item, setting_name) for item in val]
File "/usr/local/lib/python3.9/site-packages/rest_framework/settings.py", line 168, in <listcomp>
return [import_from_string(item, setting_name) for item in val]
File "/usr/local/lib/python3.9/site-packages/rest_framework/settings.py", line 180, in import_from_string
raise ImportError(msg)
ImportError: Could not import 'galaxy_ng.app.auth.session.SessionAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ModuleNotFoundError: No module named 'galaxy_ng.app.auth.session'.
nginx: [emerg] no "events" section in configuration
Already migrated!
Calling /etc/init/pulpcore-content
which: no pulpcore-content in (/command:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
[2024-08-22 21:04:27 +0000] [2970] [INFO] Starting gunicorn 22.0.0
[2024-08-22 21:04:27 +0000] [2970] [INFO] Listening at: http://127.0.0.1:24816 (2970)
[2024-08-22 21:04:27 +0000] [2970] [INFO] Using worker: aiohttp.GunicornWebWorker
[2024-08-22 21:04:27 +0000] [2976] [INFO] Booting worker with pid: 2976
[2024-08-22 21:04:27 +0000] [2977] [INFO] Booting worker with pid: 2977
Already migrated!
Calling /etc/init/pulpcore-worker
Already migrated!
Calling /etc/init/pulpcore-api
which: no pulpcore-api in (/command:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
[2024-08-22 21:04:27 +0000] [2983] [INFO] Starting gunicorn 22.0.0
[2024-08-22 21:04:27 +0000] [2983] [INFO] Listening at: http://127.0.0.1:24817 (2983)
[2024-08-22 21:04:27 +0000] [2983] [INFO] Using worker: sync
[2024-08-22 21:04:27 +0000] [2989] [INFO] Booting worker with pid: 2989
[2024-08-22 21:04:27 +0000] [2992] [INFO] Booting worker with pid: 2992
Calling /etc/init/nginx
[2024-08-22 21:04:29 +0000] [2977] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/rest_framework/settings.py", line 177, in import_from_string
return import_string(val)
File "/usr/local/lib/python3.9/site-packages/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "/usr/local/lib/python3.9/site-packages/django/utils/module_loading.py", line 15, in cached_import
module = import_module(module_path)
File "/usr/lib64/python3.9/importlib/_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'galaxy_ng.app.auth.session'
```
Key Dependency Versions
pulp/galaxy:4.9.2
Note: Bug filers can grab dependency package versions from the api root which has pulpcore, pulp_ansible, pulp_container, and galaxy-importer. For the c.rh.c the api root is https://console.redhat.com/api/automation-hub/
Steps to Reproduce
Followed guide from https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/overview/
Used default parameters other than changing localhost:8080 to FQDN of machine (galaxy.example.com:8080). Does not work using localhost:8080 either.
Machine is behind a corporate proxy. Docker proxy and system proxy configuration was configured to used the corporate proxy,
This issue happens every time. Tried 4.9.0-2 and 'latest'.
Actual Behavior
ModuleNotFoundError: No module named 'galaxy_ng.app.auth.session'
Expected Behavior
galaxy_ng.app.auth.session should already be installed with the container I believe.