Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Chrome 75.0.3770.80 HEADLESS no longer works inside Docker container #198

Open
mramato opened this issue Jun 20, 2019 · 12 comments
Open

Comments

@mramato
Copy link

mramato commented Jun 20, 2019

This was originally reported as karma-runner/karma#3328 but the Karma team asked it be reported here instead.

In short, Chrome 74 headless worked flawless with karma-chrome-launcher from inside a Docker container but when Chrome 75 releases karma can no longer connect. Several folks with otherwise valid configuration starting hitting this bug shortly after Chrome 75 was released.

For completeness, here is the launcher configuration being used (but as I said, the only thing that changed between working/not working was Chrome version

        customLaunchers: {
            ChromeDocker: {
                base: 'ChromeHeadless',
                flags: [
                    '--no-sandbox'
                ]
            }
        },
@rogeriopvl
Copy link
Collaborator

Thanks for reporting @mramato

I’ll have a look at it as soon as possible.

@FnTm
Copy link

FnTm commented Jul 11, 2019

@rogeriopvl hate to poll you, but have you had a chance to look at this? This issue has rendered parts of our CI effectively dead.

@rcollette
Copy link

Hmm, I was going to check because I regularly build my Angular apps in Docker and I just noticed that even though I have this to install Chromium on alpine

FROM node:10.15.3-alpine as base
MAINTAINER [email protected]
RUN apk add --update --no-cache git bash curl zip libexif udev chromium chromium-chromedriver xvfb ttf-freefont

ENV CHROME_BIN chromium-browser

It is only installing
chromium (72.0.3626.121-r0)

While https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.10 shows the latest release as being 73.0.3683.103-r0

What is the base image and chromium install that is being discussed here? I might be able to modify mine quickly and verify.

@zps938
Copy link

zps938 commented Jul 25, 2019

Using the --disable-dev-shm-usage flag fixed this for me.

@luninroman
Copy link

Using the --disable-dev-shm-usage flag fixed this for me.

Did the trick for us as well, thanks!

@mramato
Copy link
Author

mramato commented Jul 29, 2019

Thanks @zps938 that did the trick!. I also found this puppeteer issue where they discuss it and decide to make it a default option for them because it impacted so many users: puppeteer/puppeteer#1834

@rogeriopvl do you agree that adding --disable-dev-shm-usage as one of the default headless args is a good idea?

@rogeriopvl
Copy link
Collaborator

rogeriopvl commented Jul 29, 2019

@mramato yes, at first glance I see no problem in adding that as default param. Will have a closer look at it later today to make sure there are no implications.

@charleszardo
Copy link

Using --disable-dev-shm-usage also fixed the problem for me. Thanks @zps938

@sarala75
Copy link

Tests in docker container using Google headless chrome are failing with latest Chrome release (76)on 7/30/19. I was using CHROMEDRIVER_VERSION 74.0.3729.6 with last latest version of Chrome (as was available prior to 7/30). Please advice

@rogeriopvl
Copy link
Collaborator

@sarala75 I suspect that's a different issue

@mramato I included the --disable-dev-shm-usage in the default headless options. Should be out when v3.1.0 is published (PR #209).

@rubiesonthesky
Copy link

Flag --disable-dev-shm-usage may break CircleCI runs. Is there a way to disable it? Also if its needed only in Chrome > 75 can it be default only for using that?

Ref. ember-cli/ember-cli#8536

@rogeriopvl
Copy link
Collaborator

Thanks for the heads up @rubiesonthesky , I'm going to have a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants