Why does Ansible Automation Platform UI login fail with an error 502 Bad Gateway nginx?

Solution Verified - Updated -

Issue

  • Unable to log in to the Ansible Automation platform Web UI and getting an error message 502 Bad Gateway nginx.

  • Rerunning the setup script results in the following error.

    TASK [ansible.automation_platform_installer.preflight : Preflight check - check license type] ***
    fatal: [somehost.org]: FAILED! => {"changed": true, "cmd": "awx-manage check_license", "delta": "0:00:00.004448", "end": "2023-08-22 20:19:02.493105", "msg": "non-zero return code", "rc": 126, "start": "2023-08-22 20:19:02.488657", "stderr": "/bin/sh: /bin/awx-manage: /var/lib/awx/venv/awx/bin/python: bad interpreter: No such file or directory", "stderr_lines": ["/bin/sh: /bin/awx-manage: /var/lib/awx/venv/awx/bin/python: bad interpreter: No such file or directory"], "stdout": "", "stdout_lines": []}
    

Environment

  • Ansible Automation Platform 2.4

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