Okay I figured this one out. You have to add the proxy before ansible-galaxy install. Then it works like a charm. I am not sure, why my container starts and services in the container itself crash.
AttributeError: 'Settings' object has no attribute 'ANSIBLE_BASE_TEAM_MODEL'
2024-01-17 12:35:05,115 WARN exited: awx-rsyslog-configurer (exit status 1; not expected)
Traceback (most recent call last):
2024-01-17 12:35:05,149 INFO spawned: 'awx-rsyslog-configurer' with pid 888
File "/usr/local/bin/awx-manage", line 9, in <module>
load_entry_point('awx', 'console_scripts', 'awx-manage')()
File "/awx_devel/awx/__init__.py", line 175, 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 416, in execute
django.setup()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
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 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/__init__.py", line 3, in <module>
from .organization import AbstractOrganization
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/organization.py", line 9, in <module>
class AbstractOrganization(UniqueNamedCommonModel):
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/organization.py", line 28, in AbstractOrganization
settings.ANSIBLE_BASE_TEAM_MODEL,
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/conf/__init__.py", line 104, in __getattr__
val = getattr(_wrapped, name)
AttributeError: 'Settings' object has no attribute 'ANSIBLE_BASE_TEAM_MODEL'
useradd -g nginx nginx
useradd: user 'nginx' already exists
make[1]: Leaving directory '/awx_devel'
make[1]: *** [Makefile:249: nginx] Error 9
2024-01-17 12:35:05,283 WARN exited: awx-nginx (exit status 2; not expected)
2024-01-17 12:35:05,284 INFO spawned: 'awx-nginx' with pid 893
make[1]: Entering directory '/awx_devel'
Traceback (most recent call last):
File "/usr/local/bin/awx-manage", line 9, in <module>
load_entry_point('awx', 'console_scripts', 'awx-manage')()
File "/awx_devel/awx/__init__.py", line 175, 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 416, in execute
django.setup()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
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 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/__init__.py", line 3, in <module>
from .organization import AbstractOrganization
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/organization.py", line 9, in <module>
class AbstractOrganization(UniqueNamedCommonModel):
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/organization.py", line 28, in AbstractOrganization
settings.ANSIBLE_BASE_TEAM_MODEL,
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/conf/__init__.py", line 104, in __getattr__
val = getattr(_wrapped, name)
AttributeError: 'Settings' object has no attribute 'ANSIBLE_BASE_TEAM_MODEL'
2024-01-17 12:35:05,575 WARN exited: awx-ws-heartbeat (exit status 1; not expected)
2024-01-17 12:35:05,575 WARN exited: awx-wsrelay (exit status 1; not expected)
Traceback (most recent call last):
File "/usr/local/bin/awx-manage", line 9, in <module>
2024-01-17 12:35:05,680 INFO spawned: 'awx-wsrelay' with pid 901
2024-01-17 12:35:05,682 INFO spawned: 'awx-ws-heartbeat' with pid 902
load_entry_point('awx', 'console_scripts', 'awx-manage')()
File "/awx_devel/awx/__init__.py", line 175, 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 416, in execute
django.setup()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
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 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/__init__.py", line 3, in <module>
from .organization import AbstractOrganization
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/organization.py", line 9, in <module>
class AbstractOrganization(UniqueNamedCommonModel):
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/ansible_base/models/organization.py", line 28, in AbstractOrganization
settings.ANSIBLE_BASE_TEAM_MODEL,
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/conf/__init__.py", line 104, in __getattr__
val = getattr(_wrapped, name)
AttributeError: 'Settings' object has no attribute 'ANSIBLE_BASE_TEAM_MODEL'
2024-01-17 12:35:05,908 WARN exited: awx-dispatcher (exit status 1; not expected)
2024-01-17 12:35:05,908 WARN received SIGTERM indicating exit request
2024-01-17 12:35:05,908 INFO waiting for stdout, rsyslog-4xx-recovery, awx-receiver, awx-uwsgi, awx-daphne, awx-nginx, awx-wsrelay, awx-rsyslogd, awx-ws-heartbeat, awx-rsyslog-configurer, awx-cache-clear, awx-autoreload, awx-receptor to die
2024-01-17 12:35:05,909 WARN stopped: awx-receptor (terminated by SIGTERM)
make[1]: *** wait: No child processes. Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes. Stop.
2024-01-17 12:35:05,910 WARN stopped: awx-autoreload (exit status 2)
2024-01-17 12:35:05,910 WARN stopped: awx-uwsgi (terminated by SIGKILL)
2024-01-17 12:35:05,910 WARN stopped: awx-nginx (terminated by SIGTERM)
2024-01-17 12:35:05,910 WARN stopped: awx-wsrelay (terminated by SIGTERM)
2024-01-17 12:35:05,911 INFO stopped: awx-rsyslogd (exit status 0)
2024-01-17 12:35:05,911 WARN stopped: awx-ws-heartbeat (terminated by SIGTERM)
2024-01-17 12:35:05,913 WARN stopped: awx-rsyslog-configurer (terminated by SIGTERM)
2024-01-17 12:35:05,913 WARN stopped: awx-receiver (terminated by SIGTERM)
2024-01-17 12:35:05,914 WARN stopped: awx-cache-clear (terminated by SIGTERM)
make[1]: *** [Makefile:229: daphne] Terminated
2024-01-17 12:35:05,914 WARN stopped: awx-daphne (terminated by SIGTERM)
2024-01-17 12:35:05,915 WARN stopped: rsyslog-4xx-recovery (terminated by SIGTERM)
2024-01-17 12:35:05,915 WARN stopped: stdout (terminated by SIGTERM)
make: *** wait: No child processes. Stop.
This is the last traceback, that I got from the Docker container.