# AWX Initial Install Fails To Launch Web UI

**URL:** <https://forum.ansible.com/t/awx-initial-install-fails-to-launch-web-ui/38333>\
**Category:** AWX Project\
**Tags:** rhel, awx, kubernetes\
**Created:** [August 15, 2023, 1:51pm UTC](https://forum.ansible.com/t/awx-initial-install-fails-to-launch-web-ui/38333 "2023-08-15T13:51:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Duncan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/phil_duncan/32/7197_2.png) [@Phil\_Duncan](https://forum.ansible.com/u/Phil_Duncan)\
**Post date:** [August 15, 2023, 1:51pm UTC](https://forum.ansible.com/t/awx-initial-install-fails-to-launch-web-ui/38333/1 "2023-08-15T13:51:53Z")

</div>

This is the error message I am receiving:

**task path: /opt/ansible/roles/installer/tasks/install.yml:55\nfatal: [localhost]: FAILED! =\> {"changed": false, "module\_stderr": "/usr/local/lib/python3.8/site-packages/kubernetes/client/apis/init.py:10: DeprecationWarning: The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).\n warnings.warn(\nTraceback (most recent call last):\n File \"/opt/ansible/.ansible/tmp/ansible-tmp-1692104818.010782-171474-238028690979369/AnsiballZ\_k8s\_exec.py\", line 102, in \n \_ansiballz\_main()\n File \"/opt/ansible/.ansible/tmp/ansible-tmp-1692104818.010782-171474-238028690979369/AnsiballZ\_k8s\_exec.py\", line 94, in \_ansiballz\_main\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\n File \"/opt/ansible/.ansible/tmp/ansible-tmp-1692104818.010782-171474-238028690979369/AnsiballZ\_k8s\_exec.py\", line 40, in invoke\_module\n runpy.run\_module(mod\_name=‘ansible\_collections.kubernetes.core.plugins.modules.k8s\_exec’, init\_globals=None, run\_name=‘main’, alter\_sys=True)\n File \"/usr/lib64/python3.8/runpy.py\", line 207, in run\_module\n return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)\n File \"/usr/lib64/python3.8/runpy.py\", line 97, in \_run\_module\_code\n \_run\_code(code, mod\_globals, init\_globals,\n File \"/usr/lib64/python3.8/runpy.py\", line 87, in \_run\_code\n exec(code, run\_globals)\n File \"/tmp/ansible\_k8s\_exec\_payload\_rna56oce/ansible\_k8s\_exec\_payload.zip/ansible\_collections/kubernetes/core/plugins/modules/k8s\_exec.py\", line 245, in \n File \"/tmp/ansible\_k8s\_exec\_payload\_rna56oce/ansible\_k8s\_exec\_payload.zip/ansible\_collections/kubernetes/core/plugins/modules/k8s\_exec.py\", line 241, in main\n File \"/tmp/ansible\_k8s\_exec\_payload\_rna56oce/ansible\_k8s\_exec\_payload.zip/ansible\_collections/kubernetes/core/plugins/modules/k8s\_exec.py\", line 212, in execute\_module\nValueError: invalid literal for int() with base 10: ‘error executing command in container: http: invalid Host header’\n", "module\_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}\n\r\nPLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\r\nlocalhost : ok=59 changed=0 unreachable=0 failed=1 skipped=57 rescued=0 ignored=0 \r\n\n",“job”:“4870190885301418797”,“name”:“awx”,“namespace”:“awx”,“error”:“exit status 2”}**  
**{“level”:“error”,“ts”:1692104820.0656655,“msg”:“Reconciler error”,“controller”:“awx-controller”,“object”:{“name”:“awx”,“namespace”:“awx”},“namespace”:“awx”,“name”:“awx”,“reconcileID”:“5a259fcf-93f4-420c-9e4b-aeb2e57c14b7”,“error”:“event runner on failed”,“stacktrace”:“[sigs.k8s.io/controller-runtime/pkg/internal/controller.(\*Controller).processNextWorkItem](http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem)\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(\*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:234”}**

I’ve attached images of what I am currently seeing.

So all my AWX Pods are built and initialized fine, however the Web UI responses with a “404” not found error message when trying to navigate to the AWX UI URL.

Looking at my controller logs I see, this message…

**“The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead”**

I don’t see how I change the Kubernetes packages during the initial build process using awx-operator?

I originally was using awx-operator 0.3.0, and had several successful builds several months ago on RHEL/Centos 8 machines, using a Playbook I wrote, but now AWX isn’t loading the Web UI, which seems as a result of these weird issues with the kubernetes packages saying essentially:

**ansible\_k8s\_exec\_payload.zip/ansible\_collections/kubernetes/core/plugins/modules/k8s\_exec.py\", line 241, in main\n File \"/tmp/ansible\_k8s\_exec\_payload\_cptv36h9/ansible\_k8s\_exec\_payload.zip/ansible\_collections/kubernetes/core/plugins/modules/k8s\_exec.py\", line 212, in execute\_module\nValueError: invalid literal for int() with base 10: ‘error executing command in container: http: invalid Host header’ message**

I have upgraded to awx-operator 2.5.0, & yet the issues still remain.

Any help would be appreciated.

Phil

> **(attachments)**
>
> ![AWX-error-msg.PNG](https://us1.discourse-cdn.com/ansible/original/2X/e/e18a3355781d3bb335dbf6bbdb314c49504ab01d.png)  
> ![awx-running-pods.PNG](https://us1.discourse-cdn.com/ansible/original/2X/7/7423ace79d8bf3728410c9f3ed1bdb63c05766af.png)  
> ![awx-404-not-found.PNG](https://us1.discourse-cdn.com/ansible/original/2X/3/3d9a5beec3d0f4212f9539469dbbd54ae3cefde9.png)

---

<div class="post-metadata">

**Author:** ![Praveen\_Reddy](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Praveen\_Reddy](https://forum.ansible.com/u/Praveen_Reddy)\
**Post date:** [September 4, 2023, 3:42pm UTC](https://forum.ansible.com/t/awx-initial-install-fails-to-launch-web-ui/38333/2 "2023-09-04T15:42:22Z")

</div>

Has anyone responded to this yet?  
I’m seeing the same with 2.5.2 operator as well on ubuntu with K3s.

{“level”:“error”,“ts”:“2023-09-04T15:30:15Z”,“msg”:“Reconciler error”,“controller”:“awx-controller”,“object”:{“name”:“awx”,“namespace”:“awx”},“namespace”:“awx”,“name”:“awx”,“reconcileID”:“3c924f4b-48af-4819-94a7-22baff688395”,“error”:“event runner on failed”,“stacktrace”:“[sigs.k8s.io/controller-runtime/pkg/internal/controller.(\*Controller).reconcileHandler](http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler)\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(\*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(\*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.5/pkg/internal/controller/controller.go:235”}

-Praveen

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [September 6, 2023, 6:59pm UTC](https://forum.ansible.com/t/awx-initial-install-fails-to-launch-web-ui/38333/3 "2023-09-06T18:59:35Z")

</div>

can you provide your AWX spec yaml file you used to deploy?

do you have the same issues if you do a fresh install of latest AWX (and not an upgrade)?

AWX Team

---

<div class="post-metadata">

**Author:** ![Phil\_Duncan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/phil_duncan/32/7197_2.png) [@Phil\_Duncan](https://forum.ansible.com/u/Phil_Duncan)\
**Post date:** [September 6, 2023, 11:47pm UTC](https://forum.ansible.com/t/awx-initial-install-fails-to-launch-web-ui/38333/4 "2023-09-06T23:47:03Z")

</div>

I was able to solve this….

There’s an issue with the newer versions of docker, that breaks the AWX install.

I was able to get AWX installed using k3s but I had to make sure I did not use the docker option when initially installing k3s, or have docker installed on my system.

It didn’t matter what awx-operator version I used, the awx install still failed, It wasn’t until I read that there might be some issue with the go-lang module that newer docker versions might be complied with did I test out the AWX install with docker removed, and it worked.

Phil
