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

Missing libgbm-dev dependency -> Error: Failed to launch the browser process #304

Closed
przemuh opened this issue May 15, 2020 · 2 comments · Fixed by #305
Closed

Missing libgbm-dev dependency -> Error: Failed to launch the browser process #304

przemuh opened this issue May 15, 2020 · 2 comments · Fixed by #305
Assignees

Comments

@przemuh
Copy link
Contributor

przemuh commented May 15, 2020

Hi,

I have a problem with running cypress >= 4.2.0 on Gitlab CI. With version 4.1.0 everything is ok.

I use cypress/base:12.16.1 image.
cypress: 4.2.0 - 4.5.0

The error I get:

Error: Failed to launch the browser process!
 /builds/my-secret-app-folder/node_modules/puppeteer/.local-chromium/linux-737027/chrome-linux/chrome: error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory
 TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
     at onClose (/builds/my-secret-app-folder/node_modules/puppeteer/lib/Launcher.js:547:20)
     at Interface.<anonymous> (/builds/my-secret-app-folder/node_modules/puppeteer/lib/Launcher.js:537:65)
 error Command failed with exit code 1.

The temporary solution (I've added the missing dependency by myself in gitlab-ci.yaml

  script:
    - apt-get update
    - apt-get install -y --no-install-recommends libgbm-dev
    - ...rest of my scripts

But I guess it would be nice to have it in the base image :)

I could add it as a new PR but I didn't know if I should edit all Docker files 🤔 or just 12.16.1 (which I use). What is the process of adding a new dependency to cypress-docker-images? :)

Refs:

@bahmutov
Copy link
Contributor

Ha, I just the same problem running Percy tests in cypress-io/cypress-react-unit-test#216

@przemuh
Copy link
Contributor Author

przemuh commented May 15, 2020

Yeap :) I forgot to mention that I also use Percy ;)

@bahmutov bahmutov self-assigned this May 16, 2020
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

Successfully merging a pull request may close this issue.

2 participants