i know this is another topic on the websocket error, but i have not found a solution to my problem on this forum or the web.
I am having the websocket error, which was often discussed on this forum. In my case, this is happening on an kubernetes cluster, where i installed mattermost via the official helm chart.
The error message I am getting is:
{"timestamp":"2022-03-31 21:10:41.886 Z","level":"error","msg":"Failed to upgrade websocket connection.","caller":"web/context.go:105","path":"/api/v4/websocket","request_id":"a1us537gp3b7xxyoawiuksyrmr","ip_addr":"xxxxx","user_id":"xxxxxx","method":"GET","err_where":"connect","http_code":500,"err_details":"websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"}
I already posted this issue on the github repo of the helm chart, but i am not getting any respone.
I think this has something todo with the ingress, as the same configuration worked on an older kubernetes cluster with the v1beta1 ingress definition.
Any ideas where the problem is coming from or how to resolve it?
Thanks for any advice
Kubernetes version: v1.23.1
Ingress: Nginx
Ingress version: v1
LB: metallb
Cluster Type: Bare Metal
@agnivade thank you for your reply.
I am using the nginx ingress controller inside of Kubernetes and have not made any chances to it or added any custom configuration.
I am therefore not able to edit the nginx config directly as you are describing.
On my experience this configuration should be covered by the helm chart itself.
Could you share your current configuration? Mine is kubernetes/ingress-nginx, but I am having severe websocket errors too that I can’t quite figure out. Of note, I’m using mattermost-operator. I had no real issues with the enterprise helm chart
Dear @Tarek ,
I am using the kubernetes/ingress-nginx with the standard helm installation and values.
You can follow the guide here and use the chart in the github repo. All configurations on my end are standard.
Have in mind that I am on a bare metal cluster with the metalLB load balancer. Your load balancer could also be a cause for your problems.