R
Railway16mo ago
Jannik

Failed to launch browser process

Im using puppeteer to generate pdf out of html files: Error: Failed to launch the browser process! [0714/143629.108315:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. TROUBLESHOOTING: https://pptr.dev/troubleshooting but this is my error message. Is there a way to do it on railway?
Troubleshooting | Puppeteer
Chromium currently does not provide arm64 binaries for Linux. There are only
9 Replies
Percy
Percy16mo ago
Project ID: e15ea8ad-7e02-4156-838c-aadbd81725ad
Jannik
Jannik16mo ago
e15ea8ad-7e02-4156-838c-aadbd81725ad
Brody
Brody16mo ago
you would need to launch chrome with some specific flags, you can do that like so
const browser = await puppeteer.launch({
headless: "new",
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const browser = await puppeteer.launch({
headless: "new",
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
Jannik
Jannik16mo ago
works! But hwo can i use a volume for my node app now? im saving files inside ./temp
Brody
Brody16mo ago
volumes are a beta feature, so just type forward slash beta to get access to that
Jannik
Jannik16mo ago
😦
Brody
Brody16mo ago
why the sad face?
Jannik
Jannik16mo ago
beta features in prod is never a good idea
Brody
Brody16mo ago
who said you had to run it in production? and depending on chrome in production is far worse
Want results from more Discord servers?
Add your server