Selenium - Unable to start server with either IPv4 or IPv6. Exiting - selenium

I'm trying to open chromedriver.exe but I'm given this error message:
"Unable to start server with either ipv4 or ipv6. Exiting.."
I tried the following but didn't work:
Tried opening the chromedriver using a specific port that is has no process connected to it.
Downloaded chromedriver to be the same version of chrome browser.
Restarted the machine and try opening the driver again.
Notes:
The driver starts but rarely. I took the port that it once started using it and tried to open it again using this specific port but it didn't start.
I tried IE driver as well and the same issue occured.
Error trace log:
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17
:03'
System info: host: 'GRKIF-CTXDA034', ip: '10.41.162.52', os.name: 'Windows Serve
r 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_201'
Driver info: driver.version: unknown
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17
:03'
System info: host: 'GRKIF-CTXDA034', ip: '10.41.162.52', os.name: 'Windows Serve
r 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_201'
Driver info: driver.version: unknown
(03:51:05.534) - Warning: Cannot connect to server to check for updates (Server
returned HTTP response code: 504 for URL: http://10.97.109.210:8081/tacoe/downlo
ads/readme.txt), please connect to office net.
(03:51:16.760) - Info: Default Web Browser: Chrome
(03:51:16.760) - Info: Target (Name:Web, Platform:Web, Type:Chrome, Hub IP:Local
, Default:false) added.
Jan 10, 2022 3:51:16 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`(03:51:16.823) - Info: Chrome config created.
(03:51:16.839) - Info: Chrome config loaded.
(03:51:16.854) - Info: Target Type: Chrome
(03:51:16.870) - Info: ==============================
(03:51:16.870) - Info: Capabilities:
(03:51:16.885) - Info: Capability: acceptSslCerts=true
(03:51:16.901) - Info: Capability: applicationCacheEnabled=true
(03:51:16.901) - Info: Capability: browserConnectionEnabled=true
(03:51:16.917) - Info: Capability: browserName=chrome
(03:51:16.932) - Info: Capability: databaseEnabled=true
(03:51:16.948) - Info: Capability: elementScrollBehavior=1
(03:51:16.948) - Info: Capability: javascriptEnabled=true
(03:51:16.964) - Info: Capability: locationContextEnabled=true
(03:51:16.979) - Info: Capability: nativeEvents=true
(03:51:16.995) - Info: Capability: platform=ANY
(03:51:16.995) - Info: Capability: proxy={​​proxyType=SYSTEM, autodetect=false, ft
pProxy=null, httpProxy=null, noProxy=null, sslProxy=null, socksProxy=null, socks
Version=null, socksUsername=null, socksPassword=null, proxyAutoconfigUrl=null}​​
(03:51:17.010) - Info: Capability: rotatable=false
(03:51:17.026) - Info: Capability: unexpectedAlertBehaviour=ignore
(03:51:17.026) - Info: Capability: unhandledPromptBehavior=ignore
(03:51:17.042) - Info: Capability: version=
(03:51:17.057) - Info: Capability: webStorageEnabled=true
(03:51:17.073) - Info: Capability: webdriver.remote.quietExceptions=false
(03:51:17.089) - Info: ==============================
(03:51:17.089) - Info: Configurations:
(03:51:17.104) - Info: Config: target_path=
(03:51:17.120) - Info: Config: timeout_page=120000
(03:51:17.120) - Info: Config: timeout_find=2000
(03:51:17.135) - Info: Config: timeout_jscript=5000
(03:51:17.151) - Info: Config: timeout_ajax=20000
(03:51:17.167) - Info: Config: wait_for_pageLoad=true
(03:51:17.167) - Info: Config: serverAddress=Local
(03:51:17.182) - Info: Config: auto_select_window=false
(03:51:17.198) - Info: Config: auto_maxmize=false
(03:51:17.198) - Info: Config: mobileEmulation=false
Starting ChromeDriver 96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-ref
s/branch-heads/4664#{​​#947}​​) on port 14593
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggest
ions on keeping ChromeDriver safe.
Unable to start server with either IPv4 or IPv6. Exiting...
Jan 10, 2022 3:51:37 PM org.openqa.selenium.os.OsProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error:
1 (Exit value: 1)
(03:51:37.246) - Error: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17
:03'
System info: host: 'GRKIF-CTXDA034', ip: '10.41.162.52', os.name: 'Windows Serve
r 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_201'
Driver info: driver.version: ChromeDriver
org.openqa.selenium.WebDriverException: Timed out waiting for driver server to s
tart.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17
:03'
System info: host: 'GRKIF-CTXDA034', ip: '10.41.162.52', os.name: 'Windows Serve
r 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_201'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(D
riverService.java:202)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.
java:188)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(Driv
erCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.ja
va:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriv
er.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.jav
a:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)at
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waitin
g for [http://localhost:14593/status] to be available after 20012 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java
:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(D
riverService.java:197)
... 12 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(S
impleTimeLimiter.java:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java
:75)
... 13 more
(03:51:37.371) - Error: Browser didn't open.

This error message...
Unable to start server with either IPv4 or IPv6. Exiting...
...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.
Possibly your main issue is the incompatibility between the version of the binaries you are using as the ChromeDriver version is not getting detected:
Driver info: driver.version: unknown
Solution
Ensure that:
ChromeDriver is updated to current ChromeDriver v96.0 level.
Chrome is updated to current chrome=96.0.4664.45 (as per chrome=96.0.4664.45 release notes).

Related

Selenium ChromeDriver exception

I am getting following error for my ChromeDriver, and I cannot figure out why. Chrome is 68 version and chromedriver is 2.41. This throws following error and does not even open the Chrome browser.
Aug 08, 2018 5:08:23 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 9090
Only local connections are allowed.
geb.driver.DriverCreationException: failed to create driver from callback 'script1533762503012124154837$_run_closure1#2fb69ff6'
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy:85)
at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:84)
at geb.Configuration.createDriver(Configuration.groovy:382)
at geb.Configuration.getDriver(Configuration.groovy:371)
at geb.Browser.getDriver(Browser.groovy:111)
at geb.report.PageSourceReporter.getPageSource(PageSourceReporter.groovy:42)
at geb.report.PageSourceReporter.writePageSource(PageSourceReporter.groovy:38)
at geb.report.PageSourceReporter.writeReport(PageSourceReporter.groovy:29)
at geb.report.CompositeReporter.writeReport(CompositeReporter.groovy:31)
at geb.Browser.report(Browser.groovy:927)
at geb.spock.GebReportingSpec.report(GebReportingSpec.groovy:59)
at geb.spock.GebReportingSpec.cleanup(GebReportingSpec.groovy:46)
> Caused by: org.openqa.selenium.WebDriverException: unknown error:
> cannot parse capability: chromeOptions from unknown error:
> unrecognized chrome option: class (Driver info:
> chromedriver=2.41.578737
> (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT
> 10.0.163 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 12 milliseconds Build info:
> version: '3.13.0', revision: '2f0d292', time:
> '2018-06-25T15:24:21.231Z' System info: host: 'CL-', ip:
> '10', os.name: 'Windows 10', os.arch: 'amd64', os.version:
> '10.0', java.version: '1.8.0_121' Driver info: driver.version:
> ChromeDriver
Here I am not even using any desired Capabilities and I have no idea from where it is getting it.
driver = {
System.setProperty('webdriver.chrome.driver', System.getProperty("user.dir")+'\\src\\test\\resources\\chromedriver.exe')
new ChromeDriver()
}
<seleniumVersion>3.4</seleniumVersion>
What am I doing wrong?
I added Guava jar files and it fixed that issue.
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>22.0</version>
</dependency>

Unable to open Chrome browser using selenium 3.10.0

I am using following configuration:
Windows 7
Java: 1.8.0_91
Selenium: 3.10.0
Chrome browser: 62.0
Chrome Driver : 2.34
While running found below error:
org.openqa.selenium.SessionNotCreatedException: session not created exception
from disconnected: unable to connect to renderer
(Session info: chrome=62.0.3202.62)
(Driver info: chromedriver=2.34.522940 (1a76f96f66e3ca7b8e57d503b4dd3bccfba87af1),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 938 milliseconds
Build info: version: '3.10.0', revision: '176b4a9', time: '2018-03-02T19:03:16.397Z'
System info: host: 'OFFICE-PC', ip: '192.168.1.230', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_91'
Driver info: driver.version: ChromeDriver
Hmmmmm... Looks familiar.
Have you checked that you are not using a 32bit ChromeDriver for a 64bit Chrome browser?

Unable to launch Firefox browser in Windows Xp (32 bit) Using Selenium Webdriver

I am unable to launch the firefox browser (49 version) and with Selenium Jar is 2.5.3 .
Getting Below error:-
*2016-11-10 18:45:36 ERROR BrowserConfig:293 - Error in EbselenCore.setBrowser:Specified firefox binary location does not exist or is not a real file: C:\Program Files (x86)\Mozilla Firefox\firefox.exe
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'karthik', ip: '0.0.0.0xx', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.8.0_111'
Driver info: driver.version: unknown*
Even i tried with the system.setproperty to the
System.setProperty("webdriver.firefox.bin", "xxxxx\\xxx\\firefox.exe");
System.setProperty("webdriver.chrome.driver", "xxxxx\\xxx\\chromedriver.exe");
System.setProperty("webdriver.chrome.bin", "xxxxx\\xxx\\chrome.exe");
Even i tried with the chrome driver :-
Nov 11, 2016 2:29:10 PM org.openqa.selenium.os.UnixProcess checkForErrorSEVERE: org.apache.commons.exec.ExecuteException:Process exited with an error: -1073741511 (Exit value: -1073741511) 2016-11-11 14:29:11 ERROR BrowserConfig:293 - Error in EbselenCore.setBrowser:Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'karthik', ip: 'x.x.x.x.', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.8.0_111' Driver info: driver.version: SeleniumChromeDriver
Thanks in advance for your response.
Selenium 2.5.3 only work with firefox 46 and older. You need to use selenium 3 and newer from firefox 47 onwards. You also need to use geckodriver.

Unable to launch safari in simulator using appium xcuitest

I'm automating wb application in iOS simulator v10.0 using appium xcuitest v1.6 but I'm unable to launch the safari with the url mentioned in the code. Getting following exception.Please help.
Exception in thread "main" 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.
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'TVMATP310436M', ip: '192.168.1.116', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_111'
Driver info: driver.version: IOSDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:51)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:126)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:139)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:47)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:114)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:132)
at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:81)
at com.jcp.setup.SetUpAppium.main(SetUpAppium.java:29)
Caused by: org.openqa.selenium.WebDriverException: org.apache.http.NoHttpResponseException: 0.0.0.0:4723 failed to respond
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'TVMATP310436M', ip: '192.168.1.116', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_111'
Driver info: driver.version: IOSDriver
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:84)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)
... 11 more
Caused by: org.apache.http.NoHttpResponseException: 0.0.0.0:4723 failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:153)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:254)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:144)
at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:72)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:133)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
... 12 more
I'd rather uninstall and install appium 1.6.4 by using these commands:
npm uninstall appium
npm install -g appium#1.6.4
There were issues related to Safari with earlier appium versions.

Unable to work with Chrome browser using Selenium webdriver in codeception

Starting selenium + chrome driver with this is command
java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium.jar
It start the server
This is my acceptance.suite.yml file
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: ''
browser: chrome
window_size: 1280x768
curl:
CURLOPT_TIMEOUT: 60
This is what i am receiving as error when i try to execute the test case
[Facebook\WebDriver\Exception\UnknownServerException]
unknown error: cannot parse capability: proxy
from unknown error: must be a dictionary
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.2 x86_64) (WARNING: The server d
id not provide any stacktrace information)
Command duration or timeout: 518 milliseconds
Build info: version: '2.52.0', revision: '4c2593c', time: '2016-02-11 19:06:42'
System info: host: 'FR301-216', ip: '172.16.102.106', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.8.0_65'
Driver info: org.openqa.selenium.chrome.ChromeDriver
This is an existing bug in the new codeception version (2.1.5 and above). The solution is to downgrade your codeception version to 2.1.4.