question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(unknown error: DevToolsActivePort file doesn't exist)

See original GitHub issue

I managed to fix it with --headless argument on ChromeOptions but i believe it’s causing the authentication process to fail at https://m.facebook.com/.

Any other way to fix it?

root@vps717621:~/graph_me_fb/facebook-scraper# python make.py --index
Opening Browser...
Traceback (most recent call last):
  File "make.py", line 388, in <module>
    browser = start_browser()
  File "make.py", line 53, in start_browser
    browser = Chrome(options=options)
  File "/usr/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
    desired_capabilities=desired_capabilities)
  File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jcontinicommented, Apr 1, 2020

Awesome, thank you @vtroussel ! This worked for me too. I’ve used this code to make it headless by default, and it seems to run faster. Appreciate you sharing this, let me know if any other ideas for improvements or feel free to do a pull request.

0reactions
11111022222commented, Mar 31, 2020

@jcontini I modified the “ENTER” input as a button click. Also augmented the time.sleep but I don’t think that is where the problem was coming from.

confirm_id = browser.find_element_by_name("login")
confirm_id.click()
time.sleep(4)
Read more comments on GitHub >

github_iconTop Results From Across the Web

unknown error: DevToolsActivePort file doesn't exist while ...
As per my observation DevToolsActivePort file doesn't exist is caused when chrome is unable to find its reference in scoped_dirXXXXX folder. Steps taken...
Read more >
Troubleshooting DevToolsActivePort file doesn't exists
WebDriverException: unknown error: Chrome failed to start: crashed. (unknown error: DevToolsActivePort file doesn't exist).
Read more >
DevToolsActivePort file doesn't exist - ChromeDriver ...
The issue still happens on my system: Linux Ubuntu 16, Chrome driver 74. 2019-03-14 10:39:25,305 ERROR [Log] Unexpected exception while setting browser driver: ......
Read more >
How to resolve the "DevToolsActivePort file doesn't exist" error ...
Issue: The user is facing the “DevToolsActivePort file doesn't exist” error message with KRE execution on a Linux machine and the project is ......
Read more >
Chrome - DevToolsActivePort file doesn't exist
Error: unknown error: DevToolsActivePort file doesn't exist The process started from chrome location /usr/bin/google-chrome is no longer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found