heroku-buildpack-google-chrome
heroku-buildpack-google-chrome copied to clipboard
Heroku : error while loading shared libraries: libX11-xcb.so.1, failed to launch chrome
Hello,
I'm trying to launch a puppeteer script using heroku and I did everything properly, I use these buildbacks:
1. https://github.com/heroku/heroku-buildpack-chromedriver 2. https://github.com/jontewks/puppeteer-heroku-buildpack 3. heroku/nodejs
But I'm still getting this error :
Error: Failed to launch chrome!
/app/node_modules/puppeteer/.local-chromium/linux-526987/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
Hey Nicolas, I had the same issue, and I fix it by checking the heroku stack, it must be heroku-16 or cedar-14 (I am using the first one). You can change it from the command line, using this:
heroku stack:set heroku-16
PS. I am using jontewks buildpack.
did anyone get this resolved?
i tried heroku-16 and cedar-14 with no luck, getting the same error. i tried heroku-16 with jontewks buildpack and it wouldn't even launch my application - got error "No web processes running".
i solved my issue. i am using heroku-16 with jontewks buildpack
when adding the buildpack via command line, i was doing
heroku buildpacks:set https://github.com/jontewks/puppeteer-heroku-buildpack.git
rather than the correct buildpacks:add
fix works with heroku-18 and buildpack
I tried both heroku-18 and heroku-16 and it returns me the following error:
bash: node: command not found
I'm getting the following error when using unstable
or beta
versions. Only working on stable
for me.
I'm on heroku-18
.
/app/.apt/opt/google/chrome-unstable/chrome: error while loading shared libraries: libxcb-dri3.so.0: cannot open shared object file: No such file or directory