R
Railway17mo 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
Percy17mo ago
Project ID: e15ea8ad-7e02-4156-838c-aadbd81725ad
Jannik
JannikOP17mo ago
e15ea8ad-7e02-4156-838c-aadbd81725ad
Brody
Brody17mo 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
JannikOP17mo ago
works! But hwo can i use a volume for my node app now? im saving files inside ./temp
Brody
Brody17mo ago
volumes are a beta feature, so just type forward slash beta to get access to that
Jannik
JannikOP17mo ago
😦
Brody
Brody17mo ago
why the sad face?
Jannik
JannikOP17mo ago
beta features in prod is never a good idea
Brody
Brody17mo 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