websocket failing and job output is not refreshing

322 views
Skip to first unread message

P R

unread,
Feb 20, 2023, 5:41:03 AM2/20/23
to AWX Project
So I have deployed awx using operator


kind: Kustomization
resources:
images:
    newTag: 1.2.0
namespace: awx

with nginx ingress enabled

---
kind: AWX
metadata:
  name: awx-infra
spec:
  postgres_configuration_secret: awx-infra-postgres-configuration
  ingress_type: ingress
  ingress_annotations: |
  no_log: false

and awx runs just fine, but job output is not refreshing

in browser console I see
WebSocket connection to 'wss://ansible.k8s.mydomain.com/websocket/' failed:

in awx-web log I see
2023-02-20 10:38:21,399 INFO Header `X-API-Request-Id` was not found in the incoming request. Generated new GUID: d57073fede07482aa10e6a0aa173cc21
2023-02-20 10:38:21,495 WARNING [d57073fede07482aa10e6a0aa173cc21] django.request Not Found: /websocket/
2023-02-20 10:38:21,495 WARNING [d57073fede07482aa10e6a0aa173cc21] django.request Not Found: /websocket/
2023-02-20 10:38:21,495 WARNING Not Found: /websocket/
10.2.0.16 - - [20/Feb/2023:10:38:21 +0000] "GET /websocket/ HTTP/1.1" 404 3881 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50" "REDACTED_IP, 192.168.166.92"

nginx ingress
192.168.166.92 - - [20/Feb/2023:10:37:26 +0000] "GET /websocket/ HTTP/1.1" 404 3881 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50" "REDACTED_IP"

P R

unread,
Feb 24, 2023, 5:10:02 AM2/24/23
to AWX Project
Now I'm pretty sure that ingress is the reason for websocket failing. I have configured awx as nodeport, without ingress and websocket is working properly. Someone maybe has a working nginx ingress setup ?
Reply all
Reply to author
Forward
0 new messages