-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[🐛 Bug]: Video Live Streaming of Node Test Executions runs to a blank page on Kubernetes #1991
Comments
@kherath17, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Hi @kherath17, did you start the grid setup using helm chart selenium-grid? Or have you created your own K8s manifest files for deployment? |
@VietND96 Its my own deployment files I have used |
Oh, so could you please also share the deployment file of the browser node for reference? |
@VietND96 FYI I have used a POD as below apiVersion: v1 |
reproduce.txt |
@VietND96 appreciate your effort looking into this , since it works on your end I doubt if its the ingress , would you be able to share me the ingress file you have used |
Actually, I didn't apply ingress in above case, only 3 components as .txt that I shared. I access the grid view inside cluster via |
@VietND96 here is my ingress apiVersion: networking.k8s.io/v1
|
HI @VietND96 do you see any misconfigurations in my ingress? |
Hi @kherath17 , it looks like ingress using path prefix and rewrite-target with regexp caused the issue. Some URL after redirected is incorrect. e.g Currently, I only can suggest you use |
Thank You @VietND96 for clarifying the root cause , but unfortunately I'm unable to use path: / since there's an already running ingress for that path , hence I will need to use some other path to route it |
Thank you for troubleshooting, @VietND96! Are you in the Selenium Slack workspace? |
Hi @diemol , I was just aware and joined the Selenium Slack workspace. |
Hi @kherath17 , I suggest a workaround for prefix path config env:
- name: SE_SUB_PATH
value: /qlabv2 Now, without ingress, grid view can be accessed via apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: selenium-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/app-root: /qlabv2
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:
- http:
paths:
- path: /qlabv2(/|$)(.*)
pathType: Prefix
backend:
service:
name: selenium-hub
port:
number: 4444
- path: /(/?)(session/.*/se/vnc)
pathType: Prefix
backend:
service:
name: selenium-hub
port:
number: 4444 With this config it will resolve redirect issue we mentioned above
Deployment file for your reference - workaround.txt Hi @diemol , I also have a doubt here, even we set
but in node Capabilities, the URL still not have sub path "se:vnc": "ws://selenium-hub:4444/session/623cb93cd9438c195578b7edc5b0b534/se/vnc",
"se:vncEnabled": true, I saw the same issue discussed in SeleniumHQ/selenium#9980, and there was a commit fixed SeleniumHQ/selenium@ca9b451 by you. Do you know this? @diemol |
Hi @VietND96 the workaround has successfully resolved my issue, thank you and appreciate your effort and time. :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
I have setup Selenium Hub (selenium/hub:latest) and unable to view the live execution happening on the node , runs into a blank page
Command used to start Selenium Grid with Docker
Relevant log output
Operating System
Windows 11
Docker Selenium version (tag)
4.14.1
The text was updated successfully, but these errors were encountered: