Not able to access web UI

Hi All,

I’ve deployed AWX using k3s.

kubectl get pods
NAME READY STATUS RESTARTS AGE
awx-web-57755957d7-z26z5 3/3 Running 6 (21d ago) 61d
awx-postgres-13-0 1/1 Running 2 (21d ago) 61d
awx-task-664d55cfb4-zglz4 4/4 Running 4 (21d ago) 21d
awx-operator-controller-manager-57867569c4-5f5b5 2/2 Running 24 (5d ago) 61d

kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
awx-operator-controller-manager-metrics-service ClusterIP 10.43.15.252 8443/TCP 61d
awx-postgres-13 ClusterIP None 5432/TCP 61d
awx-service NodePort 10.43.142.230 80:30080/TCP 61d

In Application gateway also, I’ve added listener and opened the ports and added custom dns as well
HTTP-80
HTTPS-30080

I was able to access the pods and able to use it but still not able to get the hit rom
https://xxxxxxxx.xxxx.xxxxxx.xx.com:30080/

Kindly help me on this

Thanks,
Shaik

Sorry, still not able to access it from web

Have you tried removing the :30080?

Yes, 404 getting

I notice in your initial post you mentioned that you opened ports HTTP-80 and HTTP-443 in your Application gateway.
Have you added HTTP-443?

Actually after having port 443 also same issue. So what I’ve done is instead of 443, I’ve added 30080 for redirection.

And there is no service running on 30080 port.

FYI: without 30080 it’s showing 404 and with 30080 “too long to respond”

firewall-cmd --list-ports
30080/tcp 8080/tcp 9080/tcp 8000/tcp

can you please help me with reinstalling it from the beginning.

Hi Shaik,
I followed the procedure described at https://github.com/kurokobo/awx-on-k3s.
You don’t need to use CentOS 8 if you don’t want to, I used Debian 10 and it’s fine.
You need to make sure that the git and make packages are installed.

Thanks, actually I need to install it on oracle linux 7.9. I followed these instructions and I struck at certificate step.

Hi Michael,

I found errors in logs

“level”:“error”,“ts”:1682429269.4878714,“logger”:“logging_event_handler”,“msg”:“”,“name”:“awx”,“namespace”:“awx”,“gvk”:“awx.ansible.com/v1beta1, Kind=AWX”,“event_type”:“runner_on_failed”,“job”:“3982367715082490158”,“EventData.Task”:“Check if there are any super users defined.”,“EventData.TaskArgs”:“”,“EventData.FailedTaskPath”:“/opt/ansible/roles/installer/tasks/initialize_django.yml:2”,“error”:“[playbook task failed]”,“stacktrace”:"github.com/operator-framework/operator-sdk/internal/ansible/events.loggingEventHandler.Handle\n\t/workspace/internal/ansible/events/log_events.go:111

similarly
“level”:“error”,“ts”:1682429296.5071847,“logger”:“logging_event_handler”,“msg”:“”,“name”:“awx”,“namespace”:“awx”,“gvk”:“awx.ansible.com/v1beta1, Kind=AWX”,“event_type”:“runner_on_failed”,“job”:“3982367715082490158”,“EventData.Task”:“Check if legacy queue is present”,“EventData.TaskArgs”:“”,“EventData.FailedTaskPath”:“/opt/ansible/roles/installer/tasks/initialize_django.yml:39”,“error”:“[playbook task failed]”,“stacktrace”:"github.com/operator-framework/operator-sdk/internal/ansible/events.loggingEventHandler.Handle\n\t/workspace/internal/ansible/events/log_events.go:111

can you please help me on this.

are you able to successfully curl the api? also are you running this in a vm somewhere? If you log into the vm, can you open a browser to that url?

AWX Team

Hi Team,

I got this, curl http://xx.xx.xx.xx:30080/api/
{“description”:“AWX REST API”,“current_version”:“/api/v2/”,“available_versions”:{“v2”:“/api/v2/”},“oauth2”:“/api/o/”,“custom_logo”:“”,“custom_login_info”:“”,“login_redirect_override”:“”} (here ip is private)

but getting “This site can’t be reached”, when I hit the URL.

Hi Team,

Also can you see this,

curl http://10.22.34.xx:30080
You need to enable JavaScript to run this app..app{height:100%}