I'm running a python scraper (for webpages and PDFs) on a remote machine. I login to the remote machine to check back in at odd intervals, and the code usually breaks with the following:
Traceback (most recent call last):
File "<stdin>", line 148, in <module>
File "/usr/local/lib/python2.7/dist packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, 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.37.543619 (a237acd3116cac3b3f0da42a000502ce3fafcb23),platform=Linux 4.13.0-36-generic x86_64)
Currently running selenium
3.9, chromedriver
2.37, and chrome
64. Have tried with chrome 65, and various chromedrivers, but still this error ultimately occurs.
Running this on screen
so I can log out of the machine, but also running pyvirtualdisplay
and chrome
as headless. Would any of those conflict to draw the error?