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.

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

See original GitHub issue

instapy is running perfectly, however I’m having trouble starting profilecrawl. Heres the output after trying to start it :

Traceback (most recent call last): File "crawl_profile.py", line 18, in <module> browser = webdriver.Chrome('./assets/chromedriver', chrome_options=chrome_options) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__ self.start_session(desired_capabilities, browser_profile) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute self.error_handler.check_response(response) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-83-generic x86_64)

You got any hints/ideas?

Issue Analytics

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

github_iconTop GitHub Comments

53reactions
0xc0392bcommented, Feb 10, 2018

I also had this problem, even though I was starting chrome in headless mode. For those who come across this in the future, I found adding “–no-sandbox” to the chrome startup arguments solved the problem. E.g. chrome_options.add_argument('--no-sandbox')

4reactions
Jayphencommented, Aug 23, 2017

I had this problem. You need to make sure it’s running as headless.

In crawl_profile.py, add chrome_options.add_argument('--headless')

below the other similar add_argument lines

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown error: Chrome failed to start: exited abnormally
Unbelievable! The chromedriver is trying to use /path/to/chromium (which is not an executable file, but a directory containing source code) as ...
Read more >
[ Bug]: selenium.common.exceptions.WebDriverException ...
[ Bug]: selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed. #10673.
Read more >
unknown error: Chrome failed to start: exited abnormally
"Chrome failed to start: exited abnormally" means that ChromeDriver started Chrome as a subprocess, but then Chrome crashed. It could help you to...
Read more >
Chrome doesn't work with selenium : Forums - PythonAnywhere
common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file ...
Read more >
Chrome Failed To Start : r/selenium - Reddit
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
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