title: WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally with ChromeDriver Chrome and Selenium through Python on VPS
body: <p>So I have the exact same error as these posts</p>
  
  <p><a href="https://stackoverflow.com/questions/47596402/selenium-chrome-failed-to-start-exited-abnormally-error">Selenium &#39;Chrome failed to start: exited abnormally&#39; error</a> </p>
  
  <p><a href="https://stackoverflow.com/questions/22424737/unknown-error-chrome-failed-to-start-exited-abnormally">Unknown error: Chrome failed to start: exited abnormally</a></p>
  
  <p>I tried what they recommended and it didn't work. </p>
  
  <p>Here is my code </p>
  
  <pre><code>from pyvirtualdisplay import Display
  from selenium import webdriver
  
  display = Display(visible=0, size=(800, 600))
  display.start()
  
  options = webdriver.ChromeOptions()
  options.add_argument('--no-sandbox')
  options.add_argument('--disable-extensions')
  options.add_argument('--headless')
  options.add_argument('--disable-gpu')
  
  driver = webdriver.Chrome(chrome_options=options)
  driver.get('http://nytimes.com')
  print(driver.title)
  
  driver.close()
  </code></pre>
  
  <p>And here is the full error message</p>
  
  <pre><code>Traceback (most recent call last):
    File "seleniumtest.py", line 13, in &lt;module&gt;
      driver = webdriver.Chrome(chrome_options=options)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
      desired_capabilities=desired_capabilities)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
      self.start_session(capabilities, browser_profile)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
      response = self.execute(Command.NEW_SESSION, parameters)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
      self.error_handler.check_response(response)
    File "/usr/local/lib/python2.7/dist-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
    (Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 4.15.0-42-generic x86_64)
  </code></pre>
  
  <p>What the devil am I doing wrong? I'm running this on an ubuntu VPS on digitalocean. </p>