-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create new service: ChromeDriverService #5876
Comments
incompatible versions of Chrome and Chromedriver? |
@cgoldberg the version of Chrome I have installed is Chrome 66. Chromedriver v2.38 supports version 65-57 according to their download page. This problem has happened on both Ubuntu and Debian 64 bit. |
I have found my problem. The issue wasn't with the Chromedriver or Chrome or my code or Selenium, but rather with my version of Java. I installed Java on Ubuntu using
This installed the wrong version of Java. I was mistaken when I thought this command would always install the latest Java versions. Anyway, installing Oracle's version of Java resolved the issue for me. I think it would be nice if when selenium starts there was a check to make sure that you have a compatible java version. All of the logs seemed to suggest that everything was running okay. |
@Lastrellik What Java flavour and version did you have before? |
@barancev sooo I tried to recreate the issue and couldn't. I reinstalled Ubuntu and did everything the way I thought I did it before and it worked this time. I don't know what was wrong. Maybe there was a conflict between the version of Chrome I had installed and that particular version of Selenium. Either way, it seems to be working now. |
Thank you for getting us know everything is OK now. |
Meta -
OS: Windows 10 Hub, Ubuntu 18.04 Node
Selenium Version: 3.12.0
Browser: chromedriver
Browser Version: 2.38.552522 (64 bit)
Expected Behavior -
Chromedriver opens and navigates to http://www.google.com on Linux virtual machine node after being initiated from Java code on Windows 10 hub
Actual Behavior -
org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService
Steps to reproduce -
java -jar selenium-server-standalone-3.12.0.jar -role hub
java -Dwebdriver.chrome.driver="<full path to driver>" -jar selenium-server-standalone-3.12.0.jar -role node -hub http://<ip of host machine>:4444/grid/register
The text was updated successfully, but these errors were encountered: