# Installation Ansible Automation Platform 2.5 nginx error

**URL:** <https://forum.ansible.com/t/installation-ansible-automation-platform-2-5-nginx-error/41430>\
**Category:** Get Help\
**Tags:** rhel, aap, awx\
**Created:** [March 31, 2025, 10:56am UTC](https://forum.ansible.com/t/installation-ansible-automation-platform-2-5-nginx-error/41430 "2025-03-31T10:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teja1233](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@teja1233](https://forum.ansible.com/u/teja1233)\
**Post date:** [March 31, 2025, 10:56am UTC](https://forum.ansible.com/t/installation-ansible-automation-platform-2-5-nginx-error/41430/1 "2025-03-31T10:56:02Z")

</div>

I’m installing on single RHEL 9.4 VM  
Here is my inventory  
[automationcontroller]  
myserver.AAP ansible\_connection=local ansible\_host=192.168.1.18

[automationgateway]  
gateway.AAP ansible\_connection=local ansible\_host=192.168.1.18

[database]  
database ansible\_connection=local ansible\_host=192.168.1.18

[all:vars]  
admin\_password=‘admin’  
redis\_mode=standalone  
pg\_host=‘localhost’  
pg\_port=5432  
pg\_database=‘awx’  
pg\_username=‘awx’  
pg\_password=‘redhat’  
#pg\_sslmode=‘prefer’

registry\_url=‘[registry.redhat.io](http://registry.redhat.io)’  
registry\_username=‘’  
registry\_password=‘’

# Paramètres spécifiques de l’automation gateway

automationgateway\_admin\_password=‘admin’  
automationgateway\_pg\_host=‘localhost’  
automationgateway\_pg\_port=5432  
automationgateway\_pg\_database=‘automationgateway’  
automationgateway\_pg\_username=‘automationgateway’  
automationgateway\_pg\_password=‘redhat’  
#automationgateway\_pg\_sslmode=‘prefer’ i got this error when i run setup.sh error connecting to controller API . terminal shows : TASK [ansible.automation\_platform\_installer.automationgateway : Flush handlers] \*\*\*

RUNNING HANDLER [ansible.automation\_platform\_installer.automationgateway : reload nginx] \*\*\*  
fatal: [gateway.AAP]: FAILED! =\> {“changed”: false, “msg”: “Unable to start service nginx.service: Job for nginx.service failed because the control process exited with error code.\nSee "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.\n”}

TASK [Run repo\_management (teardown)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [ansible.automation\_platform\_installer.repo\_management : Disable Automation Platform repository] \*\*\*  
skipping: [gateway.AAP] =\> {“changed”: false, “false\_condition”: “extra\_repos is defined”, “skip\_reason”: “Conditional result was False”}

TASK [ansible.automation\_platform\_installer.repo\_management : Disable Automation Platform RHSM repository] \*\*\*  
changed: [gateway.AAP] =\> {“changed”: true, “cmd”: [“subscription-manager”, “repos”, “–disable”, “ansible-automation-platform-2.5-for-rhel-9-x86\_64-rpms”], “delta”: “0:00:36.133129”, “end”: “2025-03-31 11:55:28.936333”, “msg”: “”, “rc”: 0, “start”: “2025-03-31 11:54:52.803204”, “stderr”: “”, “stderr\_lines”: , “stdout”: “Le référentiel « ansible-automation-platform-2.5-for-rhel-9-x86\_64-rpms » est désactivé pour ce système.”, “stdout\_lines”: [“Le référentiel « ansible-automation-platform-2.5-for-rhel-9-x86\_64-rpms » est désactivé pour ce système.”]}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
database : ok=81 changed=8 unreachable=0 failed=0 skipped=76 rescued=0 ignored=0  
gateway.AAP : ok=178 changed=24 unreachable=0 failed=1 skipped=199 rescued=0 ignored=0  
localhost : ok=0 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0  
myserver.AAP : ok=85 changed=9 unreachable=0 failed=0 skipped=109 rescued=0 ignored=0

[error] Oops! An error occurred while running setup.  
Setup log saved to /var/log/tower/setup-2025-03-31-11:32:08.log.  
[teja@gateway ansible-automation-platform-setup-2.5-10]$ but when i fix nginx error by killing process envoy and modifying uwsgi stream and rerun setup.sh again the error is the same about nginx . is the problem i’m installing gateway and controller on the same VM ? I tried to use different ips for controller and gateway but same result

---

<div class="post-metadata">

**Author:** ![davidj](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@davidj](https://forum.ansible.com/u/davidj)\
**Post date:** [May 20, 2025, 3:11pm UTC](https://forum.ansible.com/t/installation-ansible-automation-platform-2-5-nginx-error/41430/2 "2025-05-20T15:11:35Z")

</div>

What is the status of your SElinux ?
