Why is the Ansible Automation Platform failing with "Permission denied: '/var/log/tower/callback_receiver.log'"?

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

    ValueError: Unable to configure handler 'callback_receiver': [Errno 13] Permission denied: '/var/log/tower/callback_receiver.log'"
    
  • Log files within /var/log/supervisor are reporting an error similar to the following message

    Traceback (most recent call last):
    File "/var/lib/awx/venv/awx/bin/daphne", line 8, in <module>
      sys.exit(CommandLineInterface.entrypoint())
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/daphne/cli.py", line 170, in entrypoint
      cls().run(sys.argv[1:])
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/daphne/cli.py", line 232, in run
      application = import_by_path(args.application)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/daphne/utils.py", line 12, in import_by_path
      target = importlib.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 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/asgi.py", line 38, in <module>
      django.setup()
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/__init__.py", line 19, in setup
      configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/utils/log.py", line 76, in configure_logging
      logging_config_func(logging_settings)
    File "/usr/lib64/python3.9/logging/config.py", line 809, in dictConfig
      dictConfigClass(config).configure()
    File "/usr/lib64/python3.9/logging/config.py", line 571, in configure
      raise ValueError('Unable to configure handler '
    ValueError: Unable to configure handler 'cache_clear'
    Traceback (most recent call last):
    File "/usr/lib64/python3.9/logging/config.py", line 564, in configure
      handler = self.configure_handler(handlers[name])
    File "/usr/lib64/python3.9/logging/config.py", line 745, in configure_handler
      result = factory(**kwargs)
    File "/usr/lib64/python3.9/logging/handlers.py", line 470, in __init__
      logging.FileHandler.__init__(self, filename, mode=mode,
    File "/usr/lib64/python3.9/logging/__init__.py", line 1146, in __init__
      StreamHandler.__init__(self, self._open())
    File "/usr/lib64/python3.9/logging/__init__.py", line 1175, in _open
      return open(self.baseFilename, self.mode, encoding=self.encoding,
    PermissionError: [Errno 13] Permission denied: '/var/log/tower/cache_clear.log'
    

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