# Not able to install AWX

**URL:** <https://forum.ansible.com/t/not-able-to-install-awx/26012>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [November 14, 2017, 2:27am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012 "2017-11-14T02:27:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 14, 2017, 2:27am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/1 "2017-11-14T02:27:25Z")

</div>

Hello Everyone,

I am just new to Ansible and AWX, so please have some patience with my questions and I am really thankful to you.

I am trying to install AWX but it fails with below error

Version info

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 14, 2017, 8:00am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/2 "2017-11-14T08:00:51Z")

</div>

Ok, that was looking like python was not pointing to the docker version , after resolving that , i get below error . and i think this might be related to docker setup…

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [November 14, 2017, 12:55pm UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/3 "2017-11-14T12:55:31Z")

</div>

Yeah I’m not sure what’s up with your docker install but I _will_ say that the version of docker you are using is over 2 years old.

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 15, 2017, 2:59am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/4 "2017-11-15T02:59:58Z")

</div>

Ok, that too sorted now,

docker --version  
Docker version 17.05.0-ce, build 89658be

But, it still throws error as below…

TASK [image\_build : Build sdist builder image] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /root/awx-devel/installer/image\_build/tasks/main.yml:50  
fatal: [localhost → localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Error connecting: Error while fetching server API version: **init** () got an unexpected keyword argument ‘buffering’”}  
to retry, use: --limit @/root/awx-devel/installer/install.retry

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

quest to conquer still continues 🙂

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 15, 2017, 3:14am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/5 "2017-11-15T03:14:10Z")

</div>

After enabling verbose , i could see this

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [November 15, 2017, 2:09pm UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/6 "2017-11-15T14:09:51Z")

</div>

“Error while fetching server API version” is typically what happens when Ansible can’t communicate with docker for whatever reason.

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 16, 2017, 7:21am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/7 "2017-11-16T07:21:52Z")

</div>

Thanks,

DO you have any commands/ things to check before trying AWX installation. ?

I see my docker instance is up and running :-

# docker info

Containers: 0  
Running: 0  
Paused: 0  
Stopped: 0  
Images: 0  
Server Version: 17.05.0-ce  
Storage Driver: overlay2  
Backing Filesystem: extfs  
Supports d\_type: true  
Native Overlay Diff: false  
Logging Driver: json-file  
Cgroup Driver: cgroupfs  
Plugins:  
Volume: local  
Network: bridge host macvlan null overlay  
Swarm: inactive  
Runtimes: runc  
Default Runtime: runc  
Init Binary: docker-init  
containerd version: 9048e5e50717ea4497b757314bad98ea3763c145  
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228  
init version: 949e6fa  
Kernel Version: 4.1.12-61.1.28.el6uek.x86\_64  
Operating System: Oracle Linux Server 6.9  
OSType: linux  
Architecture: x86\_64  
CPUs: 2  
Total Memory: 7.535GiB  
Name: dev-armor21.bbs.bunnings.com.au  
ID: U3QU:TMGJ:BHPU:H4QY:G4O4:2JB2:UOIN:CWVE:BEJ5:FJIC:C4IU:RUOB  
Docker Root Dir: /var/lib/docker  
Debug Mode (client): false  
Debug Mode (server): false  
Registry: [https://index.docker.io/v1/](https://index.docker.io/v1/)  
Experimental: false  
Insecure Registries:  
127.0.0.0/8  
Live Restore Enabled: false

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 16, 2017, 7:54am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/8 "2017-11-16T07:54:29Z")

</div>

Between, I was doing this installation on Oracle linux6, which I am finding too much difficult to fulfill all prerequisites in.

I will build try on OL7 and see how it goes.

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 27, 2017, 9:23am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/9 "2017-11-27T09:23:04Z")

</div>

Ok, I am on Linux 7.

Everything worked fine, till I decided to install AWX.

AWX installation is basic on the same host , and fails as below

},  
“msg”: “Error pulling image postgres:9.6 - 500 Server Error: Internal Server Error ("{"message":"Get [https://registry-1.docker.io/v2/:](https://registry-1.docker.io/v2/:) dial tcp: lookup [registry-1.docker.io](http://registry-1.docker.io) on 172.23.11.114:53: lame referral"}")”  
}  
to retry, use: --limit @/root/awx-devel/installer/install.retry

Did anyone seen this anytime?

Between, My instance in running behind the proxy.

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [November 28, 2017, 5:46am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/10 "2017-11-28T05:46:53Z")

</div>

It seems you are not able to pull the postgres container.  
As you wrote “My instance in running behind the proxy” → I believe thats the problem.

Make sure you´ll be able to connect the internet (not just http), try to download the “hello world” from docker and have look if it works.

If it does, i think you are quite close to install awx cotainers.

Christian

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [November 29, 2017, 7:11am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/11 "2017-11-29T07:11:11Z")

</div>

Indeed, that was the problem.

I setup correctly PROXY and SSL certificate, now AWX installation went fine.

BUT…  
docker logs -f awx\_task shows few errors which i am not able to understand how to sort that …

2017-11-29 07:09:06,191: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:\*\*@rabbitmq:5672/awx: [Errno 113] No route to host.  
Trying again in 32.00 seconds…

conn = \_connect(dsn, connection\_factory=connection\_factory, \*\*kwasync)  
OperationalError: could not connect to server: No route to host  
Is the server running on host “postgres” (172.17.0.2) and accepting  
TCP/IP connections on port 5432?

I check from my host i am able to telnet

telnet 172.17.0.2 5432  
Trying 172.17.0.2…  
Connected to 172.17.0.2.  
Escape character is ‘^]’.  
^]

> bye

docker ps  
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
a469073db788 ansible/awx\_task:latest “/tini – /bin/sh …” 45 minutes ago Up 45 minutes 8052/tcp awx\_task  
8610a693897d ansible/awx\_web:latest “/tini – /bin/sh …” About an hour ago Up About an hour 0.0.0.0:80-\>8052/tcp awx\_web  
7efc76b533f4 memcached:alpine “docker-entrypoint…” About an hour ago Up About an hour 11211/tcp memcached  
69300f7dc7d3 rabbitmq:3 “docker-entrypoint…” About an hour ago Up About an hour 4369/tcp, 5671-5672/tcp, 25672/tcp rabbitmq  
f8794d05a9ee postgres:9.6 “docker-entrypoint…” About an hour ago Up About an hour 5432/tcp postgres

---

<div class="post-metadata">

**Author:** ![christian.flickinger](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@christian.flickinger](https://forum.ansible.com/u/christian.flickinger)\
**Post date:** [December 1, 2017, 7:49am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/12 "2017-12-01T07:49:23Z")

</div>

Hmm iam not sure whats going wrong.

i would try to stop all containers and run the playbook again .

1. docker stop awx\_task awx\_web memcached rabbitmq postgres
2. ansible-playbook -i inventory install.yml

---

<div class="post-metadata">

**Author:** ![iamlightsocialxen](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@iamlightsocialxen](https://forum.ansible.com/u/iamlightsocialxen)\
**Post date:** [December 13, 2017, 7:48am UTC](https://forum.ansible.com/t/not-able-to-install-awx/26012/13 "2017-12-13T07:48:42Z")

</div>

Christian, thanks for all help.

I have tried what you mentioned.

I see below exception I am getting repeatedly

2017-12-12 23:46:26,510: DEBUG/ForkPoolWorker-1] Start from server, version: 0.9, properties: {‘information’: ‘Licensed under the MPL. See [http://www.rabbitmq.com/](http://www.rabbitmq.com/)’, ‘product’: ‘RabbitMQ’, ‘copyright’: ‘Copyright (C) 2007-2017 Pivotal Software, Inc.’, ‘capabilities’: {‘exchange\_exchange\_bindings’: True, ‘connection.blocked’: True, ‘authentication\_failure\_close’: True, ‘direct\_reply\_to’: True, ‘basic.nack’: True, ‘per\_consumer\_qos’: True, ‘consumer\_priorities’: True, ‘consumer\_cancel\_notify’: True, ‘publisher\_confirms’: True}, ‘cluster\_name’: ‘rabbit@9fedbdbf7139’, ‘platform’: ‘Erlang/OTP 20.1.7’, ‘version’: ‘3.7.0’}, mechanisms: [‘AMQPLAIN’, ‘PLAIN’], locales: [u’en\_US’]  
[2017-12-12 23:46:26,512: DEBUG/ForkPoolWorker-1] using channel\_id: 1  
[2017-12-12 23:46:26,513: DEBUG/ForkPoolWorker-1] Channel open  
[2017-12-12 23:46:26,515: DEBUG/MainProcess] pidbox received method active() [reply\_to:{u’routing\_key’: u’f4384dc6-3dcf-3d3b-a180-d15a4a5e1766’, u’exchange’: u’reply.celery.pidbox’} ticket:48e3c663-c2e0-4cba-872b-b81b529314f9]  
[2017-12-12 23:46:26,516: ERROR/MainProcess] Control command error: error(104, ‘Connection reset by peer’)  
Traceback (most recent call last):  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/celery/worker/pidbox.py”, line 42, in on\_message  
self.node.handle\_message(body, message)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/pidbox.py”, line 129, in handle\_message  
return self.dispatch(\*\*body)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/pidbox.py”, line 112, in dispatch  
ticket=ticket)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/pidbox.py”, line 135, in reply  
serializer=self.mailbox.serializer)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/pidbox.py”, line 265, in \_publish\_reply  
\*\*opts  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/messaging.py”, line 181, in publish  
exchange\_name, declare,  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/messaging.py”, line 194, in \_publish  
[maybe\_declare(entity) for entity in declare]  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/messaging.py”, line 102, in maybe\_declare  
return maybe\_declare(entity, self.channel, retry, \*\*retry\_policy)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/common.py”, line 129, in maybe\_declare  
return \_maybe\_declare(entity, declared, ident, channel, orig)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/common.py”, line 135, in \_maybe\_declare  
entity.declare(channel=channel)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/kombu/entity.py”, line 185, in declare  
nowait=nowait, passive=passive,  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/amqp/channel.py”, line 616, in exchange\_declare  
wait=None if nowait else spec.Exchange.DeclareOk,  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/amqp/abstract\_channel.py”, line 50, in send\_method  
conn.frame\_writer(1, self.channel\_id, sig, args, content)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/amqp/method\_framing.py”, line 166, in write\_frame  
write(view[:offset])  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/amqp/transport.py”, line 258, in write  
self.\_write(s)  
File “/usr/lib64/python2.7/socket.py”, line 224, in meth  
return getattr(self.\_sock,name)(\*args)  
error: [Errno 104] Connection reset by peer  
[2017-12-12 23:46:26,522: DEBUG/MainProcess] Closed channel #3  
[2017-12-12 23:46:26,522: DEBUG/MainProcess] using channel\_id: 3  
[2017-12-12 23:46:26,524: DEBUG/MainProcess] Channel open  
2017-12-12 23:46:27,529 ERROR awx.main.scheduler Failed to retrieve active tasks from celery  
2017-12-12 23:46:27,529 ERROR awx.main.scheduler Failed to retrieve active tasks from celery  
[2017-12-12 23:46:27,529: ERROR/ForkPoolWorker-1] Failed to retrieve active tasks from celery  
[2017-12-12 23:46:27,605: INFO/ForkPoolWorker-1] Task awx.main.scheduler.tasks.run\_task\_manager[1cd58557-6ca8-46d3-92cf-d911145796f1] succeeded in 1.197403564s: None

Is there any checks I can perform to see if other containers in desired state?
