awxweb:8052 not found when running jobs

https://github.com/ansible/awx/issues/135

Still having issues related to this.I rebuilt with the latest version and I’m stilling getting the same error. I can ping awx from awxweb and vice versa but if I try to curl the API from awx, it tells me that awxweb can’t be found. It’s almost like it’s trying to find awxweb outside of the container, because it’s giving me my companies custom 404 page.

Any help would be appreciated and if I need to provide more info please let me know.

That’s really wild. When you ping awxweb does it resolve internally to docker or to some system outside of the docker network?

You may have bridge networking configured… you may need to get a little fancier and make sure your docker network is isolated from your company network… the find another way to route traffice to the AWX front end.

It looks like it resolves internally fine.

[root@awx awx]# ping awxweb
PING awxweb (172.17.0.5) 56(84) bytes of data
64 bytes from axweb (172.17.0.5): icmp_seq1 ttl-64 time-0.0102 ms

64 bytes from axweb (172.17.0.5): icmp_seq2 ttl-64 time-0.0087 ms

64 bytes from axweb (172.17.0.5): icmp_seq3 ttl-64 time-0.0106 ms

64 bytes from axweb (172.17.0.5): icmp_seq4 ttl-64 time-0.0101 ms

I know another group in my company has gotten Tower to run and install, is the Tower environment the same setup as the AWX environment?

Tower and AWX are a little different. Tower is generally a bare metal/vm install while AWX requires a container environment (Docker or minishift/openshift). The deployment topology is a little different because of that also.

Hi,

i’ve already experienced such thing caused by my proxy set using usual environment variables, without “awxweb” append in the no_proxy variable.

are you in such scenario ?

Franck

another idea :

you run your containers using docker-compose without the link alias required to reach the container hostname ?

https://docs.docker.com/compose/compose-file/#links

my two additional cents

That does sound very similar. So you added awxweb to the no_proxy variable?

indeed:

no_proxy=‘.local,awxweb’

you can confirm it running a tcpdump before reproducing the issue, thus displaying the error message

Do I need to rebuild to change the proxy?

i think so

The only file I need to edit is the inventory file in the installer folder correct?

using the last revision of awx yes, variables can be found at the bottom of the inventory file and they are used by docker_image module used by the installer playbooks.
If you use a proxy and you didn’t register any entry for awxweb in your dns server, then you need to bypass the proxy for it otherwise the proxy server will be unable to resolve awxweb and will throw an error imho

Franck,

You were dead on! Thank you! I had to add no_proxy to the dockerfile and rebuilt and it worked.