title: Not able to open the Chrome Browser through jenkins --- unknown error: Chrome failed to start: crashed
body: <p>I have issue launching <code>chrome Driver</code> through <code>jenkins</code> but the same works in local machine. I am currently using <code>chromedriver=2.9.248304</code> and <code>platform=Linux - cent OS 6</code>.</p>
  
  <p>Please find my driver launching code below:</p>
  
  <pre><code>if(System.getProperty("os.name").contains("Linux"))
  {
      System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/google-chromedriver");
                              glb_Webdriver_driver = new ChromeDriver();  
  }
  </code></pre>
  
  <p>i have added <code>xvfb</code>  plugin to <code>jenkins</code> and installed in linux machine also for headless execution. </p>
  
  <pre><code>[1]: http://i.stack.imgur.com/iBdiC.png
  </code></pre>
  
  <p>Firefox driver is getting launched properly with headless execution on jenkins. </p>
  
  <p>Please find the stack trace below: </p>
  
  <pre><code>61445 [2016-06-15 08:05:15,470] [ERROR][com.aem.genericutilities.CommonFunctions ] - Not able to open the Browser --- unknown error: Chrome failed to start: crashed
  (Driver info: chromedriver=2.9.248304,platform=Linux 2.6.32-642.1.1.el6.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
  Command duration or timeout: 60.47 seconds
  Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
  </code></pre>
  
  <p>Below are the steps which i used to download teh chromedriver in machine: </p>
  
  <p><em>1</em>- Download latest chrome using wget <a href="http://chrome.richardlloyd.org.uk/install_chrome.sh" rel="nofollow">http://chrome.richardlloyd.org.uk/install_chrome.sh</a>
  chmod +x install_chrome.sh
  sudo ./install_chrome.sh (u should run it as a root)</p>
  
  <p><em>2)</em> download latest chromedriver (2.9 onwards) ,lower versions will not work</p>
  
  <p><em>3)</em> copy chromedriver to /opt/google/chrome and change permission to 755</p>
  
  <p><em>4)</em> cd /opt/google/chrome
  <em>5)</em> mv google-chrome google-chrome-standalone
  <em>6)</em> cp chrome google-chrome
  <em>7)</em> cp google-chrome-standalone google-chromedriver
  <em>8)</em> open google-chromedriver in vi editor and change following line  (last line in file )</p>
  
  <pre><code>exec -a "$0" "$HERE/chrome"  "$@"
  TO
  </code></pre>
  
  <p>exec -a "$0" "$HERE/chromedriver"  "$@"</p>
  
  <p>8) now replace existing symbolic links</p>
  
  <p>First remove existing</p>
  
  <pre><code>sudo rm /usr/bin/chromedriver
  sudo rm /usr/bin/google-chrome
  </code></pre>
  
  <p>Create new ones</p>
  
  <pre><code> sudo ln -s /opt/google/chrome/google-chromedriver /usr/bin/chromedriver
   sudo ln -s /opt/google/chrome/google-chrome-standalone /usr/bin/google-chrome
  </code></pre>