Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run on EC2 server #270

Open
Dopiumistfg opened this issue Dec 18, 2022 · 1 comment
Open

Cannot run on EC2 server #270

Dopiumistfg opened this issue Dec 18, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Dopiumistfg
Copy link

I am trying to run the program on a Ubuntu EC2 server, and I have set it up, google-chrome is also installed, but when I am getting an error Failed to launch browser process, and when i try to launch chrome i get another error sayin that i cannot run it without sandbox

The errors in question:

[2022-12-18 16:58:20] [error] Error: Failed to launch the browser process! spawn /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/home/ubuntu/botviewer/Twitch-Drops-Bot/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299:20)
at ChildProcess.<anonymous> (/home/ubuntu/botviewer/Twitch-Drops-Bot/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:293:24)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

And

google-chrome --no-sandbox
[71752:71752:1218/170205.539633:ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY
[71752:71752:1218/170205.539902:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
[1218/170205.564135:ERROR:nacl_helper_linux.cc(355)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

@Dopiumistfg Dopiumistfg added the bug Something isn't working label Dec 18, 2022
@agret
Copy link
Contributor

agret commented Mar 14, 2023

You'll need to be running it from the desktop, it won't work in an SSH terminal.

https://ubuntu.com/tutorials/ubuntu-desktop-aws

This guide suggests opening the VNC server to the world by forwarding the port through the firewall, I would use SSH port tunneling instead of doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants