-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
Meta -
Image(s): standalone-chrome
Docker-Selenium Image Version(s): 3.4.0
OS: CoreOS -> Debian Image
Expected Behavior -
Not crashing =)
Actual Behavior -
Crashing all the time :/
I deployed selenium standalone chrome on Kubernetes running Docker. Only selenium containers have been deployed on this cluster. The problem is: when we (devops and dev team) deployed our spider and let running on background (ENTRYPOINT) on Docker container, at the moment the crawler/spider start, Chrome failed and exited abnormally.
Traceback
File "/robson/core/flow/browser_flow.py", line 16, in __init__
self.browser = Browser('chrome', **self.executable_path)
File "/robson/env/local/lib/python2.7/site-packages/splinter/browser.py", line 63, in Browser
return driver(*args, **kwargs)
File "/robson/env/local/lib/python2.7/site-packages/splinter/driver/webdriver/chrome.py", line 31, in __init__
self.driver = Chrome(chrome_options=options, **kwargs)
File "/robson/env/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
desired_capabilities=desired_capabilities)
File "/robson/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/robson/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/robson/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute
self.error_handler.check_response(response)
File "/robson/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.11.11-coreos x86_64)
Any help will be appreciated.
Cheers
Heisenbugger.
Nighthawk22