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

Chromium error when using dotrun on ubuntu.com #72

Open
mtruj013 opened this issue Feb 1, 2022 · 7 comments
Open

Chromium error when using dotrun on ubuntu.com #72

mtruj013 opened this issue Feb 1, 2022 · 7 comments

Comments

@mtruj013
Copy link
Contributor

mtruj013 commented Feb 1, 2022

I'm getting the following error when I try to use dotrun to run ubuntu.com:

Screenshot 2022-02-01 at 17 59 19

For context I'm on an M1 Mac.

@cristinadresch
Copy link

@jkfran do you have any thoughts about this issue?

@jkfran
Copy link
Contributor

jkfran commented Feb 3, 2022

Hi @mtruj013

Can you try:

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
dotrun

Or to include this line:

PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

In your .env.local?

@nottrobin
Copy link
Contributor

nottrobin commented Feb 4, 2022

@jkfran that seems to have worked - do you think we should actually put this in .env so it automatically works? Or would that be harmful for people who could successfully download chromium? Do we need chromium downloads for some reason?

@jkfran
Copy link
Contributor

jkfran commented Feb 4, 2022

I assumed this chromium dependency wasn't needed at all for regular working on the ubuntu.com project. That would be very weird haha. But I am not familiar enough with Puppeteer to know. I thought the chromium dependency is probably related to some Cypress testing.

As far as I know, we run cypress on CI here: https://github.com/canonical-web-and-design/ubuntu.com/blob/main/.github/workflows/cypress-pr.yaml

But if there are people running it locally we might cause and issue to them by including this line in the .env

@bartaz
Copy link

bartaz commented Aug 2, 2022

Getting the same error now with dotrun 2 on M1 Mac, when trying to install dependencies of ubuntu.com:

image

@jkfran
Copy link
Contributor

jkfran commented Aug 2, 2022

So the issue here seems to be that Puppeteer can't download chrome for ARM64. The best solution is to provide chromium in the dotrun-image for both architectures. However, the official package is a snap, and snaps don't work on Docker.

There are many references on the internet to a third-party PPA repo: add-apt-repository ppa:saiarcot895/chromium-beta to avoid the snap package. Maybe we should install it from here.

@nottrobin
Copy link
Contributor

Sure sounds good

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

No branches or pull requests

6 participants