Ansible tower setup failure

2,495 views
Skip to first unread message

Utsav Kumar

unread,
Aug 29, 2016, 10:24:57 AM8/29/16
to Ansible Project

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?

Oleg Ilyin

unread,
Sep 22, 2016, 12:37:37 PM9/22/16
to Ansible Project
Kumar,   did you solve this issue?  
I tried to install ansible-tower-setup-3.0.2 from scratch and got similar error.

понедельник, 29 августа 2016 г., 17:24:57 UTC+3 пользователь Utsav Kumar написал:

James Poplawski

unread,
May 25, 2017, 11:54:40 AM5/25/17
to Ansible Project, utsa...@gmail.com
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
Reply all
Reply to author
Forward
0 new messages