Issues with Selenium - java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:

Hello,

No matter what browser I am using it seems to work fine and then after a while:
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165
ERROR Navigate 3:62:12 Execution failed in Try-Catch block: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:24165

Tried different browsers etc!

Thank you

Can you attach a DEBUG log? Hows does the workflow look like? Also details about versions, system configuration would be helpful.

– P

Hello,

It’ s a pretty simple workflow and the error occurs on the navigate:

And excerpt below:
Caused by: org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:16260
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘PF1WT1H8-W10’, ip: ‘192.168.86.169’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_202’
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:277)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:857)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ws.palladian.nodes.selenium.SeleniumUtils$SeleniumSyncInvocationHandler.invoke(SeleniumUtils.java:43)
at com.sun.proxy.$Proxy71.to(Unknown Source)
at ws.palladian.nodes.selenium.navigate.NavigateNodeSettings.performNavigation(NavigateNodeSettings.java:112)
at ws.palladian.nodes.selenium.navigate.NavigateNodeModel.execMethod(NavigateNodeModel.java:29)
at ws.palladian.nodes.selenium.navigate.NavigateNodeModel.execMethod(NavigateNodeModel.java:1)
at ws.palladian.nodes.selenium.AbstractSearchContextMethodNodeModel.execute(AbstractSearchContextMethodNodeModel.java:128)
… 14 more
Caused by: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:16260
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:247)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:165)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
at okhttp3.RealCall.execute(RealCall.java:77)
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:155)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
… 27 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at okhttp3.internal.platform.Platform.connectSocket(Platform.java:129)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:245)
… 47 more
2020-03-30 16:05:09,972 : ERROR : KNIME-Worker-54-Navigate 2:12 : : Node : Navigate : 2:12 : Execute fail

THANK YOU

Hi,

nothing here which strikes my eye so far.

Can you clarify? What means “a while”? Does this happen within minutes, hours?

How is the workflow structured? Do you run this in a loop? Is this executed on a schedule?

Is the browser still open when this happens, or did it disappear (crash)?

– Philipp

It’s inside a loop. I would say after 20-30 iterations it dies… And the browser window stays open! See attached for WF

Can you share the workflow? Are you running the latest release of the nodes, i.e. 4.3.2?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.