-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket connection fails on ALB #2749
Comments
Thanks for the report. I wonder if this is in main branch or another version? We recently merged a big refactor of websocket handling code into main branch. So I’m wondering if it’s related to these websocket changes. |
It happened with a build from my fork which is aligned with a master and make no changes to websockets functionality. |
@illume this is important to mention: I have headlamp installed in RKE2 on-premise installations with Canal CNI and haproxy-ingress - no issues. |
Ok, so I think these websocket changes were merged after Jan 6. So they are not related to your issue. Yeah, I guess there’s some issue with the websocket code with the proxy and web sockets in the load balancer. The trace back is in production mode which is minimized and without source maps. So it’s hard to see what the issue is. To debug maybe you can step through it in the debugger or make a dev build without source maps (I haven’t done this myself so can’t give instructions on how to do it). Maybe we should have a mode to disable websockets, which could be a work around? |
Reading some ALB docs... here's a few things I'd check:
|
I have permanent redirect from 80 to 443 and have 443 HTTPS with a valid certificate. There are other services beside of Headlamp and they work. Headlamp works too, not considering the websocket issue. |
I think we have to fix websockets, because no workaround is needed. Headlamp work with websocket errors as well. |
I wonder if adding a https health check would help? I see it's "wss://" in the error screenshot. Therefore I think ALB needs a https health check to work. |
Health check works fine, it is not related IMHO. Otherwise, I won't be able to open it. |
Describe the bug
Websocket does not work for installation I have in EKS 1.31 (latest stable version at the moment).
I use ALB with stickiness enabled. Generally, headlamp works, and probably I am doing something wrong, but maybe it has issues with AWS?
ALB listener configuration goes next.
Target group attributes goes next.
The text was updated successfully, but these errors were encountered: