Unable to create new service: ChromeDriverService

3,140 views
Skip to first unread message

gopinath386

unread,
Sep 26, 2018, 5:18:50 AM9/26/18
to Selenium Users
Hi,
   I am using selenium webdriver for parallel execution. I used selenium standalone jar as 3.14, selenium java as 3.14, TestNG 6.14.2, chrome version as "69.0.3497.100" and chromedriver as 2.42. I have set the hub(my machine) and 3 nodes(my machine with 2 other machines). I have set the driver path (Chrome, Internet explorer) in my code. 

My machine act as a hub and node with port as 5558. machine details are.
Windows server 2008 R2 Enterprise 
Service Pack 1
64 bit operating system

I was try to open the chrome driver alone by TestNG xml file, but its not working. Error message shows "org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService"

For other 2 nodes chrome driver working successfully. I used same version standalone, chromedrivers in all nodes.Only system properties as  "Windows server 2012 R2 Standard"

Kindly check and advice. What is the root cause and correct resolutions. 

Created post on 20th Sep 2018.
Error_Run.jpg
Nodes.jpg

Venugopal Kadiri

unread,
Feb 21, 2019, 12:58:41 AM2/21/19
to Selenium Users
Hi Gopinath.. 
I am trying to setup Selenium on Windows Server 2008 R2 machine with the latest Selenium server and browser drivers with all the appropriate bindings, but somehow the browser invoking is not happening for any browser(chrome, firefox, ie).

I am receiving the following stack trace.

Starting ChromeDriver 73.0.3683.20 (8e2b610813e167eee3619ac4ce6e42e3ec622017) on port 15570
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Exception in thread "main" org.openqa.selenium.WebDriverException: 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: 'XXXXXXXXXX', ip: 'xxx.xxx.xx.xx', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_172'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
at testing.Test.main(Test.java:32)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:15570/status] to be available after 20002 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197)
... 9 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more

I have tried various options that I found online, but none of them are working. 

If possible, could you post the code of browsers initialization here? Your response is highly appreciated.

P.S. All the browsers that I have in my machine are latest and are not downgradable.

Gokul krishna

unread,
Feb 26, 2019, 5:14:20 AM2/26/19
to seleniu...@googlegroups.com
can you place the chromedriver.exe and selenium standalone jar file in the same folder and try it again?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bf40b164-5bbf-4738-9710-3dae7637984a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laerte Neto

unread,
Jun 7, 2020, 12:44:52 PM6/7/20
to Selenium Users
Gorkul.

I had the same problem and I spent hours of research, re setups, and refactoring...
Hours later, I found your suggestion and I jut put a copy of my chromedriver in the same folder of the standalone jar. IT WORKED!!! =D Thanks!


On Tuesday, February 26, 2019 at 7:14:20 AM UTC-3, Gokul krishna wrote:
can you place the chromedriver.exe and selenium standalone jar file in the same folder and try it again?

On Wed, Sep 26, 2018 at 2:48 PM gopinath386 <gopin...@gmail.com> wrote:
Hi,
   I am using selenium webdriver for parallel execution. I used selenium standalone jar as 3.14, selenium java as 3.14, TestNG 6.14.2, chrome version as "69.0.3497.100" and chromedriver as 2.42. I have set the hub(my machine) and 3 nodes(my machine with 2 other machines). I have set the driver path (Chrome, Internet explorer) in my code. 

My machine act as a hub and node with port as 5558. machine details are.
Windows server 2008 R2 Enterprise 
Service Pack 1
64 bit operating system

I was try to open the chrome driver alone by TestNG xml file, but its not working. Error message shows "org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService"

For other 2 nodes chrome driver working successfully. I used same version standalone, chromedrivers in all nodes.Only system properties as  "Windows server 2012 R2 Standard"

Kindly check and advice. What is the root cause and correct resolutions. 

Created post on 20th Sep 2018.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages