ddavison / selenium-openshift-templates

OpenShift Templates for a scalable Selenium infrastructure
43 stars 64 forks source link

Selenium Grid not working on OpenShift #6

Open vikassahnimca opened 6 years ago

vikassahnimca commented 6 years ago

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

ddavison commented 6 years ago

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?

👍

vikassahnimca commented 6 years ago

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.

seleniumgrid .pdf

ddavison commented 6 years ago

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

vikassahnimca commented 6 years ago

When i tried above suggested link it is not working however when i tried http://selenium-hub1-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com/ it is working and i am able to see Selenium Grid Hub v.3.11.0 page. I attached screenshots in attached pdf documents. please refer them.

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. /opt/bin/entry_point.sh: line 6: /opt/selenium/config.json: Permission denied

seleniumgrid 1.pdf

Can you please help me to resolve all these issues. I tried my best to setup but still it seems things are not working.

vikassahnimca commented 6 years ago

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 http://selenium-hub1-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com/

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 links are not working. It is giving me below error from eclipse. org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Please refer attached file seleniumgrid 1.pdf

ddavison commented 6 years ago

you modified which dockerfile?

vikassahnimca commented 6 years ago

can you review and help. what is the issue. I have not done anything different apart from mentioned steps.

vikassahnimca commented 6 years ago

Hub docker file. Used user root and included statement like chmod 777 /opt/bin/. chmod 777 /opt/selenium/.

vikassahnimca commented 6 years ago

When i used below link. http://selenium-hub1-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com/wd/hub

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"},

vikassahnimca commented 6 years ago

I am still struggling how to access his hub outside from openshift.

I setup route like http://selenium-hub1-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com which i can access from browser but not able to access from selenium automation scripts.

I tried http://selenium-hub1-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com/wd/hub http://selenium-hub1-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com:4444/wd/hub i also tried http://10.128.8.116:4444/wd/hub which is shown in hub logs and mentioned clients must connect to http://10.128.8.116:4444/wd/hub

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.

seleniumgrid 1.pdf

vikassahnimca commented 6 years ago

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. When i created route with value as HostName as selenium-hub Path as /wd/hub port as 4444 host name created as http://selenium-hub-recoveryfacts.ocp-ctc-dmz-nonprod.optum.com/wd/hub. when i used this in my automation scripts i am able to connect with selenium hub and selenium hub is also able to connect with node. As per node logs chrome driver is also launched but it is failing due to error..Failed to create /.pki/nssdb directory.

Selenium-node-chrome logs Please refer below /opt/bin/entry_point.sh: line 4: /opt/selenium/config.json: Permission denied 07:34:23.031 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.11.0', revision: 'e59cfb3' 07:34:23.084 INFO [GridLauncherV3$3.launch] - Launching a Selenium Grid node on port 5555 2018-04-13 07:34:23.486:INFO::main: Logging initialized @1651ms to org.seleniumhq.jetty9.util.log.StdErrLog 07:34:24.009 INFO [SeleniumServer.boot] - Welcome to Selenium for Workgroups.... 07:34:24.009 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 5555 07:34:24.009 INFO [GridLauncherV3$3.launch] - Selenium Grid node is up and ready to register to the hub 07:34:24.016 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 5000 ms. 07:34:24.016 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://selenium-hub:4444/grid/register 07:34:24.860 INFO [SelfRegisteringRemote.registerToHub] - Updating the node configuration from the hub 07:34:24.997 INFO [SelfRegisteringRemote.registerToHub] - The node is registered to the hub and ready to use 07:35:45.193 INFO [ActiveSessionFactory.apply] - Capabilities are: Capabilities {browserName: chrome, goog:chromeOptions: {}, platform: LINUX, version: } 07:35:45.196 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService) Starting ChromeDriver 2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7) on port 22140 Only local connections are allowed. [1523604945.584][SEVERE]: Failed to create /.pki/nssdb directory. 07:35:49.094 INFO [ProtocolHandshake.createSession] - Detected dialect: OSS 07:35:50.399 INFO [RemoteSession$Factory.lambda$performHandshake$0] - Started new session 7891f20fa2584a915256af2e2e42f0b8 (org.openqa.selenium.chrome.ChromeDriverService) 07:37:58.586 INFO [ActiveSessions$1.onStop] - Removing session 7891f20fa2584a915256af2e2e42f0b8 (org.openqa.selenium.chrome.ChromeDriverService)

i also manually tried to created this .pki file from terminal. But it is giving me error. $ mkdir .pki mkdir: cannot create directory '.pki': Permission denied $ whoami whoami: cannot find name for user ID 1006850000 $ sudo su root sudo: unknown uid 1006850000: who are you?

if i want to create this directory manually how to do from terminal. Who is current user What could be the reason for this issue. Any information how i can resolve this issue.

geordgez commented 6 years ago

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 do

Connect to a Remote Webdriver and run a Chrome driver on OpenShift Container Platform through a Python script.


Issue

I was able to successfully deploy a Selenium Hub and connected Selenium Chrome Node using the instructions on your blog post @ddavison. I can hit http://my.app.hostname.net/grid/console and see the grid console with the registered Chrome WebDriver.

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:

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

driver = webdriver.Remote(
    command_executor = 'http://my.app.hostname.net/wd/hub',
    desired_capabilities = DesiredCapabilities.CHROME
)

As mentioned above, this returns:

...
<body>
    <div>
      <h1>Application is not available</h1>
      <p>The application is currently not serving requests at this endpoint. It may not have been started or is still starting.</p>

      <div class="alert alert-info">
        <p class="info">
          Possible reasons you are seeing this page:
        </p>
...

@ddavison I've also tried setting command_executor = http://my.app.hostname.net:4444/wd/hub to no avail. I've only been able to get a response when I've left out the port number. Any other route results in a connection timeout so I imagine http://my.app.hostname.net/wd/hub is the correct one to be hitting.

Not sure if this is relevant: when I hit the /wd/hub endpoint in Chrome and use the default route configured by the template (Path: none, Service: selenium-hub, Target Port: web) I get the response below.

{"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":143,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.security.SecurityHandler","fileName":"SecurityHandler.java","lineNumber":548,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.server.handler.HandlerWrapper","fileName":"HandlerWrapper.java","lineNumber":132,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.server.handler.ScopedHandler","fileName":"ScopedHandler.java","lineNumber":190,"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"},{"className":"org.seleniumhq.jetty9.server.session.SessionHandler","fileName":"SessionHandler.java","lineNumber":1564,"methodName":"doScope"},{"className":"org.seleniumhq.jetty9.server.handler.ScopedHandler","fileName":"ScopedHandler.java","lineNumber":166,"methodName":"nextScope"},{"className":"org.seleniumhq.jetty9.server.handler.ContextHandler","fileName":"ContextHandler.java","lineNumber":1155,"methodName":"doScope"},{"className":"org.seleniumhq.jetty9.server.handler.ScopedHandler","fileName":"ScopedHandler.java","lineNumber":141,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.server.handler.HandlerWrapper","fileName":"HandlerWrapper.java","lineNumber":132,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.server.Server","fileName":"Server.java","lineNumber":530,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.server.HttpChannel","fileName":"HttpChannel.java","lineNumber":347,"methodName":"handle"},{"className":"org.seleniumhq.jetty9.server.HttpConnection","fileName":"HttpConnection.java","lineNumber":256,"methodName":"onFillable"},{"className":"org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback","fileName":"AbstractConnection.java","lineNumber":279,"methodName":"succeeded"},{"className":"org.seleniumhq.jetty9.io.FillInterest","fileName":"FillInterest.java","lineNumber":102,"methodName":"fillable"},{"className":"org.seleniumhq.jetty9.io.ChannelEndPoint$2","fileName":"ChannelEndPoint.java","lineNumber":124,"methodName":"run"},{"className":"org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill","fileName":"EatWhatYouKill.java","lineNumber":247,"methodName":"doProduce"},{"className":"org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill","fileName":"EatWhatYouKill.java","lineNumber":140,"methodName":"produce"},{"className":"org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill","fileName":"EatWhatYouKill.java","lineNumber":131,"methodName":"run"},{"className":"org.seleniumhq.jetty9.util.thread.ReservedThreadExecutor$ReservedThread","fileName":"ReservedThreadExecutor.java","lineNumber":382,"methodName":"run"},{"className":"org.seleniumhq.jetty9.util.thread.QueuedThreadPool","fileName":"QueuedThreadPool.java","lineNumber":708,"methodName":"runJob"},{"className":"org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2","fileName":"QueuedThreadPool.java","lineNumber":626,"methodName":"run"},{"className":"java.lang.Thread","fileName":"Thread.java","lineNumber":748,"methodName":"run"}],"stacktrace":"java.lang.NullPointerException\n\tat org.openqa.grid.internal.ExternalSessionKey.fromWebDriverRequest(ExternalSessionKey.java:79)\n\tat org.openqa.grid.web.servlet.handler.WebDriverRequest.extractSession(WebDriverRequest.java:58)\n\tat org.openqa.grid.web.servlet.handler.RequestHandler.getSession(RequestHandler.java:240)\n\tat org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:123)\n\tat org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:86)\n\tat org.openqa.grid.web.servlet.DriverServlet.doGet(DriverServlet.java:64)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:687)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:860)\n\tat org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535)\n\tat org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.seleniumhq.jetty9.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)\n\tat org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\n\tat org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)\n\tat org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)\n\tat org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)\n\tat org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473)\n\tat org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564)\n\tat org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)\n\tat org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155)\n\tat org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat org.seleniumhq.jetty9.server.Server.handle(Server.java:530)\n\tat org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:347)\n\tat org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:256)\n\tat org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)\n\tat org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:102)\n\tat org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)\n\tat org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)\n\tat org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)\n\tat org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)\n\tat org.seleniumhq.jetty9.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)\n\tat org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)\n\tat org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)\n\tat java.lang.Thread.run(Thread.java:748)\n"}}

Again, any other route i.e. http://my.app.hostname.net:4444/wd/hub results in a connection time out or some 500/503 response.

@vikassahnimca I get the same results for both the Python script and in the browser even when I use your route configuration of (Path: /wd/hub, Service: selenium-hub, Target Port: 4444)

SidBarker commented 6 years ago

Same issue here, nodes and hub are active in Openshift, but for some reason script cannot connect with hub. Guys above described all, greatwork. btw. @ddavison You did great job with this templates :), please support us once more.

jantrautschold commented 6 years ago

Hi, same problem(s) here are there any news about this issue?

jemacom commented 6 years ago

@jantrautschold Normally when you set HUBPORT4444TCPADDR to selenium-hub and HUBPORT4444TCPPORT to 4444 as explained in step 9 in this blog everything you should works as expected.

If you still face the problem after checking the configs then share with us pods logs.

FilipB commented 6 years ago

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. Problem seems to be in https://github.com/SeleniumHQ/selenium/blob/aacccce032ad8cda9fc15ecabfbd844c87db5497/py/selenium/webdriver/remote/remote_connection.py#L106 and the default value for resolve_ip=True

I used following workaround:

# set resolve_ip to false to make it work in cases when remote driver is running in OpenShift
command_executor = RemoteConnection(cfg.selenium.web_driver, resolve_ip=False)
driver = webdriver.Remote(command_executor, desired_capabilities=capabilities)

Somebody more knowledgeable could explain if this is expected behavior of OpenShift route and if it requires any changes on selenium webdriver side.

devilmind commented 5 years ago

Hi All, I'm using openshift 3.9 and I have deployed the file following the blog http://ddavison.io/2016/02/01/openshift-templates-for-selenium.html

In the deployment logs of selenium-hub I see the following error:

2018-10-09 08:49:04,990 WARN Included extra file "/etc/supervisor/conf.d/selenium-hub.conf" during parsing 2018-10-09 08:49:04,996 INFO supervisord started with pid 6 2018-10-09 08:49:05,999 INFO spawned: 'selenium-hub' with pid 9 supervisor: couldn't setuid to 1000: Can't drop privilege as nonroot user supervisor: child process was not spawned 2018-10-09 08:49:06,002 INFO success: selenium-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) 2018-10-09 08:49:06,002 INFO exited: selenium-hub (exit status 127; not expected)

I'm not able to connect to the Selenium Web Console and the selenium-node-chrome logs tells:

08:55:31.322 WARN - error getting the parameters from the hub. The node may end up with wrong timeouts.Connect to selenium-hub:4444 [selenium-hub/172.30.129.107] failed: Connection refused (Connection refused) 2018-10-09 08:55:31.378:INFO::main: Logging initialized @1929ms to org.seleniumhq.jetty9.util.log.StdErrLog 2018-10-09 08:55:31.577:INFO:osjs.Server:main: jetty-9.4.5.v20170502 2018-10-09 08:55:31.608:WARN:osjs.SecurityHandler:main: ServletContext@o.s.j.s.ServletContextHandler@245b4bdc{/,null,STARTING} has uncovered http methods for path: / 2018-10-09 08:55:31.612:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@245b4bdc{/,null,AVAILABLE} 2018-10-09 08:55:31.792:INFO:osjs.AbstractConnector:main: Started ServerConnector@293a5bf6{HTTP/1.1,[http/1.1]}{0.0.0.0:5555} 2018-10-09 08:55:31.792:INFO:osjs.Server:main: Started @2343ms

Can someone help me please? I'm stucked :(

ddavison commented 5 years ago

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!

devilmind81 commented 5 years ago

hey @ddavison , I have opened a new request as you requested. Thank you in advance!

https://github.com/ddavison/selenium-openshift-templates/issues/11

supssaha commented 5 years ago

Hi @geordgez, I am facing same issue as you have described above, Could you please tell me if you have solved remote connection problem to execute python automation script. Thank you in advance

geordgez commented 5 years ago

@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 resolve_ip workaround.

In the end I was making a quick scraping demo so I ended up shipping a ChromeDriver bundled with a scraper

Jescs commented 2 years ago

Hello all,

I cant remote my request too. driver = webdriver.Remote("http://{pod ip add}/wd/hub", desired_capabilities=chrome_capabilities) error msg : urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='XXX', port=5555): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002096F5D7430>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

Cloud you please help me.