I am trying to run a webscraper on a linux server. The full error is below
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.10.267518,platform=Linux 4.4.0-141-generic x86_64)
I have seen similar questions asked on stackoverflow, the solutions are to include the '--headless' and '--no-sandbox' arguments. However, I am already doing this.
I am able run this code locally, however, I am unable to make it work on the server.
I have also checked to see that everything is up to date, and everything is.
ChromeDriver 2.10.267518
selenium 3.141.0
Here is the code snippet where the error occurs.
options.add_argument('--headless')
options.add_argument('--no-sandbox')
caps = DesiredCapabilities.CHROME
caps['loggingPrefs'] = {'performance': 'ALL'}
driver = webdriver.Chrome(options=options, desired_capabilities=caps, executable_path='/usr/local/bin/chromedriver')
I have also tried to run the above code without the executable_path option but I still get the same error.