Chrome is not able to Open

9,395 views
Skip to first unread message

patel palak

unread,
Jun 1, 2018, 12:53:53 AM6/1/18
to Selenium Users
Starting ChromeDriver 2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9) on port 36909
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: DevToolsActivePort file doesn't exist
  (Driver info: chromedriver=2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.14 seconds
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T15:15:03.216Z'
System info: host: 'L75306044', ip: '10.239.210.17', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_171'
Driver info: driver.version: ChromeDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.findFirst(Unknown Source)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
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:123)
at Basics.NetbankLogin.main(NetbankLogin.java:18)

as5...@columbia.edu

unread,
Jun 5, 2018, 10:43:58 PM6/5/18
to Selenium Users
Facing the same issue. Is there any update on this?

roshan roja

unread,
Jun 6, 2018, 4:22:00 AM6/6/18
to Selenium Users

peterke...@gmail.com

unread,
Jun 6, 2018, 10:32:56 PM6/6/18
to Selenium Users
...
 I started seeing this problem on Monday 2018-06-04. Our tests run each weekday. It appears that the only thing that changed was the google-chrome version (which had been updated to current) JVM and Selenium were recent versions on Linux box ( Java 1.8.0_151, selenium 3.12.0, google-chrome 67.0.3396.62, and xvfb-run).
Specifically adding the arguments "--no-sandbox" and "--disable-dev-shm-usage" stopped the error. I already had coded "--disable-extensions".  I'll look into these issues to find more info about the effect, and other questions as in what triggered google-chrome to update.

ChromeOptions options = new ChromeOptions();
       
...
        options
.addArguments("--no-sandbox");
        options
.addArguments("--disable-dev-shm-usage");

I want to clarify that this code was running each weekday on an Ubuntu Linux box, but equivalent code on Windows desktop ran OK even on Monday. I've found no info about what the functionality of the DevToolsActivePort file is for and that would be useful too.
I'm posting a similar reply to other locations I'm seeing this. PK

Venkat Gurram

unread,
Jun 7, 2018, 10:11:37 PM6/7/18
to Selenium Users
Hi there,

I am a newbie to selenium and Python. Did setup as basic requirements.
I just started a basic python script to open www.google.com in Chrome but i am getting this below error.


ERROR:
C:\Python27\python.exe C:/Python27/gurramv/test123/fb
Traceback (most recent call last):
  File "C:/Python27/gurramv/test123/fb", line 6, in <module>
    driver = webdriver.Chrome('C:\Python27\gurramv\drivers\chromedriver.exe')
  File "C:\Python27\lib\site-packages\selenium-3.12.0-py2.7.egg\selenium\webdriver\chrome\webdriver.py", line 75, in __init__
    desired_capabilities=desired_capabilities)
  File "C:\Python27\lib\site-packages\selenium-3.12.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 156, in __init__
    self.start_session(capabilities, browser_profile)
  File "C:\Python27\lib\site-packages\selenium-3.12.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 245, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "C:\Python27\lib\site-packages\selenium-3.12.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 314, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\selenium-3.12.0-py2.7.egg\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
  (Driver info: chromedriver=2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9),platform=Windows NT 6.1.7601 SP1 x86_64)


Process finished with exit code 1

System Details : 
Python: 2.7
PyCharm : 2018.1.4 (Community Edition) [ Build #PC-181.5087.37, built on May 24, 2018 ] 
JRE: 1.8.0_152-release-1136-b39 x86
JVM: OpenJDK Server VM by JetBrains s.r.o
Windows 7
installed - selenium-3.12.0.tar.gz from - https://pypi.org/project/selenium/#files [ as pip install -U selenium ( did not work ) ]
selenium drivers : ChromeDriver 2.39 chromedriver_win32.zip  ] 

priyanka...@gmail.com

unread,
Jul 16, 2018, 8:19:33 AM7/16/18
to Selenium Users
Hi,

i am also facing same issue. Is there any solution for this.

VIDYA SAGAR POGIRI

unread,
Jul 16, 2018, 8:22:37 AM7/16/18
to seleniu...@googlegroups.com
I think you should update your chrome browser, update pom.xml and kill all the chrome instances.

Thanks,
Vidya,
99966229668.

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/cab52bd8-7419-467a-ba8d-eba3dacbc5b4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

priyanka...@gmail.com

unread,
Jul 16, 2018, 8:44:34 AM7/16/18
to Selenium Users
My Browser version : 67, chrome driver : 2.39, selenium:2.53.1

Killed all process and tried, but still getting same issue.

Thanks,
Vidya,
99966229668.

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.

Vidya Sagar Pogiri

unread,
Jul 16, 2018, 8:51:09 AM7/16/18
to seleniu...@googlegroups.com
Update chrome driver to 2.40 and update Pom.xml . Hopefully this will resolve your issues

Best,
Vidya,
9966229668.

Sent from my iPhone

> On 16-Jul-2018, at 18:14, priyanka...@gmail.com wrote:
>
> chrome driver : 2.39

Venkat Gurram

unread,
Jul 23, 2018, 12:14:43 AM7/23/18
to Selenium Users
Hi Vidya,

Still didn't fix my problem.
Could you advise, what is the significance of pom.xml?


chrome Version 67.0.3396.99

Vidya Sagar Pogiri

unread,
Jul 23, 2018, 1:42:04 AM7/23/18
to seleniu...@googlegroups.com
Pom.xml contains all the dependency jars and libraries required for the project to run.

Try to update the Pom , chrome driver along with chrome browser and give a try 


Best,
Vidya,
9966229668.

Sent from my iPhone
--
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.

వినయ్ కుమార్ నల్ల

unread,
Jul 31, 2018, 11:45:18 AM7/31/18
to Selenium Users
Please help me anyone even i am facing same issue....

peterke...@gmail.com

unread,
Aug 1, 2018, 7:48:41 AM8/1/18
to Selenium Users

I started seeing this problem on Monday 2018-06-04. Our tests run each weekday. It appears that the only thing that changed was the google-chrome version (which had been updated to current) JVM and Selenium were recent versions on Linux box ( Java 1.8.0_151, selenium 3.12.0, google-chrome 67.0.3396.62, and xvfb-run).
Specifically adding the arguments "--no-sandbox" and "--disable-dev-shm-usage" stopped the error.

DN31

unread,
Sep 19, 2018, 4:28:52 PM9/19/18
to Selenium Users
Thank you. Still learning here, where would I add that code?
ChromeOptions options = new ChromeOptions();
       
...
        options
.addArguments("--no-sandbox");
        options
.addArguments("--disable-dev-shm-usage");

Should I add this to webdriver.py or options.py or somewhere else entirely. Thank you
Reply all
Reply to author
Forward
0 new messages