(unknown error: DevToolsActivePort file doesn't exist)
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.