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 ?