tujoworker
(Tobias Høegh)
February 7, 2019, 5:34am
1
Hi!
I use https://cloud.drone.io to run an image.
I use image: node:latest
as the image, but once I try to start puppeteer, it get this error message: error while loading shared libraries: libX11-xcb.so
I do already set the flags: --no-sandbox and --disable-setuid-sandbox on puppeteer.launch
Do someone have an idea what image i could use instead?
tujoworker
(Tobias Høegh)
February 8, 2019, 1:30pm
2
The solution was to make my own dockerfile with the needed libs
kenosekex
(Kenosekex)
October 31, 2019, 6:37am
3
@tujoworker how did you build the container, is the the same as in puppeteer troubleshooting here.here
Also how did you run that in the docker steps.
Thanks in advance.
kenosekex
(Kenosekex)
November 5, 2019, 6:54am
4
I end up installing all the required libraries in my pipeline steps by running:
apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
Then i added --no-sandbox
to the puppeteer browser options.