-
Notifications
You must be signed in to change notification settings - Fork 64
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
Selenium Grid not working on OpenShift #6
Comments
hi @vikassahnimca , could you export this document to PDF, or at the very least post it as a code block in this issue so I can see what's happening? 👍 |
I am trying to setup selenium grid in my organization in openshift by following your templates. i followed the mentioned steps. but after setting up i am not able to access. Can you please look the attached documents. i attached screenshots. and guide me if i am missing anything OR if you have more detailed steps that i should follow. Uploaded in pdf format. |
have you tried accessing the host from the hostname? http://selenium-hub-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com:4444/wd/hub? make sure you have those entries in the hosts file |
When i tried above suggested link it is not working however when i tried Are all these configuration correct ? Is their anything wrong with the setup of selenium hub and node. How i can resolve below error of permission denied. Can you please help me to resolve all these issues. I tried my best to setup but still it seems things are not working. |
I modified the docker file. Re-Build the Image again and use and now permission issue is resolved. Issue related with route to access Hub URL from my test scripts is still not resolved. As per my understanding client should connect to http://10.128.8.116:4444/wd/hub link. even though i setup route i am able to access From Chrome browser but http://10.128.8.116:4444/wd/hub or http://selenium-hub-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com:4444/wd/hub Please refer attached file |
you modified which dockerfile? |
can you review and help. what is the issue. I have not done anything different apart from mentioned steps. |
Hub docker file. Used user root and included statement like |
When i used below link. it is giving me below errors. Is this a any kind of configuration issue. however i haven't changed anything {"sessionId":null,"status":13,"value":{"class":"java.lang.NullPointerException","error":"unknown error","message":null,"stackTrace":[{"className":"org.openqa.grid.internal.ExternalSessionKey","fileName":"ExternalSessionKey.java","lineNumber":79,"methodName":"fromWebDriverRequest"},{"className":"org.openqa.grid.web.servlet.handler.WebDriverRequest","fileName":"WebDriverRequest.java","lineNumber":58,"methodName":"extractSession"},{"className":"org.openqa.grid.web.servlet.handler.RequestHandler","fileName":"RequestHandler.java","lineNumber":240,"methodName":"getSession"},{"className":"org.openqa.grid.web.servlet.handler.RequestHandler","fileName":"RequestHandler.java","lineNumber":123,"methodName":"process"},{"className":"org.openqa.grid.web.servlet.DriverServlet","fileName":"DriverServlet.java","lineNumber":86,"methodName":"process"},{"className":"org.openqa.grid.web.servlet.DriverServlet","fileName":"DriverServlet.java","lineNumber":64,"methodName":"doGet"},{"className":"javax.servlet.http.HttpServlet","fileName":"HttpServlet.java","lineNumber":687,"methodName":"service"},{"className":"javax.servlet.http.HttpServlet","fileName":"HttpServlet.java","lineNumber":790,"methodName":"service"},{"className":"org.seleniumhq.jetty9.servlet.ServletHolder","fileName":"ServletHolder.java","lineNumber":860,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.servlet.ServletHandler","fileName":"ServletHandler.java","lineNumber":535,"methodName":"doHandle"},{"className":"org.seleniumhq.jetty9.server.handler.ScopedHandler","fileName":"ScopedHandler.java","lineNumber":188,"methodName":"nextHandle"},{"className":"org.seleniumhq.jetty9.server.session.SessionHandler","fileName":"SessionHandler.java","lineNumber":1595,"methodName":"doHandle"},{"className":"org.seleniumhq.jetty9.server.handler.ScopedHandler","fileName":"ScopedHandler.java","lineNumber":188,"methodName":"nextHandle"},{"className":"org.seleniumhq.jetty9.server.handler.ContextHandler","fileName":"ContextHandler.java","lineNumber":1253,"methodName":"doHandle"},{"className":"org.seleniumhq.jetty9.server.handler.ScopedHandler","fileName":"ScopedHandler.java","lineNumber":168,"methodName":"nextScope"},{"className":"org.seleniumhq.jetty9.servlet.ServletHandler","fileName":"ServletHandler.java","lineNumber":473,"methodName":"doScope"}, |
I am still struggling how to access his hub outside from openshift. I setup route like I tried So can you please confirm once pods are up and node is registered with hub. how to access hub from selenium code. What URL need to use. |
Finally i am able to resolve issue related with Selenium hub access from my Automation scripts. It was route which i was missing to define with path value. Selenium-node-chrome logs Please refer below i also manually tried to created this .pki file from terminal. But it is giving me error. if i want to create this directory manually how to do from terminal. |
I'm also having some issues connecting to a Selenium Hub + Selenium Chrome Node from a Python script. I'm a bit new to OpenShift Container Platform/OpenShift Enterprise so apologies if I'm asking any silly questions or if there are multiple things that I'm doing wrong in terms of deployment/connections. Questions
What I'm trying to doConnect to a Remote Webdriver and run a Chrome driver on OpenShift Container Platform through a Python script. IssueI was able to successfully deploy a Selenium Hub and connected Selenium Chrome Node using the instructions on your blog post @ddavison. I can hit HOWEVER, when I try to connect to Selenium Hub to use a Chrome Node in Python I get the default OpenShift "Application is not available" response. I'm running:
As mentioned above, this returns:
@ddavison I've also tried setting Not sure if this is relevant: when I hit the
Again, any other route i.e. @vikassahnimca I get the same results for both the Python script and in the browser even when I use your route configuration of (Path: |
Same issue here, nodes and hub are active in Openshift, but for some reason script cannot connect with hub. Guys above described all, greatwork. |
Hi, same problem(s) here |
@jantrautschold If you still face the problem after checking the configs then share with us pods logs. |
I had the same issue when accessing Selenium hub in OpenShift via route from python. It's working fine from browser but not from the script. I used following workaround:
Somebody more knowledgeable could explain if this is expected behavior of OpenShift route and if it requires any changes on selenium webdriver side. |
Hi All, In the deployment logs of selenium-hub I see the following error:
I'm not able to connect to the Selenium Web Console and the selenium-node-chrome logs tells:
Can someone help me please? |
hey @devilmind , could you open a new issue with that information? having a new issue will help others that face this same problem. and so we don't pollute an issue that isn't related. thanks! |
Hi @geordgez, |
@supssaha -- unfortunately I wasn't able to figure it out. I haven't been working on the relevant project in while. Maybe there was a combination of parameters that I missed when I initially tried to get the right configuration but I don't have access to a grid to try out @FilipB's In the end I was making a quick scraping demo so I ended up shipping a ChromeDriver bundled with a scraper |
Hello all, I cant remote my request too. Cloud you please help me. |
Based on instructions i have created setup the selenium-hub and selenium-node-chrome on Openshift. however i am not able to access this selenium grid from my scripts and even i am not able to navigate in browser.
Can you please refer attach document and guide me what steps i am missing or anything wrong i have done. Would be looking your reply as i have tried many times but it didn't worked.
seleniumgrid - Copy.docx
The text was updated successfully, but these errors were encountered: