Chrome doesn't start in WSL (Ubuntu 18.04) with “DevToolsActivePort file doesn't exist” under Chromedriver
问题 I see the error Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: crashed (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) #0 0x7f87e934a7a9 <unknown> when trying to launch Chrome headless via Selenium::Chromedriver in Rails (5.2.3) with Capybara under WSL (Windows Subsystem for Linux) that's running Ubuntu 18.04