heroku-buildpack-google-chrome icon indicating copy to clipboard operation
heroku-buildpack-google-chrome copied to clipboard

Heroku : error while loading shared libraries: libX11-xcb.so.1, failed to launch chrome

Open Nicolas-vrcc opened this issue 7 years ago • 6 comments

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

Nicolas-vrcc avatar Feb 14 '18 20:02 Nicolas-vrcc

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.

waltergammarota avatar Mar 20 '18 20:03 waltergammarota

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".

haferje avatar Apr 30 '18 04:04 haferje

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

haferje avatar May 01 '18 04:05 haferje

fix works with heroku-18 and buildpack

markni avatar Apr 18 '19 16:04 markni

I tried both heroku-18 and heroku-16 and it returns me the following error:

bash: node: command not found

matej2 avatar Dec 15 '19 17:12 matej2

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

matias-eduardo avatar Mar 14 '20 05:03 matias-eduardo