pevers / images-scraper

Simple and fast scraper for Google
ISC License
224 stars 69 forks source link

"Failed to launch the browser process" on Ubuntu #62

Closed SpeckyYT closed 3 years ago

SpeckyYT commented 3 years ago

When trying to scrape images from my Ubuntu machine, I get the following error:

Error: Failed to launch the browser process!
[0220/172827.691150:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
pevers commented 3 years ago

Hi @SpeckyYT , sorry for the late response.

You should use a bash repl instead of a nodejs repl.

Example: https://repl.it/join/hylyxvxc-peterevers

SpeckyYT commented 3 years ago

I never used repl in my life. I'm using an Ubuntu machine, as mentioned in the issue.

pevers commented 3 years ago

Woops, I was a little to enthousiastic closing issues.

Do you pass any options?

{args: ['--no-sandbox', '--disable-setuid-sandbox']}

Will not work as root user. So you should either remove that or run it as non-root user

SpeckyYT commented 3 years ago

it works correctly now, thanks.