No usable sandbox PuppeteerCrawler
I get the following error when trying to browse a page with
PuppeteerCrawler
// Initialize the PuppeteerCrawler with the specified launch context, proxy configuration, request handler, and maximum requests
const crawler = new PuppeteerCrawler({
launchContext: {
// Specify puppeteer-extra as the launcher for Crawlee to use it with the stealth plugin
launcher: puppeteerExtra,
launchOptions: {
// Set the headless mode based on the IS_HEADLESS constant
headless: IS_HEADLESS,
args: [
'no-sandbox',
'disable-setuid-sandbox'
]
}
},
proxyConfiguration,
requestHandler: router,
// Limit the crawl to a maximum of n requests (remove this line if you want to crawl all links)
maxRequestsPerCrawl: 10
})
Docker file straight from Github Puppeteer template.
It use to work so I am wondering what the cause could be
2 Replies
exotic-emeraldOP•3y ago

Hello @gregt ,
This looks like a issue related to the Pupeteer https://github.com/puppeteer/puppeteer/issues/3451 .
GitHub
No usable sandbox error when using --no-sandbox · Issue #3451 · pup...
I am getting a Error: Failed to launch chrome! and 1026/072748.940030:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! when launching chromium even when I am passing no-sandbox and disable-...