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

bin/grunt exec "error while loading shared libraries" #1167

Open
abdel-aouby opened this issue Jun 3, 2024 · 1 comment
Open

bin/grunt exec "error while loading shared libraries" #1167

abdel-aouby opened this issue Jun 3, 2024 · 1 comment
Labels
stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@abdel-aouby
Copy link

abdel-aouby commented Jun 3, 2024

Description
after installing a new package with grunt. and running bin/grunt exec
the command returns an error

/var/www/html/node_modules/.../node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

the TROUBLESHOOTING link provides a solution for Linux users to Getting headless Chrome up and running in Docker
by To fix, you'll need to install the missing dependencies and the latest Chromium package in your Dockerfile
I would like to know if this container shouldn't be part of this project as it already supports grunt or is it out of scope and it all depends on which package you installed.

Steps To Reproduce

  1. add any package by npm install PACKAGE_NAME --save-dev
  2. run bin/grunt exec

Expected Result
bin/grunt exec will succeed

Actual Result
bin/grunt exec fails with an error

/var/www/html/node_modules/.../node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

Copy link

dosubot bot commented Feb 6, 2025

Hi, @abdel-aouby. I'm Dosu, and I'm helping the docker-magento team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You encountered an error with a missing shared library, libX11-xcb.so.1, when running bin/grunt exec.
  • This library is required by Puppeteer's Chromium after installing a new package with Grunt.
  • You are seeking guidance on whether these dependencies should be included in the project or installed independently by users.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the docker-magento repository by commenting on this issue.
  • If there is no further activity, this issue will be automatically closed in 30 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

1 participant