elgalu / docker-selenium

[NOT MAINTAINED] Please use <https://github.com/SeleniumHQ/docker-selenium>
https://github.com/SeleniumHQ/docker-selenium
Other
1.42k stars 334 forks source link

chrome crashes intermittently #387

Open kripaliz opened 4 years ago

kripaliz commented 4 years ago

Please make sure that the boxes below are checked before you submit your issue. Thank you!

Operating System

Image version

Docker version

18.09.9ce-2.amzn2

Docker-Compose

(if using docker-compose)

I'm using this image with zalenium on an AWS EKS cluster. I'm getting the following error for some sessions:

  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '3.141.59', revision: '82b03c358b', time: '2019-04-30T22:04:50'
System info: host: 'zalenium-40000-zqdfl', ip: 'x.x.x.x', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.177-139.254.amzn2.x86_64', java.version: '1.8.0_252'
Driver info: driver.version: unknown
remote stacktrace: #0 0x557da7916579 <unknown>

I see the following error in 'Browser Driver Log' from zalenium dashboard:

[1592305744.882][INFO]: Launching chrome: /usr/bin/google-chrome --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --enable-automation --enable-blink-features=ShadowDOMV0 --enable-logging --ignore-certificate-errors --load-extension=/tmp/.com.google.Chrome.8fJz8G/internal --log-level=0 --no-first-run --password-store=basic --remote-debugging-port=0 --test-type=webdriver --use-mock-keychain --user-data-dir=/tmp/.com.google.Chrome.feemyV data:,
[464:464:0616/210910.397741:ERROR:browser_main_loop.cc(1473)] Unable to open X display.
[0616/110910.424436:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
[0616/110910.425151:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
[1592305750.461][INFO]: [d9b2d26873a265e34602a4b842264daa] RESPONSE InitSession ERROR 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.)
[1592305750.461][DEBUG]: Log type 'driver' lost 0 entries on destruction
[1592305750.461][DEBUG]: Log type 'browser' lost 0 entries on destruction
sa94my commented 3 years ago

@kripaliz I know you've probably figured it out but I'm dropping this answer for future readers :

this line did the trick for me : options.addArguments("--disable-dev-shm-usage");