javascript
[puppeteer] No usable sandbox
kimxavi
2020. 2. 21. 09:32
반응형
문제
서버 환경(centos7)에서 실행하니 error 발생
UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
[0220/171512.042961:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
해결 방법
const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox']
})
반응형