title: WebDriverException: Message: unknown error: Chrome failed to start: crashed error using ChromeDriver Chrome through Selenium Python on Amazon Linux
body: <p>Just to show that I have done my due diligince, I have already either tried the suggested answers or at least read them over and tried to understand, for the following questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/53073411/selenium-webdriverexceptionchrome-failed-to-start-crashed-as-google-chrome-is">Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed</a></p>
  
  <p><a href="https://stackoverflow.com/questions/52009351/the-process-started-from-chrome-location-c-chrome-application-chrome-exe-is">The process started from chrome location C:\..\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed</a></p>
  
  <p><a href="https://stackoverflow.com/questions/49710664/selenium-python-library-via-docker-chrome-error-failed-to-start-exited-abnorma">Selenium python library via docker, Chrome error failed to start: exited abnormally</a></p>
  
  <p><a href="https://stackoverflow.com/questions/50024812/chrome-crashes-when-using-selenium">Chrome crashes when using Selenium</a> (No answer posted but I still looked it over)</p>
  
  <p><a href="https://stackoverflow.com/questions/55862006/how-to-fix-usr-bin-google-chrome-is-no-longer-running-so-chromedriver-is-assum">How to fix &quot;usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed&quot; error in Linux?</a>
  - For this one I substituted the '/usr/bin/google-chrome' with '/etc/alternatives/google-chrome', still didn't work. </p>
  
  <p><a href="https://stackoverflow.com/questions/55624355/the-process-started-from-chrome-location-usr-bin-google-chrome-is-no-longer-run">The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed for Selenium</a></p>
  
  <p><a href="https://stackoverflow.com/questions/52112188/selenium-common-exceptions-webdriverexception-message-unknown-error-chrome-fa">selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed with ChromeDriver and Selenium in Python</a></p>
  
  <p><a href="https://stackoverflow.com/questions/43008622/python-linux-selenium-chrome-not-reachable">python linux selenium: chrome not reachable</a></p>
  
  <p><a href="https://stackoverflow.com/questions/47373674/unknown-error-chrome-failed-to-start-crashedselenium-headless-mode">unknown error: Chrome failed to start: crashed(selenium ,headless mode)</a></p>
  
  <p><a href="https://stackoverflow.com/questions/48742235/python-selenium-webdriverexception-message-chrome-not-reachable">python selenium: WebDriverException: Message: chrome not reachable</a></p>
  
  <p><a href="https://stackoverflow.com/questions/38635496/selenium-chrome-failed-to-start">Selenium chrome failed to start</a></p>
  
  <p><a href="https://stackoverflow.com/questions/54715078/webdriverexception-message-unknown-error-chrome-failed-to-start-exited-abnor">WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally with ChromeDriver Chrome and Selenium through Python on VPS</a></p>
  
  <p><a href="https://stackoverflow.com/questions/55729524/getting-chrome-not-reachable-error-while-executing-test-scripts-in-selenium-gr">Getting &quot;Chrome not reachable&quot; error while executing test scripts in Selenium Grid With Chrome browser</a></p>
  
  <p><a href="https://stackoverflow.com/questions/54344876/selenium-webdriver-error-chrome-failed-to-start">Selenium webdriver error Chrome failed to start</a></p>
  
  <p><a href="https://stackoverflow.com/questions/50830193/org-openqa-selenium-webdriverexception-unknown-error-chrome-failed-to-start-c">org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed (headless chrome)</a></p>
  
  <p><a href="https://stackoverflow.com/questions/43354429/python-selenium-message-unknown-error-chrome-failed-to-start-exited-abnor">Python : Selenium - Message: unknown error: Chrome failed to start: exited abnormally</a></p>
  
  <p>I am getting a common error that I have seen here on Stack Overflow, when running Selenium with Python on my Amazon Linux server I get the following results: </p>
  
  <pre><code>Traceback (most recent call last):
    File "test-selenium-chrome.py", line 15, in &lt;module&gt;
      driver = webdriver.Chrome(options=options, executable_path='/usr/local/bin/chromedriver')  # Optional argument, if not specified will search path.i
    File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
      desired_capabilities=desired_capabilities)
    File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
      self.start_session(capabilities, browser_profile)
    File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
      response = self.execute(Command.NEW_SESSION, parameters)
    File "/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
      self.error_handler.check_response(response)
    File "/usr/local/lib/python3.7/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: crashed
    (chrome not reachable)
    (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>#!/usr/bin/python3
  import time
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  from pyvirtualdisplay import Display
  
  options = Options()
  options.binary_location = '/usr/bin/google-chrome'
  options.add_argument('--disable-extensions')
  options.add_argument('--headless')
  options.add_argument('--no-sandbox')
  options.add_argument('--disable-dev-shm-usage')
  options.add_argument('--remote-debugging-port=9515')
  options.add_argument('--disable-setuid-sandbox')
  
  display = Display(visible=0, size=(800, 800))
  display.start()
  
  driver = webdriver.Chrome(options=options, executable_path='/usr/local/bin/chromedriver')  # Optional argument, if not specified will seearch path.i
  driver.maximize_window()
  driver.get('http://www.google.com/')
  time.sleep(5)  # Let the user actually see something!
  search_box = driver.find_element_by_name('q')
  search_box.send_keys('ChromeDriver')
  search_box.submit()
  time.sleep(5)  # Let the user actually see something!
  driver.quit()
  </code></pre>
  
  <p>I am using Google Chrome version 79.0.3945.130, and the corresponding chromedriver version ChromeDriver 79.0.3945.36 as speicified in <a href="https://sites.google.com/a/chromium.org/chromedriver/downloads" rel="nofollow noreferrer">https://sites.google.com/a/chromium.org/chromedriver/downloads</a> </p>
  
  <p>Additional info, if I just run google-chrome from the command line, I get: </p>
  
  <pre><code>[ec2-user@ip-xxx-xx-xx-xxx bin]$ pwd
  /usr/bin
  [ec2-user@ip-xxx-xx-x-xxx bin]$ google-chrome
  Segmentation fault
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>