Closed SumitMistry closed 1 year ago
Are you still getting this error @SumitMistry?
Are you still getting this error @SumitMistry?
No luck yet, it is more likely to chromium browser config and run related problem. I can reproduce again the same above error after re-installing old npm and node packages.
But I investigated and found that if I directly run the chromium browser, it's giving this similar error as the above So running the project by calling "npm start" or running this command "/usr/bin/chromium-browser "both same error.
`root@ubuntu-22:~/USvisa/US-visa-appointment-notifier# /usr/bin/chromium-browser
mkdir: cannot create directory /run/user/0': Permission denied
[15323:15323:0329/034029.507677:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.`
or
`root@ubuntu-22:~/USvisa/US-visa-appointment-notifier# npm start
us-visa-appointment-notifier@1.0.0 start node index.js
/root/USvisa/US-visa-appointment-notifier/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:290 reject(new Error([ ^ Error: Failed to launch the browser process
[0329/034504.681214: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 at onClose (/root/USvisa/US-visa-appointment-notifier/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:290:20) at Interface.
(/root/USvisa/US-visa-appointment-notifier/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:278:24) at Interface.emit (node:events:525:35) at Interface.close (node:readline:590:8) at Socket.onend (node:readline:280:10) at Socket.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) root@ubuntu-22:~/USvisa/US-visa-appointment-notifier# `
so in short, we should add some documentation on Chromium/ Puppeteer related dependency on how to solve this. Any suggestion?
Solved, I guess the problem was the root user and VM and the directory which I was running was in Windows structure and not created in the Linux. so reinstalled ubuntu, and cloned the git repo into a linux HOME folder and then running from there with SUDO/root access solved this problem.
npm start not working with below error: