-
Describe the bug I am testing out 0.1.42 via helm (deployed Via ArgoCD) and I am unable to load Providers or do anything that relies on websockets. I am getting the error via these ways:
I think I need to adjust some values in the helm chart, but I am not certain which ones, anyone could help? To Reproduce
Screenshots |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hello @sevaho! I'm here to help you with any bugs, questions, or contributions you may have. Let's work together to solve the issue you're facing. To address the WebSocket connection issues you're experiencing with Keep when using port-forwarding and Go Teleport, you might need to adjust some configurations related to WebSocket handling in the Helm chart. Here are some key configurations to check:
These configurations are crucial for establishing and maintaining WebSocket connections in Keep. Adjusting these settings in your Helm chart should help resolve the connection issues you're facing [1][2]. |
Beta Was this translation helpful? Give feedback.
-
hey @sevaho, I'll be happy to help. what do you see on your devtools network panel? can you add a screen shot of the URL that Keep tries to get? |
Beta Was this translation helpful? Give feedback.
-
When port-forwarding I get this: I assume it is missing the port? |
Beta Was this translation helpful? Give feedback.
-
@sevaho yea thanks! the wss errors are unrelated with the backend errors. With our default
the helm chart support both it looks like (1) and (2) doesn't go through. so my suspect is that you don't have ingress (either nginx or haproxy) on your kubernetes cluster. may it be the case? |
Beta Was this translation helpful? Give feedback.
-
@sevaho have you been able to solve this problem? happy to invite you to join our Slack community: https://slack.keephq.dev - @shahargl and I can probably help you more easily there :) |
Beta Was this translation helpful? Give feedback.
-
I'll join the slack, to dig deeper into this! I understand the problem now, I need to create a custom nginx config so that I can route internal traffic in my Kube cluster. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @talboren for hopping on a call and helping me out!! The solution was to move the nginx rewrite inside a location block: location ~ ^/v2(/|$)(.*) {
rewrite ^/v2/(.*)$ /$1 break; # <--------
proxy_pass http://keep-backend:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
} Thus for anyone seeing this issue, and wanting to deploy keephq/keep behind a 'single' nginx instance so it can be used when doing
|
Beta Was this translation helpful? Give feedback.
Thanks a lot @talboren for hopping on a call and helping me out!!
The solution was to move the nginx rewrite inside a location block:
Thus for anyone seeing this issue, and wanting to deploy keephq/keep behind a 'single' nginx instance so it can be used when doing
kubectl port-forward
or when you are using 'Go Teleport' here…