Unable to install containerized AAP

followed the instructions in the following video

and when I get to the task “Initialize the automation eda database” I get the following error

  msg: Can't run container automation-eda-init
  stderr: |-
    Traceback (most recent call last):
      File "/usr/bin/aap-eda-manage", line 8, in <module>
        sys.exit(main())
      File "/usr/lib/python3.9/site-packages/aap_eda/manage.py", line 18, in main
        execute_from_command_line(sys.argv)
      File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
        utility.execute()
      File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 416, in execute
        django.setup()
      File "/usr/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
        apps.populate(settings.INSTALLED_APPS)
      File "/usr/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate
        app_config.import_models()
      File "/usr/lib/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 "/usr/lib/python3.9/site-packages/ansible_base/authentication/models/__init__.py", line 3, in <module>
        from .social_auth import AuthenticatorUser
      File "/usr/lib/python3.9/site-packages/ansible_base/authentication/models/social_auth.py", line 3, in <module>
        from social_django.models import AbstractUserSocialAuth
      File "/usr/lib/python3.9/site-packages/social_django/__init__.py", line 4, in <module>
        from social_core.backends.base import BaseAuth
      File "/usr/lib/python3.9/site-packages/social_core/backends/base.py", line 3, in <module>
        from requests import ConnectionError, request
      File "/usr/lib/python3.9/site-packages/requests/__init__.py", line 164, in <module>
        from .api import delete, get, head, options, patch, post, put, request
      File "/usr/lib/python3.9/site-packages/requests/api.py", line 11, in <module>
        from . import sessions
      File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 15, in <module>
        from .adapters import HTTPAdapter
      File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 77, in <module>
        _preloaded_ssl_context.load_verify_locations(
    PermissionError: [Errno 13] Permission denied

This is on an up to date RHEL 9 host, I have a few docker containers running but nothing taking up the same ports.

Have you read the error message?

Yes, but im not entirely sure what would be causing the permission denied error. Im not as familiar with podman, and this is an automated installer directly from redhat, I am not as intimate with all the files it may be touching. I briefly looked at the playbook to get a vague idea of where to start looking

any help?

I commented out the automation eda portion of the red hat provided AAP containerized install playbook, and was able to complete the rest of the installation just fine. AAP and automation hub, it appears as though the automation eda init container is the only task having issues. I have attempted to resolve any permissions I could think of, added the parameter to run the container in privileged mode and still get the same error. any help would be appreciated.

Hi @William_Ortiz ,

Welcome to the Ansible Forum! I think the information you provided might not be enough to help you troubleshoot the issue, but here are a few pointers:

  1. Did you double check the configuration parameters in the inventory? In particular those related to the database?

  2. You might be hitting a containerized AAP install bug, did you create a support case with Red Hat? This Ansible forum is a community site, best effort and volunteers only. Although it’s totally fine to share and troubleshoot AAP here, there are things that only Red Hat support can help you solve when using the product.

    In this particular case, as mentioned in the containerized AAP install guide, this install method is a “Technology Preview”.

  3. You mention that you have a few “docker containers”.

    This is on an up to date RHEL 9 host, I have a few docker containers running but nothing taking up the same ports.

    Consider that containerized AAP runs on Podman and requires a minimal install of RHEL 9.2. Check the requirements in the install guide above.

@William_Ortiz . I hit the very same issue. Could you solve it?