# Ansible tower setup failure

**URL:** <https://forum.ansible.com/t/ansible-tower-setup-failure/22394>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [August 26, 2016, 10:50am UTC](https://forum.ansible.com/t/ansible-tower-setup-failure/22394 "2016-08-26T10:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Utsav\_Kumar](https://avatars.discourse-cdn.com/v4/letter/u/f05b48/32.png) [@Utsav\_Kumar](https://forum.ansible.com/u/Utsav_Kumar)\
**Post date:** [August 26, 2016, 10:50am UTC](https://forum.ansible.com/t/ansible-tower-setup-failure/22394/1 "2016-08-26T10:50:29Z")

</div>

I downloaded the war file for ansible, and after changing the passwords in inventory file, i tried running the setup.sh script. But, its getting failed.

Following errors came during the setup playbook run:

TASK [preflight : Preflight check - Read in tower version] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “file not found: /var/lib/awx/.tower\_version”}  
…ignoring

TASK [migrations : Check to see if DATABASES is defined in the main settings file.] \*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “cmd”: “grep "DATABASES = {" /etc/tower/settings.py”, “delta”: “0:00:00.004295”, “end”: “2016-08-26 07:01:06.270207”, “failed”: true, “rc”: 2, “start”: “2016-08-26 07:01:06.265912”, “stderr”: “grep: /etc/tower/settings.py: No such file or directory”, “stdout”: “”, “stdout\_lines”: , “warnings”: }  
…ignoring

TASK [migrations : include] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: [localhost] =\> {“changed”: false, “skip\_reason”: “Conditional check failed”, “skipped”: true}

TASK [migrations : Check to see if celery is already configured for RabbitMQ.] \*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “cmd”: “grep "amqp://" /etc/tower/conf.d/celeryd.py”, “delta”: “0:00:00.003558”, “end”: “2016-08-26 07:01:06.483477”, “failed”: true, “rc”: 2, “start”: “2016-08-26 07:01:06.479919”, “stderr”: “grep: /etc/tower/conf.d/celeryd.py: No such file or directory”, “stdout”: “”, “stdout\_lines”: , “warnings”: }  
…ignoring

Following error is coming in the end:

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=31 changed=0 unreachable=0 failed=1

[error] Oops! An error occured while running setup.  
[warn] /var/log/tower does not exist.  
Setup log saved to setup.log.

How to resolve this?

---

<div class="post-metadata">

**Author:** ![Oleg\_Ilyin](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Oleg\_Ilyin](https://forum.ansible.com/u/Oleg_Ilyin)\
**Post date:** [September 22, 2016, 7:31am UTC](https://forum.ansible.com/t/ansible-tower-setup-failure/22394/2 "2016-09-22T07:31:51Z")

</div>

Kumar, did you solve this issue?  
I tried to install ansible-tower-setup-3.0.2 from scratch and got similar error.

---

<div class="post-metadata">

**Author:** ![James\_Poplawski](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@James\_Poplawski](https://forum.ansible.com/u/James_Poplawski)\
**Post date:** [May 23, 2017, 10:13pm UTC](https://forum.ansible.com/t/ansible-tower-setup-failure/22394/3 "2017-05-23T22:13:40Z")

</div>

I had to create /var/log/tower. Reran and found it errored out, but then I was able to look in the log file. My VM had insufficient RAM.

HTH
