I have installed the selenium grid 4. But when I try to run the selenium code in my org k8s cluster I am getting th e below issue:
❯ kubectl logs selenium-chrome-node-fddc9dd8d-phdjl
2022-12-01 08:46:08,285 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing
2022-12-01 08:46:08,287 INFO RPC interface 'supervisor' initialized
2022-12-01 08:46:08,287 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-12-01 08:46:08,288 INFO supervisord started with pid 8
2022-12-01 08:46:09,289 INFO spawned: 'xvfb' with pid 10
2022-12-01 08:46:09,291 INFO spawned: 'vnc' with pid 11
2022-12-01 08:46:09,293 INFO spawned: 'novnc' with pid 12
2022-12-01 08:46:09,294 INFO spawned: 'selenium-node' with pid 13
2022-12-01 08:46:09,312 INFO success: selenium-node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Generating Selenium Config
Configuring server...
Setting up SE_NODE_HOST...
Setting up SE_NODE_PORT...
Setting up SE_NODE_GRID_URL...
Tracing is disabled
Selenium Grid Node configuration:
[events]
publish = "tcp://selenium-event-bus:4442"
subscribe = "tcp://selenium-event-bus:4443"
[node]
session-timeout = "300"
override-max-sessions = false
detect-drivers = false
drain-after-session-count = 0
max-sessions = 1
[[node.driver-configuration]]
display-name = "chrome"
stereotype = '{"browserName": "chrome", "browserVersion": "107.0", "platformName": "Linux"}'
max-sessions = 1
Starting Selenium Grid Node...
08:46:10.200 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
08:46:10.207 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
2022-12-01 08:46:10,294 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-12-01 08:46:10,295 INFO success: vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-12-01 08:46:10,295 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
08:46:10.441 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://selenium-event-bus:4442 and tcp://selenium-event-bus:4443
08:46:10.532 INFO [UnboundZmqEventBus.<init>] - Sockets created
08:46:11.534 INFO [UnboundZmqEventBus.<init>] - Event bus ready
08:46:11.636 INFO [NodeServer.createHandlers] - Reporting self as:
http://192.168.169.58:555508:46:11.652 INFO [NodeOptions.getSessionFactories] - Detected 2 available processors
08:46:11.716 INFO [NodeOptions.report] - Adding chrome for {"browserVersion": "107.0","se:noVncPort": 7900,"browserName": "chrome","platformName": "LINUX","se:vncEnabled": true} 1 times
08:46:11.734 INFO [Node.<init>] - Binding additional locator mechanisms: relative, name, id
08:46:11.904 INFO [NodeServer$1.start] - Starting registration process for Node
http://192.168.169.58:555508:46:11.905 INFO [NodeServer.execute] - Started Selenium node 4.6.0 (revision 79f1c02ae20):
http://192.168.169.58:555508:46:11.913 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
08:46:12.060 INFO [NodeServer.lambda$createHandlers$2] - Node has been added
Starting ChromeDriver 107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}) on port 8161
Only local connections are allowed.
Please see
https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
[1669885294.420][SEVERE]: bind() failed: Cannot assign requested address (99)
ChromeDriver was started successfully.
09:01:35.043 INFO [LocalNode.newSession] - Session created by the Node. Id: 75291d0cdbcad7aa43f7604f0da310a3, Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 107.0.5304.87, chrome: {chromedriverVersion: 107.0.5304.62 (1eec40d3a576..., userDataDir: /tmp/.com.google.Chrome.vpssif}, goog:chromeOptions: {debuggerAddress: localhost:38861}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: LINUX, proxy: Proxy(), se:cdp:
http://localhost:38861, se:cdpVersion: 107.0.5304.87, se:vncEnabled: true, se:vncLocalAddress: ws://
192.168.169.58:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
09:01:38.772 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://
192.168.169.58:790009:07:27.463 WARN [SpanWrappedHttpHandler.execute] - Unable to execute request: java.net.http.HttpTimeoutException: request timed out
Build info: version: '4.6.0', revision: '79f1c02ae20'
System info:
os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-29-generic', java.version: '11.0.16'
Driver info: driver.version: unknown
org.openqa.selenium.TimeoutException: java.net.http.HttpTimeoutException: request timed out
Build info: version: '4.6.0', revision: '79f1c02ae20'
System info:
os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-29-generic', java.version: '11.0.16'
Driver info: driver.version: unknown
at org.openqa.selenium.remote.http.jdk.JdkHttpClient.execute(JdkHttpClient.java:282)
at org.openqa.selenium.remote.tracing.TracedHttpClient.execute(TracedHttpClient.java:55)
at org.openqa.selenium.grid.web.ReverseProxyHandler.execute(ReverseProxyHandler.java:92)
at org.openqa.selenium.grid.node.ProtocolConvertingSession.execute(ProtocolConvertingSession.java:75)
at org.openqa.selenium.grid.node.local.SessionSlot.execute(SessionSlot.java:127)
at org.openqa.selenium.grid.node.local.LocalNode.executeWebDriverCommand(LocalNode.java:460)
at org.openqa.selenium.grid.node.ForwardWebDriverCommand.execute(ForwardWebDriverCommand.java:35)
at org.openqa.selenium.remote.http.Route$PredicatedRoute.handle(Route.java:373)
at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
at org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler.execute(SpanWrappedHttpHandler.java:86)
at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
at org.openqa.selenium.grid.node.Node.execute(Node.java:240)
at org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)
at org.openqa.selenium.remote.http.Route.execute(Route.java:68)
at org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35)
at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)
at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)
at org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)
at org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.net.http.HttpTimeoutException: request timed out
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:559)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
at org.openqa.selenium.remote.http.jdk.JdkHttpClient.execute(JdkHttpClient.java:280)
... 26 more
But when I locally install it in my system, it works fine.
I am not able to understand the difference.