# Ansible tower setup fails (centos 6.5)

**URL:** <https://forum.ansible.com/t/ansible-tower-setup-fails-centos-6-5/17224>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [January 8, 2015, 11:33pm UTC](https://forum.ansible.com/t/ansible-tower-setup-fails-centos-6-5/17224 "2015-01-08T23:33:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [January 8, 2015, 11:33pm UTC](https://forum.ansible.com/t/ansible-tower-setup-fails-centos-6-5/17224/1 "2015-01-08T23:33:04Z")

</div>

I just tried to run the latest ansible tower setup (2.1.0) and it failed installing redis with the following error:

TASK: [packages\_el | install yum repositories] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> (item=[http://download.opensuse.org/repositories/home:cedric-vincent/CentOS\_CentOS-6/home:cedric-vincent.repo](http://download.opensuse.org/repositories/home:cedric-vincent/CentOS_CentOS-6/home:cedric-vincent.repo)) =\> {“changed”: false, “dest”: “/etc/yum.repos.d/home:cedric-vincent.repo”, “gid”: 0, “group”: “root”, “item”: “[http://download.opensuse.org/repositories/home:cedric-vincent/CentOS\_CentOS-6/home:cedric-vincent.repo](http://download.opensuse.org/repositories/home:cedric-vincent/CentOS_CentOS-6/home:cedric-vincent.repo)”, “md5sum”: “6bde4c4761979e3786e068ef764e27e7”, “mode”: “0644”, “msg”: “OK (306 bytes)”, “owner”: “root”, “secontext”: “unconfined\_u:object\_r:etc\_t:s0”, “sha256sum”: “”, “size”: 306, “src”: “/tmp/tmpLwijnm”, “state”: “file”, “uid”: 0, “url”: “[http://download.opensuse.org/repositories/home:cedric-vincent/CentOS\_CentOS-6/home:cedric-vincent.repo](http://download.opensuse.org/repositories/home:cedric-vincent/CentOS_CentOS-6/home:cedric-vincent.repo)”}  
failed: [localhost] =\> (item=[https://copr.fedoraproject.org/coprs/jlaska/redis-28/repo/epel-6/jlaska-redis-28-epel-6.repo](https://copr.fedoraproject.org/coprs/jlaska/redis-28/repo/epel-6/jlaska-redis-28-epel-6.repo)) =\> {“failed”: true, “item”: “[https://copr.fedoraproject.org/coprs/jlaska/redis-28/repo/epel-6/jlaska-redis-28-epel-6.repo](https://copr.fedoraproject.org/coprs/jlaska/redis-28/repo/epel-6/jlaska-redis-28-epel-6.repo)”}

msg: Unsupported proxy scheme: https. Currently ansible only supports HTTP proxies.

FATAL: all hosts have already failed – aborting

I had to edit roles/packages\_el/vars/CentOS-6.yml and change the protocol for the URL for jlaska-redis-28-epel-6.repo to http from https to get it to work.

Once I fixed the above, the script continued until hitting the following error:

TASK: [postgres | determine if postgresql user exists] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost] =\> {“changed”: false, “cmd”: [“psql”, “postgres”, “-tAc”, “SELECT 1 FROM pg\_roles WHERE rolname=‘awx’”], “delta”: “0:00:00.038819”, “end”: “2015-01-08 15:09:26.522631”, “failed”: true, “failed\_when\_result”: true, “rc”: 2, “start”: “2015-01-08 15:09:26.483812”, “stdout\_lines”: }  
stderr: psql: could not connect to server: No such file or directory  
Is the server running locally and accepting  
connections on Unix domain socket “/tmp/.s.PGSQL.5432”?  
…ignoring

TASK: [postgres | create the postgresql user for awx] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost] =\> {“failed”: true}  
msg: unable to connect to database: could not connect to server: No such file or directory  
Is the server running locally and accepting  
connections on Unix domain socket “/tmp/.s.PGSQL.5432”?

FATAL: all hosts have already failed – aborting

To fix this I edited vi roles/postgres/tasks/conf.yml and added state=started to the postgres service definition (‘configure postgresql to startup automatically’).

I ran setup.sh again and it got past the previous error but then the following happened:

TASK: [awx\_install | create awx database schema] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost] =\> {“changed”: false, “cmd”: [“awx-manage”, “syncdb”, “–noinput”], “delta”: “0:00:03.017540”, “end”: “2015-01-08 15:16:46.468519”, “rc”: 1, “start”: “2015-01-08 15:16:43.450979”, “stdout\_lines”: [“Syncing…”]}  
stderr: Traceback (most recent call last):  
File “/usr/bin/awx-manage”, line 9, in   
load\_entry\_point(‘ansible-tower==2.1.0’, ‘console\_scripts’, ‘awx-manage’)()  
File “/usr/lib/python2.6/site-packages/awx/ **init**.py”, line 91, in manage  
File “/usr/lib64/python2.6/site-packages/django/core/management/ **init**.py”, line 399, in execute\_from\_command\_line  
utility.execute()  
File “/usr/lib64/python2.6/site-packages/django/core/management/ **init**.py”, line 392, in execute  
self.fetch\_command(subcommand).run\_from\_argv(self.argv)  
File “/usr/lib64/python2.6/site-packages/django/core/management/base.py”, line 242, in run\_from\_argv  
self.execute(\*args, \*\*options. **dict** )  
File “/usr/lib64/python2.6/site-packages/django/core/management/base.py”, line 285, in execute  
output = self.handle(\*args, \*\*options)  
File “/usr/lib64/python2.6/site-packages/django/core/management/base.py”, line 415, in handle  
return self.handle\_noargs(\*\*options)  
File “/usr/lib/python2.6/site-packages/awx/lib/site-packages/south/management/commands/syncdb.py”, line 92, in handle\_noargs  
syncdb.Command().execute(\*\*options)  
File “/usr/lib64/python2.6/site-packages/django/core/management/base.py”, line 285, in execute  
output = self.handle(\*args, \*\*options)  
File “/usr/lib64/python2.6/site-packages/django/core/management/base.py”, line 415, in handle  
return self.handle\_noargs(\*\*options)  
File “/usr/lib64/python2.6/site-packages/django/core/management/commands/syncdb.py”, line 57, in handle\_noargs  
cursor = connection.cursor()  
File “/usr/lib64/python2.6/site-packages/django/db/backends/ **init**.py”, line 162, in cursor  
cursor = util.CursorWrapper(self.\_cursor(), self)  
File “/usr/lib64/python2.6/site-packages/django/db/backends/ **init**.py”, line 132, in \_cursor  
self.ensure\_connection()  
File “/usr/lib64/python2.6/site-packages/django/db/backends/ **init**.py”, line 127, in ensure\_connection  
self.connect()  
File “/usr/lib64/python2.6/site-packages/django/db/utils.py”, line 99, in **exit**  
six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
File “/usr/lib64/python2.6/site-packages/django/db/backends/ **init**.py”, line 127, in ensure\_connection  
self.connect()  
File “/usr/lib64/python2.6/site-packages/django/db/backends/ **init**.py”, line 115, in connect  
self.connection = self.get\_new\_connection(conn\_params)  
File “/usr/lib64/python2.6/site-packages/django/db/backends/postgresql\_psycopg2/base.py”, line 115, in get\_new\_connection  
return Database.connect(\*\*conn\_params)  
django.db.utils.OperationalError: FATAL: password authentication failed for user “awx”  
stdout: Syncing…

FATAL: all hosts have already failed – aborting

This is as far as I’ve got right now, I haven’t got time to go further at this point but I thought I’d post my issues so far all the same.

Guy

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [January 8, 2015, 11:45pm UTC](https://forum.ansible.com/t/ansible-tower-setup-fails-centos-6-5/17224/2 "2015-01-08T23:45:26Z")

</div>

Hi,

Please ask Tower questions to [support@ansible.com](mailto:support@ansible.com) - this list is for the open source project. We’ll be super happy to help you over there.

Thanks!

–Michael

---

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [January 9, 2015, 7:35pm UTC](https://forum.ansible.com/t/ansible-tower-setup-fails-centos-6-5/17224/3 "2015-01-09T19:35:31Z")

</div>

Oh, my apologies. Will do 🙂
