# Jobs not refreshing - websocket 404 error

**URL:** <https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [November 2, 2020, 2:25pm UTC](https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141 "2020-11-02T14:25:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marko\_Skender](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Marko\_Skender](https://forum.ansible.com/u/Marko_Skender)\
**Post date:** [November 2, 2020, 2:25pm UTC](https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141/1 "2020-11-02T14:25:54Z")

</div>

Hi,

I was redirected here from the AWX Git issue reporter concerning the 404 error I get for /websockets URL:

[https://github.com/ansible/awx/issues/8498](https://github.com/ansible/awx/issues/8498)

Basically, I get 404/not found:

2020-11-02 14:21:13,961 WARNING django.request Not Found: /websocket/  
2020-11-02 14:21:13,961 WARNING django.request Not Found: /websocket/  
2020-11-02 14:21:13,961 WARNING Not Found: /websocket/

This is a Kubernetes install, both the Ingress and container Nginx have correct definitions (I have posted config and log snips on the above url when reporting the issue).  
I also tried reaching daphne via curl on 8051 and I get 404 from inside container as well for localhost:8051/websocket.

Also tried deleting the namespace and installation and deploying from scratch, no joy.

I also have a standalone rpm-based AWX (older version) on which daphne does not throw 404 for said url.

Since I’m not a developer, any insights are more than welcome…

Thanks,  
MS

---

<div class="post-metadata">

**Author:** ![Nicolas\_Bettembourg](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@Nicolas\_Bettembourg](https://forum.ansible.com/u/Nicolas_Bettembourg)\
**Post date:** [November 5, 2020, 5:15pm UTC](https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141/2 "2020-11-05T17:15:18Z")

</div>

Hello,

I followed you from github, I have the same setup (GKE / Nginx Ingress Controller), and the same symptoms.  
I will update you if I find anything, please update this thread if you find a solution.

Thanks

I’m not helping much, but you may now feel a little bit less alone 😉

---

<div class="post-metadata">

**Author:** ![Marko\_Skender](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Marko\_Skender](https://forum.ansible.com/u/Marko_Skender)\
**Post date:** [November 6, 2020, 7:54am UTC](https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141/3 "2020-11-06T07:54:12Z")

</div>

Hi,

I have managed to get it working yesterday 🙂

It was indeed (as you might have seen already) the matter of adding:

proxy\_set\_header Upgrade $http\_upgrade;

proxy\_set\_header Connection “upgrade”;’

To the ingress definition.

I have tried that to no avail before, but my error was that I used the wrong annotation.

Since I’m on a private cloud, I deployed Nginx Ingress Controller from Nginx inc. Github via manifests, so the correct annotations are from:  
[https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/](https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/)  
and not  
[https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/)

Which means the correct kubernetes\_ingress\_annotations value (from AWX deployment inventory) is :  
kubernetes\_ingress\_annotations={ ‘[nginx.org/location-snippets](http://nginx.org/location-snippets)’: ‘proxy\_set\_header Upgrade $http\_upgrade; proxy\_set\_header Connection “upgrade”;’ }

Before that, I was incorrectly using the wrong annotation - [nginx.org/configuration-snippet:](http://nginx.org/configuration-snippet:)

Anyway, now it works like a charm, what threw me off initially was that doing curl inside the pod directly to daphne listener threw 404 so I didn’t bother troubleshooting ingress further.

Hope that helps.  
Good luck and please respect the read-only Friday 🙂

Regards,  
Marko

---

<div class="post-metadata">

**Author:** ![Nicolas\_Bettembourg](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@Nicolas\_Bettembourg](https://forum.ansible.com/u/Nicolas_Bettembourg)\
**Post date:** [November 6, 2020, 9:28am UTC](https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141/4 "2020-11-06T09:28:12Z")

</div>

Thank you very much, it works !

Best regards

---

<div class="post-metadata">

**Author:** ![Marko\_Skender](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Marko\_Skender](https://forum.ansible.com/u/Marko_Skender)\
**Post date:** [November 6, 2020, 12:37pm UTC](https://forum.ansible.com/t/jobs-not-refreshing-websocket-404-error/34141/5 "2020-11-06T12:37:14Z")

</div>

Glad it’s settled then!
