Why is the Ansible Automation Platform failing with "Permission denied: '/etc/tower/conf.d/custom.py'"?

Solution Verified - Updated -

Issue

  • Automation Controller service is started but showing Internal Server Error on the web UI
  • Ansible Automation Platform installer is showing a message similar to the following when trying to execute a task on the Automation Controllers

    IOError: [Errno 13] Permission denied: '/etc/tower/conf.d/ldap.py'
    
  • Log files within /var/log/supervisor are reporting an error similar to the following message

    Traceback (most recent call last):
    File "/usr/bin/awx-manage", line 8, in <module>
      sys.exit(manage())
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/__init__.py", line 152, in manage
      prepare_env()
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/__init__.py", line 107, in prepare_env
      if not settings.DEBUG:  # pragma: no cover
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/conf/__init__.py", line 102, in __getattr__
      self._setup(name)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/conf/__init__.py", line 89, in _setup
      self._wrapped = Settings(settings_module)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/conf/__init__.py", line 217, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    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/awx/settings/production.py", line 73, in <module>
      include(settings_file, optional(settings_files), scope=locals())
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/split_settings/tools.py", line 103, in include
      with open(included_file, 'rb') as to_compile:
    PermissionError: [Errno 13] Permission denied: '/etc/tower/conf.d/custom.py'
    

Environment

  • Ansible Automation Platform 1.2+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content