selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
See original GitHub issueinstapy 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:
- Created 6 years ago
- Comments:20 (3 by maintainers)
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')
I had this problem. You need to make sure it’s running as headless.
In
crawl_profile.py
, addchrome_options.add_argument('--headless')
below the other similar add_argument lines