Puppeteer browser launch error

nicolas-dev-toolboxHOBBY

6 months ago

Hi guys, i'm deploying a NextJS app that uses Puppeteer. But recently i've encountered some errors saying that puppeteer's browser cound not be launched ;

I feel like i'm missing chromium a dependency in the server :
/root/.cache/puppeteer/chrome/linux-129.0.6668.89/chrome-linux64/chrome: /lib/x8664-linux-gnu/libc.so.6: version `GLIBC2.36' not found (required by /nix/store/g5dj80arfsy8lvkda22dgkcqmyqa126w-util-linux-minimal-2.39.4-lib/lib/libmount.so.1)

So i'd like to try installing manually chromium broser on the server and provide its location as a parameter of my Puppeteer instance like so :

sudo apt-get install chromium-browser

const browser = await puppeteer.launch({
executablePath: '/usr/bin/chromium-browser'
})

Does anyone knows how to do that with Rainway's servers ?

0 Replies

nicolas-dev-toolboxHOBBY

6 months ago

18acfc0f-70b7-4775-8d39-5017829e3ddf


lucasgarcia98HOBBY

6 months ago

do you can try use browserless, instead install chromium inside the image


Puppeteer browser launch error - Railway Help Station